codecentric / NSMenuFX

Other
128 stars 27 forks source link

LabelMaker.getResourceName() returns wrong file name. #18

Closed glick closed 7 years ago

glick commented 8 years ago

In the class LabelMaker.java the method getResourceName() return wrong name. You should use locale.toLanguageTag() or concat at least 2 strings manually _, e.g. menu_labels_fr_FR.properties. For example, in Canada and in France using French, but different dialects.

0x4a616e commented 7 years ago

We'll now try to load menu_labels_fr_FR.properties, if that fails fall back to menu_labels_fr.properties and if that also fails, fall back to EN.