| 721 | } |
| 722 | |
| 723 | static void recordMessage( |
| 724 | Translator *tor, int line, const QString &context, const QString &text, const QString &comment, |
| 725 | const QString &extracomment, bool utf8, bool plural) |
| 726 | { |
| 727 | TranslatorMessage msg( |
| 728 | transcode(context, utf8), transcode(text, utf8), transcode(comment, utf8), QString(), |
| 729 | yyFileName, line, QStringList(), |
| 730 | TranslatorMessage::Unfinished, plural); |
| 731 | msg.setExtraComment(transcode(extracomment.simplified(), utf8)); |
| 732 | if ((utf8 || yyForceUtf8) && !yyCodecIsUtf8 && msg.needs8Bit()) |
| 733 | msg.setUtf8(true); |
| 734 | tor->extend(msg); |
| 735 | } |
| 736 | |
| 737 | static QString remainingFileString; //used for getting source lines |
| 738 | static int lastLineNumber; |
no test coverage detected