-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to do/add translations? #132
Comments
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! |
|
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
The text was updated successfully, but these errors were encountered: