Skip to content

Commit

Permalink
Improve the multilingual support (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
gergo85 authored Sep 8, 2021
1 parent 3333718 commit f0ae521
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/DefinitionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function initFromArray($items)
*/
public function getTypeOptions()
{
$result = ['url' => 'URL'];
$result = ['url' => trans('rainlab.sitemap::lang.item.url')];
$apiResult = Event::fire('pages.menuitem.listTypes');

if (is_array($apiResult)) {
Expand Down
2 changes: 1 addition & 1 deletion formwidgets/sitemapitems/partials/_item.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="title"><?= e($this->getReferenceDescription($item)) ?></span>
<span class="comment">
<?= e(trans('rainlab.sitemap::lang.item.priority')) ?>: <span class="priority"><?= e($item->priority) ?></span>,
<?= e(trans('rainlab.sitemap::lang.item.changefreq')) ?>: <span class="changefreq"><?= e($item->changefreq) ?></span>
<?= e(trans('rainlab.sitemap::lang.item.changefreq')) ?>: <span class="changefreq"><?= e(trans('rainlab.sitemap::lang.item.' . $item->changefreq)) ?></span>
</span>
</a>

Expand Down

0 comments on commit f0ae521

Please sign in to comment.