Commits

sbl5007 committed 95912ca

modify extract to put full header into poe file

  • Participants
  • Parent commits 30b4568

Comments (0)

Files changed (2)

File share/translation/extract/extract.cpp

 msgstr \"\"\n\
 \"MIME-Version: 1.0\\n\"\n\
 \"Content-Type: text/plain; charset=UTF-8\\n\"\n\
-\"Content-Transfer-Encoding: 8bit\\n\"\n\n\
+\"Content-Transfer-Encoding: 8bit\\n\"\n\
+\"Project-Id-Version: PACKAGE VERSION\\n\"\n\
+\"Last-Translator: Automatically generated\\n\"\n\
+\"Language-Team: none\\n\"\n\
+\"Language: \\n\"\n\
+\"Plural-Forms: nplurals=2; plural=(n != 1);\\n\"\n\n\n\
 ");
 
 typedef std::map<std::string, std::map<std::string, std::vector<std::string> > > TStrings; // domain -> strings -> locations

File share/translation/update1-src2pot.sh

 for e in $epots
 do
 	pot=${e/%e/t}
-	echo -ne "\E[1;31m$pot \E[0m"
+	echo -ne "\E[1;31m$pot \E[0m\n"
 	if [ -f "$pot" ]; then
 		msgcat -F -o "$pot" "$pot" "$e"
 	else
-		msginit --no-translator -i "$e" -o "$pot"
+    cat "$e" > "$pot"
 	fi
 done