Am 11.05.2015 um 17:18 schrieb Jürgen Spitzmüller <sp...@lyx.org>: > 2015-05-11 17:09 GMT+02:00 Jean-Marc Lasgouttes <lasgout...@lyx.org>: > Hi, > > I have been annoyed for a long time by the combox for choosing UI language: > it shows English (UK), English (UK)... where as only one en.po exists. This > patch solves this problem. The way it is implemented is to decide that the > first language that corresponds to a given .po file is the one that gets > displayed. The languages file is therefore reorganized in order to be sorted > by GuiName, which works weird. > > I wanted to avoid having to create a new list of UI languages that would have > to be kept in sync when adding new languages. The only remaining glitch is > for Arabic, where the choice is between displaying "Arabic (Arabi)" and > "Arabic (ArabTeX)". > > Thoughts? > > This solution strikes me odd. The languages file is for document languages > support. Having it to be ordered for GUI language purposes just does not feel > right.
+1 > I would rather create a separate file for UI languages with the appropriate > GUI names. Isn't it possible to use a sorted hash map and let the languages file untouched? Stephan