data-i18ndata attribute in HTML code, e.g.
<span data-i18n="send_message">Send Message</span>
$.t()function in JS, e.g.
localesfolder, base language is the english translation in
namespace.mynewkey) since this is complicating the filestructure of translation files when created automatically and cause problems when importing files to translation service
$.t()function in a dynamic way (e.g.
$.t(type + "_currency")), otherwise translation keys can't be extracted from the code
[html]) FOR SECURITY REASONS!
ui/locales/en/translation.json. From time to time it might be necessary to collect translation keys forgotten to be added by developers systematically by using the i18next parser. To update the file with the latest keys and English base translations do the following:
localesfolder outside of your Git repository
wc -l ui/locales/en/translation.json
cp ui/js/*.* ui/trans-tmp/,
cp -R ui/html ui/trans-tmp/,
cp ui/*.html ui/trans-tmp/)
i18next ui/trans-tmp -r -l en -o ui/locales/(if there is a strange "reuseSuffix" entry at the top of the file: this is a bug, delete!)
$.t()function in the code base causing
i18nextto not detect all keys. If there is a generated
translation_old.jsonfile, don't throw these away. Instead add these strings manually to the
translation.jsonfile (keep an eye on commas at the end of the lines!)
translation.jsonfile on Crowdin
pt-BR,... with the folders downloaded. Please make sure to NOT touch the English folder
ui/js/nrs.settings.jsfile. Review the status of the languages (40-50%+ Experimental, 70-80%+ Beta, 90-95%+ Stable), eventually add new languages