]> git.lyx.org Git - features.git/commit
Read list of translated languages from a file
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Jul 2012 22:02:56 +0000 (00:02 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Jul 2012 22:21:28 +0000 (00:21 +0200)
commited1515ef69d0381e9b0657cf1966f9d86e0cb25f
tree1bc64a49738aa58c8fc56e966043d171e70542fc
parent08b3d492fac48e1b36d46cb236b19eb04ebd1098
Read list of translated languages from a file

The previous scheme of loading all possible translations and checking whether the work
is a bit too much "brute force" and causes problems on Mac OS X (documents loaded
with the wrong language).

In the new scheme, autotools install a file lib/installed_translations that contains a list of installed languages (the .gmo files that got installed). This file is read
in Languages::readInstalledTranslations and allows to set the translated() property
of each language.
configure.ac
lib/Makefile.am
src/Language.cpp
src/Language.h