Update GDScriptTranslationParserPlugin to use GDSriptParser instead of RegEx.

This commit is contained in:
SkyJJ
2020-08-12 22:52:17 +02:00
parent 0ef758eaee
commit ce3461dc88
7 changed files with 308 additions and 142 deletions

View File

@ -79,13 +79,13 @@ void POTGenerator::generate_pot(const String &p_file) {
return;
}
for (int j = 0; j < msgids.size(); j++) {
_add_new_msgid(msgids[j], "", "", file_path);
}
for (int j = 0; j < msgids_context_plural.size(); j++) {
Vector<String> entry = msgids_context_plural[j];
_add_new_msgid(entry[0], entry[1], entry[2], file_path);
}
for (int j = 0; j < msgids.size(); j++) {
_add_new_msgid(msgids[j], "", "", file_path);
}
}
_write_to_pot(p_file);