]> git.lyx.org Git - features.git/commit
Tracking correctly available translations (take 2)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 23 Aug 2012 13:08:21 +0000 (15:08 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 12 Sep 2012 08:20:05 +0000 (10:20 +0200)
commit2512e1f085a6ad044d6d0ff68f75390ed1d34c75
tree6a51950c917c75a693d141c2f1cd58b7c2a0215f
parentca3cf1f222a59eaf5630ce4c166c2ce1bbd56ed8
Tracking correctly available translations (take 2)

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).

Now there is an helper static method in Messages class that checks
whether a readable .mo file exist for the language. There should be an
API in gettext for doing that, but alas it is not possible.

As a consequence the method Language::translated() has been removed,
along with its cache.
src/Language.cpp
src/Language.h
src/frontends/qt4/GuiPrefs.cpp
src/support/Messages.cpp
src/support/Messages.h