Hello,
I'm again here after searching for an answer for my problem.
I'm using Elgg 1.7.9.
Is it normal that despite creating my language file (fr.php) in my plugin directory (mod/grr/languages/fr.php), doing the same stuff as in normal en.php and that following instructions on how to set it in elgg_echo, it's not translating at all but showing the english translation?
I'm on localhost for my tests, is it somewhere influencing that problem?
fr.php:
$french = array(
'grr:name'=>"Nom de la ressource"
);
add_translation("fr",$french);
elgg_echo:
<p><?php echo elgg_echo('grr:name', 'fr'); ?><br/>
Is there something wrong there?
Thanks for your ideas, answers or anything else.
For now, I'll put my french words in the en.php (which is not I want to do for the final version).
Vic
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Evan Winslow@ewinslow
Evan Winslow - 0 likes
- Vinciane Amorini@Vicrabb
Vinciane Amorini - 0 likes
You must log in to post replies.You shouldn't explicitly set elgg_echo to translate to 'fr'. Instead, you need to set your default site language to french or change your account settings to use french.
Okay thanks, the account setting is working fine for me. It's just what I needed for development. Thanks for the answer.