mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
So you like pot?
This commit is contained in:
2109
Essentials/po/en.po
Normal file
2109
Essentials/po/en.po
Normal file
File diff suppressed because it is too large
Load Diff
2109
Essentials/po/keys.pot
Normal file
2109
Essentials/po/keys.pot
Normal file
File diff suppressed because it is too large
Load Diff
@@ -103,6 +103,23 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.xnap.commons</groupId>
|
||||||
|
<artifactId>maven-gettext-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<poDirectory>${basedir}/po/</poDirectory>
|
||||||
|
<targetBundle>messages2</targetBundle>
|
||||||
|
<keywords>-k_ -k</keywords>
|
||||||
|
<outputFormat>properties</outputFormat>
|
||||||
|
<sourceDirectory>${basedir}/../</sourceDirectory>
|
||||||
|
<!--extraSourceFiles>
|
||||||
|
<directory>${basedir}/../</directory>
|
||||||
|
<includes>
|
||||||
|
<include>Essentials*/**/*.java</include>
|
||||||
|
</includes>
|
||||||
|
</extraSourceFiles-->
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -505,3 +505,5 @@ recipeGrid=\u00a7{0}X \u00a76| \u00a7{1}X \u00a76| \u00a7{2}X
|
|||||||
recipeGridItem=\ \u00a7{0}X \u00a76is \u00a7c{1}
|
recipeGridItem=\ \u00a7{0}X \u00a76is \u00a7c{1}
|
||||||
recipeMore=\u00a76Type /{0} \u00a7c{1}\u00a76 <number> to see other recipes for \u00a7c{2}
|
recipeMore=\u00a76Type /{0} \u00a7c{1}\u00a76 <number> to see other recipes for \u00a7c{2}
|
||||||
recipeWhere=\u00a76Where: {0}
|
recipeWhere=\u00a76Where: {0}
|
||||||
|
#, java-format
|
||||||
|
Hello\ {0},\ how\ are\ you?=\u00a7fHello \u00a74{0}\u00a7f, how are you?
|
||||||
|
@@ -7,6 +7,7 @@ import java.util.logging.Logger;
|
|||||||
import net.ess3.api.InvalidNameException;
|
import net.ess3.api.InvalidNameException;
|
||||||
import net.ess3.utils.DateUtil;
|
import net.ess3.utils.DateUtil;
|
||||||
import net.ess3.utils.Util;
|
import net.ess3.utils.Util;
|
||||||
|
import static net.ess3.I18n._;
|
||||||
|
|
||||||
|
|
||||||
public class UtilTest extends EssentialsTest
|
public class UtilTest extends EssentialsTest
|
||||||
@@ -17,6 +18,11 @@ public class UtilTest extends EssentialsTest
|
|||||||
super(name);
|
super(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testI18n()
|
||||||
|
{
|
||||||
|
_("Hello {0}, how are you?");
|
||||||
|
}
|
||||||
|
|
||||||
public void testFDDnow()
|
public void testFDDnow()
|
||||||
{
|
{
|
||||||
Calendar c = new GregorianCalendar();
|
Calendar c = new GregorianCalendar();
|
||||||
|
30
pom.xml
30
pom.xml
@@ -39,6 +39,16 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>gettext-commons-site</id>
|
||||||
|
<url>http://gettext-commons-maven-repository.googlecode.com/svn/repository/</url>
|
||||||
|
<releases>
|
||||||
|
<updatePolicy>daily</updatePolicy>
|
||||||
|
</releases>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
<finalName>${project.name}</finalName>
|
||||||
<sourceDirectory>${project.basedir}/src</sourceDirectory>
|
<sourceDirectory>${project.basedir}/src</sourceDirectory>
|
||||||
@@ -64,13 +74,31 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.3.2</version>
|
<version>3.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.6</source>
|
<source>1.6</source>
|
||||||
<target>1.6</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.xnap.commons</groupId>
|
||||||
|
<artifactId>maven-gettext-plugin</artifactId>
|
||||||
|
<version>1.2.3</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>compile</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>merge</goal>
|
||||||
|
<goal>dist</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
Reference in New Issue
Block a user