Fetches tr() calls in C++ code in UI files (inside " " tag). This mechanism is obsolete. */
| 1124 | tag). This mechanism is obsolete. |
| 1125 | */ |
| 1126 | void fetchtrInlinedCpp(const QString &in, Translator &translator, const QString &context) |
| 1127 | { |
| 1128 | yyInStr = in; |
| 1129 | yyInPos = 0; |
| 1130 | yyFileName = QString(); |
| 1131 | yyCodecIsUtf8 = (translator.codecName() == "UTF-8"); |
| 1132 | yyForceUtf8 = true; |
| 1133 | yySourceIsUnicode = true; |
| 1134 | yySavedBraceDepth.clear(); |
| 1135 | yySavedParenDepth.clear(); |
| 1136 | yyBraceDepth = 0; |
| 1137 | yyParenDepth = 0; |
| 1138 | yyCurLineNo = 1; |
| 1139 | yyBraceLineNo = 1; |
| 1140 | yyParenLineNo = 1; |
| 1141 | yyCh = getChar(); |
| 1142 | |
| 1143 | parse(&translator, context, QString()); |
| 1144 | } |
| 1145 | |
| 1146 | |
| 1147 | bool loadCPP(Translator &translator, QIODevice &dev, ConversionData &cd) |