Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Default language only translation check #103

Closed
daniilyar opened this Issue Feb 9, 2014 · 1 comment

Comments

Projects
None yet
3 participants
Contributor

daniilyar commented Feb 9, 2014 edited by romani

Ported from Sourceforge patch 208

The issue what we get is related to TranslationCheck, it works fine, but it checks all property file locales for the key presence. In our case we have all keys in the default language (English in our case) property file only, the other languages might miss some keys as it's enough to have it only in English or translation in French is not ready yet. This patch adds new property defaultLocales so TranslationCheck reports the missing keys in property files of the languages codes listed in the defaultLocales property.
For example, there are following properties files:

message.property

hello=Hello

message_de.property
hello=Hallo
warning_en.property

cancel=Cancel

warning_de.property
cancel=Abbrechen

Assume, that the default locale is English, so setting defaultLocales to , ,en we will get the missing keys "hello" and "cancel" in message.property and warning_en.property accordingly.

Contributor

MEZk commented Aug 6, 2016

@romani
Take a look at the issue. The fix was implemented in #2166.

@romani romani closed this Nov 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment