Translation
-
Same request here.
I’d like to translate this plugin to French, but I can’t since it’s not properly internationalized.
The error log on Make WordPress Slack team says :
“Plugin is not compatible with language packs: Wrong text domain in header.”See https://developer.ww.wp.xz.cn/plugins/internationalization/how-to-internationalize-your-plugin or https://make.ww.wp.xz.cn/meta/handbook/documentation/translations/ if you don’t know how to do.
Thanks
Hi @mndpsingh287,
I see a lot of questions/topics unanswered here, just so we know, are you still supporting this plugin?
Regards,
Hey @peexy,
Yes, we are still supporting this plugin, Please update and reactivate the plugin. It will solve that issue.
Thanks,
MandeepThanks for your answer @mndpsingh287
However, it seems that the issue with i18n is not resolved: https://translate.ww.wp.xz.cn/locale/fr/default/wp-plugins/duplicate-page.
-
This reply was modified 8 years, 3 months ago by
Laurent Naudier.
I just checked your files and you need to have the same text-domain everywhere.
In duplicatepage.php, the text-domain isduplicate_page.However, when you add translatable strings, the text-domain is
duplicate-page. It needs to beduplicate_page.-
This reply was modified 8 years, 3 months ago by
Laurent Naudier.
@mndpsingh287
First issue: Your readme.txt saysStable tag: 2.5, but you don’t have a folder /tags/2.5, so better change to ‘Stable tag: trunk’Then, as Laurent indicated, you declare
Text Domain: duplicate_page, but in your code you useload_plugin_textdomain('duplicate-page',...)An underscore is not a hyphen. The text_domain needs to be the same as your plugin slug, so duplicate-page it should be 🙂So with those 2 changes, you should be good to go for translation on
Thanks @mndpsingh287
It seems to be OK for the trunk version but the stable version is missing.
You’re supposed to have 4 sub-projects (example: https://screenshots.firefox.com/6cSE4IBx5LPrwSmg/translate.ww.wp.xz.cn)
However, I don’t how to achieve that.
@casiepa any advice?
@mndpsingh287
Under tags/1.1 and tags/2.5 you have created a first subfolder called duplicate-page which is causing issues. You should have under those folders directly the contents you have in trunk.Please compare with https://plugins.svn.ww.wp.xz.cn/bbpress/tags/2.5.14/ and https://plugins.svn.ww.wp.xz.cn/bbpress/trunk/
When you have changed it, just change a character in your readme.txt to trigger the update.
-
This reply was modified 8 years, 3 months ago by
Pascal Casier.
Nice @mndpsingh287 I just started translating it to Italian!
Yep, all correctly done now!
Enjoy translation.
@mndpsingh287 Thanks for the updates !
-
This reply was modified 8 years, 3 months ago by
The topic ‘Translation’ is closed to new replies.