[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdesdk/poxml
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2005-08-31 21:54:04
Message-ID: 1125525244.889189.17051.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 455576 by goutte:
Be careful with leading and trailing \n:
- the test must be done on a unmodified msdig
(as msgfmt --check does not know nothing of KDE's ways)
- for trailing \n, be careful that they are not \\n
M +4 -2 transxx.cpp
--- branches/KDE/3.5/kdesdk/poxml/transxx.cpp #455575:455576
@@ -103,9 +103,11 @@
else
msgstr = translation + msgid + translation;
- if ( msgid.endsWith( "\\n" ) )
+ // Note: msgid has been modified, so we need to go back to the original \
version by the help of the iterator + // (Gettext is not aware of the \
KDE-specific handling, so it really wants a \n at start and at end in the msgstr if \
they were in the msgid ) + if ( ( *it ).msgid.endsWith( "\\n" ) && ! ( *it \
).msgid.endsWith( "\\\\n" )) msgstr += "\n";
- if ( msgid.startsWith( "\\n" ) )
+ if ( ( *it ).msgid.startsWith( "\\n" ) )
msgstr.prepend( "\n" );
if ( msgid_plural.isEmpty() ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic