[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/poxml
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2011-01-06 23:53:29
Message-ID: 20110106235329.C65A1AC8B0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1212430 by aacid:
Do not translate nor extract for translation single word <command> tags since it does not make sense
and more often than not breaks man_.docbook compilation
M +23 -0 parser.cpp
--- trunk/KDE/kdesdk/poxml/parser.cpp #1212429:1212430
@@ -1055,6 +1055,29 @@
}
} while (changed);
+ // Remove any single word command block since
+ // it does not make sense to translate a command line command
+ {
+ MsgList::Iterator it = english.begin();
+ while (it != english.end())
+ {
+ if ((*it).tag == QLatin1String("command"))
+ {
+ bool hasSpaces = false;
+ for (int i = 0; !hasSpaces && i < (*it).msgid.length(); ++i)
+ hasSpaces = (*it).msgid[i].isSpace();
+ if (!hasSpaces)
+ it = english.erase(it);
+ else
+ ++it;
+ }
+ else
+ {
+ ++it;
+ }
+ }
+ }
+
return english;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic