Martin Vermeer wrote:

> With this patch, the code expects the po files to be 8-bit. it is robust
> against users configuring locale strings like de_DE.UTF-8. You shouldn't
> see messed-up menu strings (or inset button texts, TOC/navigation menu
> entries ety.) anymore. If you see them, that is a bug in this patch ;-)

All works well now on SuSE 9.2 with LANG=de_DE.UTF-8. Nice work! (and I am
impressed by the number of fixes that flooded in).

One little problem is left: The console output seems to be latin1 now,
although it should be utf8:

Menu warning: menu entries "Schrift?derung|S" and "Split-Umgebung|S" share
the same shortcut.

Then there was a strangely formatted block of code that I wanted to fix, but
CVS access was denied (insufficient karma). Why?


Georg
Index: src/frontends/qt2/QLyXKeySym.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QLyXKeySym.C,v
retrieving revision 1.34
diff -u -p -r1.34 QLyXKeySym.C
--- src/frontends/qt2/QLyXKeySym.C	17 Jul 2005 11:58:54 -0000	1.34
+++ src/frontends/qt2/QLyXKeySym.C	18 Jul 2005 09:43:06 -0000
@@ -118,11 +118,10 @@ void initEncodings()
 	lyxerr << "Language code:" << s << endl;
 	for (Languages::const_iterator it=languages.begin(); it != languages.end(); ++it) {
 		//lyxerr << it->second.code() << ":" << it->second.encodingStr() << ":" << it->second.encoding() << endl;
-		if (it->second.code() == s)
-			{
-				s = it->second.encodingStr();
-				break;
-			}
+		if (it->second.code() == s) {
+			s = it->second.encodingStr();
+			break;
+		}
 	}
 	lyxerr << "Setting new locale for Qt:" << s << endl;
 	QTextCodec * defaultCodec = encoding_map[s];

Reply via email to