Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

how to : force a language for translated string

$
0
0
I am writing a piwik plugin (I use the unsupported existing one).

I want to log pages title, but only in one language (french).
Basically, it allows to avoid multiple titles to be tracked for the same page.

I found the way to force zenphoto items titles (`$_zp_current_album->getTitle('fr_FR')` as example).

But I didn't find the way to force translation of translated strings (as `gettext('Home')` or `gettext('Gallery')` as examples).

I tried the function `string dgettext ( string $domain , string $message )` used like that `dgettext('fr_FR', 'Home')`, but It does not not work.

Have you a solution to force translation? Or to well configure the function above?

thanks in advance for your help.

Viewing all articles
Browse latest Browse all 2917

Trending Articles