Skip to content

Commit

Permalink
Locale constant + translation en fr ja pt ru
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamaster committed May 25, 2024
1 parent 12f185e commit 49155de
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion html/modules/sitemap/language/english/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

define( '_MD_SITEMAP_HOME' , 'HOME');
define( '_MD_SITEMAP_NAME' , 'Sitemap');
define( '_MD_SITEMAP_HOME' , 'Homepage');
3 changes: 2 additions & 1 deletion html/modules/sitemap/language/fr_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

define( '_MD_SITEMAP_HOME' , 'Accueil');
define( '_MD_SITEMAP_NAME' , 'Plan du site');
define( '_MD_SITEMAP_HOME' , 'Page d\'accueil');
3 changes: 2 additions & 1 deletion html/modules/sitemap/language/ja_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

define( '_MD_SITEMAP_HOME' , 'HOME');
define( '_MD_SITEMAP_NAME' , 'サイトマップ');
define( '_MD_SITEMAP_HOME' , 'ホームページ');
3 changes: 2 additions & 1 deletion html/modules/sitemap/language/pt_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

define( '_MD_SITEMAP_HOME' , 'HOME');
define( '_MD_SITEMAP_NAME' , 'Mapa do site');
define( '_MD_SITEMAP_HOME' , 'Pagina inicial');

3 changes: 2 additions & 1 deletion html/modules/sitemap/language/ru_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

define( '_MD_SITEMAP_HOME' , 'Главная');
define( '_MD_SITEMAP_NAME' , 'карта сайта');
define( '_MD_SITEMAP_HOME' , 'Домашняя страница');
4 changes: 2 additions & 2 deletions html/modules/sitemap/templates/sitemap_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<ul>
<li><a href="<{$xoops_url}>/"><img class="svg" src="<{$xoops_url}>/images/icons/home.svg" width="1em" alt="index"></a>
</li>
<li aria-current="page"><{$smarty.const._MI_SITEMAP_NAME}>
<li aria-current="page"><{$smarty.const._MD_SITEMAP_NAME}>
</li>
</ul>
</nav>

<article class="sitemap">
<header>
<h3>
<span><img class="svg" src="<{$xoops_url}>/modules/sitemap/images/sitemap.svg" width="1em" height="1em" alt="<{$smarty.const._MD_SITEMAP_HOME}>"> <{$smarty.const._MI_SITEMAP_NAME}></span>
<span><img class="svg" src="<{$xoops_url}>/modules/sitemap/images/sitemap.svg" width="1em" height="1em" alt="<{$smarty.const._MD_SITEMAP_HOME}>"> <{$smarty.const._MD_SITEMAP_NAME}></span>
<{if $xoops_isadmin}><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=Help&amp;dirname=sitemap" data-tooltip="<{$smarty.const._EDIT}>">
<img class="svg" src="<{$xoops_url}>/images/icons/edit.svg" width="1em" height="1em" alt="edit">
</a><{/if}>
Expand Down
2 changes: 1 addition & 1 deletion html/modules/sitemap/xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// Manifesto
$modversion['dirname'] = 'sitemap';
$modversion['name'] = _MI_SITEMAP_NAME;
$modversion['name'] = _MD_SITEMAP_NAME;
$modversion['version'] = '2.40';
$modversion['detailed_version'] = '2.40.0';
$modversion['description'] = _MI_SITEMAP_DESC;
Expand Down

0 comments on commit 49155de

Please sign in to comment.