-
Notifications
You must be signed in to change notification settings - Fork 9
How to translate Drop Feeds ?
dauphine-dev edited this page Oct 14, 2023
·
6 revisions
- Clone (preferred method) or download Drop Feeds master branch.
- Go in "_locales" folder,
- Create a new folder named with the targeted language code (for example "nl" for Dutch, or "es" for Spanish, see here to found your language code)
- Copy the "messages.json" file from "en" folder into the new language folder and translate it
- Merge the translation
- 5.1 If you have cloned the folder (the recommended way) then do a pull request on 1.0.x branch, and I will merge it with Drop Feed code.
- 5.2 If you have downloaded the Drop Feeds repository, then attach your new translated 'messages.json' in a new message in this issue (don't forget to mention your code language).
- Note: I prefer 5.1 way, but you are not comfortable with GIT don't hesitate to use the 5.2 way
When a new Drop Feeds version is created:
- it come with the file
to-translate
at the root of the repository. - this file contains the list of new entries to translate, and/or the entries need to be updated.
- a issue is opened to ask help to update the translation of the new version then process like for the initial translation but work with the version branch.
- after few days the new version will be make public (available on Mozilla add-ons page), if the translation update come after that work the master branch
But don't worries, if you haven't worked with right branch, I will pick up the file and put in the right branch, then don't hesitate to update translations :-)
User script helps are locate in (where xx is the language code) :
help/xx/userScripts
Translate files feedTransformerHelp.html, and virtualFeedHelp.html
They are html files, then don't modify tags and attributes and translate only the real text.
For example:
<img src="/themes/_templates/img/scripts-delete.png"> : delete the script</li>
in French becomes:
<img src="/themes/_templates/img/scripts-delete.png"> : supprimer le script</li>
Only the part " : delete the script" has been translated.