[Merkaartor] Patch: Keep language when confirming preferences
Yves Goergen
nospam.list at unclassified.de
Sun Jan 4 23:21:52 GMT 2009
When I confirm the preferences dialogue, Merkaartor only speaks in
English to me from then on. Before that and after a restart of the
application, it usually speaks in German (my UI default). The problem is
that it won't find my translation files. In MainWindow::updateLanguage()
it only looks in the current directory, but that has oft proven to be in
some distant galaxy. This patch adds the application executable's
directory as a default, like the Qt library's function is the default
for the Qt system language. Additionally, it displays an error message
if a language couldn't be found - and won't change anything (i.e.
install that null pointer language).
Although the new error messages use tr() and I have translated them in
Linguist, they'd always show up in English. Although my other
translation additions already have worked. Not sure why this doesn't.
This patch basically keeps the language setting for my Merkaartor
version, which it wouldn't do alone. This may be specific to my build
procedure though and may not happen in other builds or platforms. But
then again, I believe that it doesn't harm.
--
Yves Goergen "LonelyPixel" <nospam.list at unclassified.de>
Visit my web laboratory at http://beta.unclassified.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MainWindow.cpp.diff
URL: <http://lists.openstreetmap.org/pipermail/merkaartor/attachments/20090105/690c8b7f/attachment.ksh>
More information about the Merkaartor
mailing list