Added code to generate new english.pot file and some tools to ease

transition of existing translations towards the new content.
This commit is contained in:
Zukero
2018-08-10 23:45:50 +02:00
parent 84e46ffd20
commit 3800bf8ff0
9 changed files with 852 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
/**
* @author Balázs Tóth (tobal17@gmail.com)
*
* Modified by Kevin POCHAT for ATCS
*/
package net.launchpad.tobal.poparser;
import java.io.File;
public class ParserTest
{
public static void main(String args[])
{
File file = new File("C:\\file.po");
POParser parser = new POParser();
POFile po = parser.parseFile(file);
po.printHeader();
po.printFile();
// is the 3th entry fuzzy?
boolean fuzzy = po.checkFlag("fuzzy", 3);
// give me the msgid of the 4th entry
String[] str = po.getStringsFromEntryByType(4, POEntry.StringType.MSGID);
}
}