problÈme pour traduction / problem for translation

EN :

Hello we are French and the plugin is in English. So we decided to put the plugin in French with the po / mo unfortunately its not working.

Who can help us to put the plugin in French?

thank you

For info: we currently tuilisons plugin that works very well "Location" for Wordpress.

FR:

Bonjour, nous sommes français et le plugin est en anglais. Nous avons donc décidé de mettre le plugin en français avec le po / mo malheureusement sa ne fonctionne pas. Qui peut nous aider à mettre le plugin en français? Merci Pour info: nous utilisons actuellement plugin qui fonctionne très bien "Lieu" pour Wordpress.

EN:

Hello,

Currently, pluign does not support translation. We are working on translation services for the plugin and it will be available in version 2.5.

FR:

Bonjour,

Actuellement, le pluign ne prend pas en charge la traduction. Nous travaillons sur des services de traduction pour le plugin et il sera disponible dans la version 2.5.

Très bien, merci pour votre retour rapide. Savez-vous approximativement à quelle date ou période allez-vous sortir la prochaine version, pour pouvoir traduire ?

Merci Cordialement

The next version 2.4 will be a code rewrite and we will be focusing on adding translation support. We hope to release this in 10-15 days.

Till then, you would have to wait a little. Sorry for that!

And the french version is courtesy of google translate. So, please excuse our errors here.

Regards.

FR:

La prochaine version 2.4 sera une réécriture du code et nous allons nous concentrer sur l'ajout d'aide à la traduction. Nous espérons pouvoir lancer ce en 10-15 jours.

Jusque-là, il vous faudra attendre encore un peu. Désolé pour ça!

Et la version française est une gracieuseté de Google traduction. Donc, s'il vous plaît excuser nos erreurs ici.

Cordialement.

Bonjour Matt, J' ai trouve' j crois une solution au probleme. Ajoute la ligne ci-dessous en haut du fichier loader.php du dossier du plugin.

load_plugin_textdomain('bp-media', false, dirname(plugin_basename(__FILE__)) . '/languages/');  

Il faudra créer le dossier languages et y mettre ton fichier .mo. Aussi il faudra supprimer la ligne contenant textdomain du fichier bp-media-loader.php. Et voila. Bonne chance.

  • Cordialement

Hi,

We are aware of the solution. But it takes more than that. Every string in the code needs to be translatable. This is not the case with the current version. The version under development is here: http://github.com/rtcamp/buddypress-media. Some strings are still left. We'll soon complete that. After that, the translations will be managed here: http://rtcamp.com/translate.

Once we are ready with that, we'll release 2.4, which should happen in a few more days.

Regards.

FR(via google translate):

Salut,

Nous sommes conscients de la solution. Mais il faut plus que cela. Chaque chaîne dans le code doit être traduisible. Ce n'est pas le cas avec la version actuelle. La version en cours de développement est ici: http://github.com/rtcamp/buddypress-media. Certaines chaînes sont encore à gauche. Nous allons bientôt terminer cela. Après cela, les traductions seront gérées ici: http://rtcamp.com/translate.

Une fois que nous sommes prêts à cela, nous publierons 2.4, qui devrait arriver dans quelques jours.

Cordialement.

Hi,

Although 2.4 will take a little while, our code is translation ready. You can login on http://rtcamp.com/translate with the same username/password as rtcamp.com and contribute to the French translation here: https://rtcamp.com/translate/projects/buddypress-media/fr/default

Regards.

FR: Salut,

Bien 2.4, prendre un peu de temps, notre code est la traduction prête. Vous pouvez vous connecter sur http://rtcamp.com/translate avec le même nom d'utilisateur / mot de passe rtcamp.com et de contribuer à la traduction en français ici: https://rtcamp.com/translate/projects/buddypress-media/fr/default

Cordialement.

Hi, Unfortunately the new versions 2.4 and 2.4.1 still did not load the plugin textdomain properly. I think you guys maybe overcoding the text domain stuff. Why not just set the textdomain above the main index file with the right string and just use that string throughout the code instead of trying to load through the class by using $this->text_domain. Somehow the class method is not working. I use codestyling localisation to detect the text domain and auto create and translate the .po file and your text domain is not rendering. I understand that you want to load the textdomain using a class to avoid namespace clashes with another plugin. Also I don't know why you switched the textdomain again. It was bp-media now it is buddypress-media. Please make this translation stuff simpler or am I missing something? I have a .mo file for the french translation that I did for the previous version. Is that applicable to the new version? Can i upload it somewhere for you guys? Thx

Also you are using load_textdomain which is deprecated. Please use load_plugin_textdomain instead.

One more thing the translation for 2.4.1 may not be working for one more reason. in the file BuddyPressMedia.php under app/main you are loading the textdomain with this line: load_textdomain(BP_MEDIA_TXT_DOMAIN, BP_MEDIA_PATH . '/languages/' . get_locale() . '.mo'); The problem is that you have a lang folder in the plugin root not a language folder. This will break things for many as they will not realize the discrepancy.

Thanks and please do know that I just want to help. I really appreciate all the efforts you fine folks put into building such a great plugin and supporting it the way you do.

OK one last thing. I went through the plugin again and the only thing breaking the translation is the loading of the text domain. The line:

if (file_exists(BP_MEDIA_PATH . '/languages/' . get_locale() . '.mo'))  
      load_textdomain(BP_MEDIA_TXT_DOMAIN, BP_MEDIA_PATH . '/languages/' . get_locale() . '.mo');  

is not loading the text domain even with the .mo file present in the languages folder. So I commented it and then added the following line on top of the main plugin index.php file:

load_plugin_textdomain('buddypress-media', false, dirname(plugin_basename(__FILE__)) . '/languages/');  

Thanks again.