mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-30 00:03:29 +01:00
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:
24
src/net/launchpad/tobal/poparser/ParserTest.java
Normal file
24
src/net/launchpad/tobal/poparser/ParserTest.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user