]> git.lyx.org Git - features.git/commit
Improve list of available languages for UI l10n.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 7 May 2015 15:20:23 +0000 (17:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 May 2015 08:48:38 +0000 (10:48 +0200)
commit88609b3984073157270a5d935e4a8bf8012135a6
treebc03969f7105dc3e69d461ad431cd2a8b58ac36c
parentf70e78487e0cc8939e7496998a0bd4e3be2fd76c
Improve list of available languages for UI l10n.

Add a new tag HasGuiSupport to language file. Add it for all l10ns
that we currently ship. The po files that are unused are not currently
tagged as available, but this could be done, since the code later
checks that the translation is actually there.

This new information is used in GuiPrefs when populating the language
combox.

The new scheme implies that adding a new language is now a two-step
process:
* the language code has to be added to po/LINGUAS, as before;
* one of the entries of the lib/language file has to be selected as
  reference and be given the "HasGuiSupport true" property.
README.localization
lib/languages
src/Language.cpp
src/Language.h
src/frontends/qt4/GuiPrefs.cpp