1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 19:44:15 +02:00

So you like pot?

This commit is contained in:
snowleo
2013-04-01 23:23:51 +02:00
parent 4131a36765
commit e669fdc4ee
6 changed files with 4375 additions and 104 deletions

2109
Essentials/po/en.po Normal file

File diff suppressed because it is too large Load Diff

2109
Essentials/po/keys.pot Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,108 +1,125 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>net.essentials3</groupId> <groupId>net.essentials3</groupId>
<artifactId>BuildAll</artifactId> <artifactId>BuildAll</artifactId>
<version>3.0-SNAPSHOT</version> <version>3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>Essentials</artifactId> <artifactId>Essentials</artifactId>
<dependencies> <dependencies>
<!-- Internal Depends --> <!-- Internal Depends -->
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>EssentialsGroupManager</artifactId> <artifactId>EssentialsGroupManager</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>0.11.6</version> <version>0.11.6</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>2.4</version> <version>2.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId> <artifactId>commons-compress</artifactId>
<version>1.4.1</version> <version>1.4.1</version>
</dependency> </dependency>
<!-- Test Depends --> <!-- Test Depends -->
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.10</version> <version>4.10</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId> <artifactId>mockito-core</artifactId>
<version>1.9.5</version> <version>1.9.5</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- External Plugin Depends --> <!-- External Plugin Depends -->
<dependency> <dependency>
<groupId>cosine</groupId> <groupId>cosine</groupId>
<artifactId>BOSEconomy</artifactId> <artifactId>BOSEconomy</artifactId>
<version>0.7</version> <version>0.7</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.iConomy</groupId> <groupId>com.iConomy</groupId>
<artifactId>iConomy</artifactId> <artifactId>iConomy</artifactId>
<version>5.0</version> <version>5.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.iCo6</groupId> <groupId>com.iCo6</groupId>
<artifactId>iConomy</artifactId> <artifactId>iConomy</artifactId>
<version>6.0</version> <version>6.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.ashtheking</groupId> <groupId>me.ashtheking</groupId>
<artifactId>MultiCurrency</artifactId> <artifactId>MultiCurrency</artifactId>
<version>0.05</version> <version>0.05</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.milkbowl</groupId> <groupId>net.milkbowl</groupId>
<artifactId>Vault</artifactId> <artifactId>Vault</artifactId>
<version>1.2</version> <version>1.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.0</version> <version>2.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<artifactSet> <artifactSet>
<includes> <includes>
<include>commons-io:*</include> <include>commons-io:*</include>
<include>org.apache.commons:*</include> <include>org.apache.commons:*</include>
</includes> </includes>
</artifactSet> </artifactSet>
<minimizeJar>true</minimizeJar> <minimizeJar>true</minimizeJar>
<relocations> <relocations>
<relocation> <relocation>
<pattern>org.apache.commons</pattern> <pattern>org.apache.commons</pattern>
<shadedPattern>net.ess3.commons</shadedPattern> <shadedPattern>net.ess3.commons</shadedPattern>
</relocation> </relocation>
</relocations> </relocations>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> <plugin>
</build> <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>
</build>
</project> </project>

View File

@@ -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?

View File

@@ -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
View File

@@ -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>