wp-plugin-creativecommons icon indicating copy to clipboard operation
wp-plugin-creativecommons copied to clipboard

How to do/add translations?

Open GwynethLlewelyn opened this issue 4 years ago • 4 comments

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 page

CreativeCommons-pt_PT.zip (obviously I share these to the community under a CC-BY 4.0 International license ;-) )

Implementation

  • [x] I would be interested in implementing this feature.

GwynethLlewelyn avatar Sep 23 '20 19:09 GwynethLlewelyn

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. ⭐

hugosolar avatar Oct 12 '20 20:10 hugosolar

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

Sokiraon avatar Oct 15 '20 08:10 Sokiraon

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

Sokiraon avatar Oct 15 '20 12:10 Sokiraon

@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.

Cronus1007 avatar Jan 30 '21 01:01 Cronus1007