tools/linguist/shared/xliff.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   501         m_fileName = atts.value(QLatin1String("original"));
   501         m_fileName = atts.value(QLatin1String("original"));
   502         m_language = atts.value(QLatin1String("target-language"));
   502         m_language = atts.value(QLatin1String("target-language"));
   503         m_language.replace(QLatin1Char('-'), QLatin1Char('_'));
   503         m_language.replace(QLatin1Char('-'), QLatin1Char('_'));
   504         m_sourceLanguage = atts.value(QLatin1String("source-language"));
   504         m_sourceLanguage = atts.value(QLatin1String("source-language"));
   505         m_sourceLanguage.replace(QLatin1Char('-'), QLatin1Char('_'));
   505         m_sourceLanguage.replace(QLatin1Char('-'), QLatin1Char('_'));
       
   506         if (m_sourceLanguage == QLatin1String("en"))
       
   507             m_sourceLanguage.clear();
   506     } else if (localName == QLatin1String("group")) {
   508     } else if (localName == QLatin1String("group")) {
   507         if (atts.value(QLatin1String("restype")) == QLatin1String(restypeContext)) {
   509         if (atts.value(QLatin1String("restype")) == QLatin1String(restypeContext)) {
   508             m_context = atts.value(QLatin1String("resname"));
   510             m_context = atts.value(QLatin1String("resname"));
   509             pushContext(XC_restype_context);
   511             pushContext(XC_restype_context);
   510         } else {
   512         } else {