Add and use 'since' translation key

This commit is contained in:
Nik 2021-02-18 06:44:26 +01:00
parent 16556e7722
commit d411aa2d0f
3 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ $lang['wiyh_closed'] = 'ist geschlossen';
$lang['wiyh_stats'] = 'Raumöffnungsstatistiken';
$lang['wiyh_no_api_path'] = 'Es wurde kein API-Pfad angegeben.';
$lang['wiyh_fetch_error'] = 'Der API-Pfad konnte nicht abgerufen werden.';
$lang['wiyh_since'] = 'seit';

View File

@ -12,6 +12,7 @@ $lang['wiyh_closed'] = 'is closed.';
$lang['wiyh_stats'] = 'Stats';
$lang['wiyh_no_api_path'] = 'No API path was given.';
$lang['wiyh_fetch_error'] = 'Could not fetch API path.';
$lang['wiyh_since'] = 'since';
//Setup VIM: ex: et ts=4 :

View File

@ -87,7 +87,7 @@ class syntax_plugin_whoisinyourhackspace extends DokuWiki_Syntax_Plugin {
$date = new DateTime();
$date->setTimeStamp($api->state->lastchange);
$content .= "<p class=\"text\">seit " . $date->format('d.m.Y H:i') . " Uhr</p>";
$content .= "<p class=\"text\">{$this->getLang('wiyh_since')} " . $date->format('d.m.Y H:i') . " Uhr</p>";
$content .= '<hr />';
$content .= '</div>';