Skip to content

Commit

Permalink
Make title of tagpage translatable
Browse files Browse the repository at this point in the history
Improves #246
  • Loading branch information
Klap-in committed Aug 19, 2023
1 parent 8f7e02a commit b504f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public function performTagAction(Doku_Event $event, $param) {
$pagelist->addPage($page);
}

print '<h1>TAG: ' . hsc(str_replace('_', ' ', $INPUT->str('tag'))) . '</h1>' . DOKU_LF;
print '<div class="level1">' . DOKU_LF;
print '<h1>'. sprintf($this->getLang('tagpageheading'), hsc(str_replace('_', ' ', $INPUT->str('tag')))) . '</h1>';
print $pagelist->finishList();
print '</div>' . DOKU_LF;

Expand Down
1 change: 1 addition & 0 deletions lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

// custom language strings for the plugin
$lang['tagpageheading'] = 'TAG: %s';
$lang['tag'] = 'Tag';
$lang['tags'] = 'Tags';
$lang['topic'] = 'Topic';
Expand Down

0 comments on commit b504f6d

Please sign in to comment.