lianglee / OhYesTheme

OhYesTheme
Other
4 stars 5 forks source link

Translation #22

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

I need a french translation so I duplicate and translate the file en.php to fr.php

The ending line is set to add_translation("fr", $french);

But it doesn't work, what do i have to do to make it works ?

Thanks for your help. Fred

lianglee commented 9 years ago

If its not working make sure your language is french in user settings.

ghost commented 9 years ago

French is set in users settings but sorry I don't understand what is Ossn

ghost commented 9 years ago

I cannot find a file like that in eggl nor in the theme

lianglee commented 9 years ago

I have deleted first comment i posted that by misunderstood.

Ossn is : opensource-socialnetwork.org

ghost commented 9 years ago

Ok understood.

ghost commented 9 years ago

I didn't know that project, thansk to you mistake, I will test it ;-), and about my question ?

lianglee commented 9 years ago

Language should work, if its not working than there seems issue in language file post your language file on comuminity.elgg.org some one will reply you solution

ghost commented 9 years ago

Elgg is in french except the fews words of your theme for instance "unfriend", any idea ?

lianglee commented 9 years ago

Try this file: https://gist.github.com/lianglee/c3a88f55f2c80394e7be

ghost commented 9 years ago

I get it ! my file was wrong !! I didn't put the good variable name, It's ok know thanks for your help.

Here is my file for french translation of your theme :

$french = array(
'ohyes:home' => "Accueil",
'ohyes:photos' => 'Photos', 'ohyes:blog' => 'Blog', 'ohyes:bookmarks' => 'Signets', 'ohyes:file' => 'Fichiers', 'ohyes:pages' => 'Pages', 'ohyes:messages' => 'Messages', 'ohyes:groups' => 'Groupes',

'ohyes:admin:menu' => 'Administration',
'ohyes:add:friend' => 'Ajouter ami',
'ohyes:un:friend' => 'Enlever des amis',
'ohyes:message' => 'Message',
'ohyes:about' => 'A propos',
'profile:edit' => 'Editer',

'ohyes:cover:add' => 'Ajouter image de couverture',
'ohyes:theme:cover:done' => 'La couverture est ajoutée',
'ohyes:theme:cover:no' => "Impossible d'ajouter l'image de couverture",
'ohyes:theme:cover:removed' => "L'image de couverture a été enlevée",
'ohyes:theme:cover:remove:error' => "Impossible d'enlever l'image de couverture, réessayer",

);

add_translation("fr", $french);

OSSN seems great, but when I changed language settings to german for instance, it still is in english. Is there some changes to do to over library file ?

ghost commented 9 years ago

I get it ! Thanks for all !

lianglee commented 9 years ago

@Ossn v2.0 is under work there are alot of issue