Implementations of XmlCategoryParser and XmlVendorParser.

This commit is contained in:
Jim Evins
2013-11-03 12:08:09 -05:00
parent 109574a409
commit 6ebc6a3177
7 changed files with 333 additions and 4 deletions
+8 -1
View File
@@ -152,7 +152,14 @@ namespace libglabels
QString XmlUtil::getAttrI18n( const QDomElement &node, const QString &name, const QString &default_value )
{
// TODO: are translations done in a compatable way, so that we can use "_name" attributes?
return node.attribute( QString("_").append(name), default_value );
QString i18nString = node.attribute( QString("_").append(name), "" );
if ( i18nString == "" )
{
return node.attribute( name, default_value );
}
return i18nString;
}