X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=compiler%2Fecs%2Fecs.ec;h=925fbb692419a649a355d6ce76f5acc52d2ad21e;hb=0ab81268d95f21a4d82521ce2d67be5627f10e3c;hp=3c217eb4a331599435d3b18f4e2060698e77dfa9;hpb=41f7f56a53de1fbefe2f219425f65803d2962db0;p=sdk diff --git a/compiler/ecs/ecs.ec b/compiler/ecs/ecs.ec index 3c217eb..925fbb6 100644 --- a/compiler/ecs/ecs.ec +++ b/compiler/ecs/ecs.ec @@ -1918,6 +1918,20 @@ class SymbolgenApp : Application potFile = FileOpen(potFileName, write); if(potFile) { + // Write header: + potFile.Puts("msgid \"\"\n"); + potFile.Puts("msgstr ""\n"); + potFile.Puts("\"Project-Id-Version: \\n\"\n"); + potFile.Puts("\"POT-Creation-Date: \\n\"\n"); + potFile.Puts("\"PO-Revision-Date: \\n\"\n"); + potFile.Puts("\"Last-Translator: \\n\"\n"); + potFile.Puts("\"Language-Team: \\n\"\n"); + potFile.Puts("\"MIME-Version: 1.0\\n\"\n"); + potFile.Puts("\"Content-Type: text/plain; charset=iso-8859-1\\n\"\n"); + potFile.Puts("\"Content-Transfer-Encoding: 8bit\\n\"\n"); + potFile.Puts("\"X-Poedit-Basepath: ..\\\\\\n\"\n"); + potFile.Puts("\n"); + for(i : intlStrings) { ContextStringPair pair = &i;