Open GwynethLlewelyn opened 4 years ago
Thank you so much for flagging this. I'll add it to our sprint to fix this as soon as possible. Thank you for your Portuguese contribution as well, I'll add it to the plugin. ⭐
Thank you so much for flagging this. I'll add it to our sprint to fix this as soon as possible. Thank you for your Portuguese contribution as well, I'll add it to the plugin. ⭐
I've made a translation of Chinese (China). Could you help me add it to the plugin as well? Thank you! CreativeCommons-zh_CN.zip
Thank you so much for flagging this. I'll add it to our sprint to fix this as soon as possible. Thank you for your Portuguese contribution as well, I'll add it to the plugin. ⭐
I've made a translation of Chinese (China). Could you help me add it to the plugin as well? Thank you! CreativeCommons-zh_CN.zip
@hugosolar
@hugosolar let me add the required languages in the language folder and start with this one CreativeCommons-zh_CN.zip and then will move to other languages.
Problem
Apparently, the code for implementing multiple languages is not properly done according to WP best practices, or so is claimed on https://translate.wordpress.org/projects/wp-plugins/creative-commons/
I use the Loco Translate plugin to add translations, which complains about lack of proper internationalisation support (although it still works!), and #109 mentions that the Transifex plugin complains about the same issue.
Description
Well, as said, this probably requires a heavy code refactoring. But allegedly 70% of the plugin is already translated into Spanish, so possibly there is at least some support for translating the plugin...
Alternatives
Right now, I can only recommend the Loco Translate plugin, which does the job. Another alternative is to hack the whole code... which is not an option, obviously.
Additional context
All I can do is to make a modest contribution with a Portuguese (European) translation attached as a ZIP file (GitHub dislikes
.mo
or.po
files). These are generated from within Loco Translate. Maybe there is a way to upload it automatically to the official WordPress translations pageCreativeCommons-pt_PT.zip (obviously I share these to the community under a CC-BY 4.0 International license ;-) )
Implementation