Update of /cvsroot/wpdev/wolfpack/tools/translationupdate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5486/tools/translationupdate
Modified Files:
fetchtrwp.cpp
Log Message:
allowed translation of NPC titles
Index: fetchtrwp.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/tools/translationupdate/fetchtrwp.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fetchtrwp.cpp 26 Sep 2004 00:21:54 -0000 1.1
--- fetchtrwp.cpp 26 Sep 2004 12:45:54 -0000 1.2
***************
*** 83,90 ****
};
! bool DefinitionHandler::startElement( const QString& /* namespaceURI */, const QString& /* localName */, const QString& qName, const QXmlAttributes& /* atts */ )
{
if ( qName == QString( "title" ) )
{
flush();
}
--- 83,98 ----
};
! bool DefinitionHandler::startElement( const QString& /* namespaceURI */, const QString& /* localName */, const QString& qName, const QXmlAttributes& atts )
{
if ( qName == QString( "title" ) )
{
+ QString value = atts.value("context");
+
+ if (!value.isEmpty()) {
+ context = value;
+ } else {
+ context = "@default";
+ }
+
flush();
}
|