ioBrokerTranslator / requests

Requests for adapters to be added to weblate.iobroker.net
0 stars 0 forks source link

Add javascript to Weblate #26

Closed Apollon77 closed 3 years ago

Apollon77 commented 3 years ago

Checklist:

Request:

Please add the following adapter to Weblate: Name: ioBroker.javascript URL: https://github.com/ioBroker/ioBroker.javascript

Remarks: i18n files at https://github.com/ioBroker/ioBroker.javascript/tree/master/src/src/i18n (like web)

Apollon77 commented 3 years ago

BTW: DO we have any way toalso get https://github.com/ioBroker/ioBroker.javascript/blob/master/admin/adminWords.js in it? (yes I can also create i18n dir, but then we have two ...)

UncleSamSwiss commented 3 years ago

There are three parts to be translated:

For these, we can create three different "components" in Weblate, but the question is, is this meaningful? Translations should IMHO be in the same file for all parts of the adapter as some strings may otherwise be translated differently. Also, if we want the adminWords.js, you need to add to the gulpfile a way to generate the words.js from the JSON files (and init the JSON files once).

Edit: The command in the gulpfile must be called adminLanguages2words as otherwise the Weblate Addon wouldn't be able to update the languages.

Apollon77 commented 3 years ago

We need:

The https://github.com/ioBroker/ioBroker.javascript/blob/master/admin/adminWords.js is just a copy by build process and can be ignored here.

The gulp task exists ... https://github.com/ioBroker/ioBroker.javascript/blob/master/gulpfile.js#L764 So two

UncleSamSwiss commented 3 years ago

The adapter ioBroker.javascript was added to Weblate: https://weblate.iobroker.net/projects/adapters/javascript/ https://weblate.iobroker.net/projects/adapters/javascript-tab/ (linked to the above)

Please add both badges for Weblate translations to your adapter repository: https://github.com/ioBrokerTranslator/doc#add-badge-to-readmemd

From now on, please follow these guidelines: https://github.com/ioBrokerTranslator/doc#maintenance-of-your-adapter