Skip to content

Commit

Permalink
homepage activities: make sure it is translated in all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Sep 3, 2021
1 parent 29c782c commit 37b40ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.inc.php
Expand Up @@ -66,6 +66,14 @@ function porg_user_init()

/* Load Piwigo.org language */
function porg_lang_init() {
global $lang;

/* we need some strings for time_since (Piwigo should have these strings in common.lang.php) */
if (!isset($lang['%s ago']))
{
load_language('admin.lang');
}

/* Load en_UK translation */
load_language('plugin.lang', PORG_PATH, array('language' => 'en_UK', 'no_fallback' => true));
/* Load user language translation */
Expand Down

0 comments on commit 37b40ea

Please sign in to comment.