Permalink
Browse files

chore: update gettext plugin, sort po files

  • Loading branch information...
vlsi committed Jun 2, 2018
1 parent 03a1441 commit eb5c8fdd6b37eb29262713584d01d73b8b7d299a
Showing with 15 additions and 40 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 codecov.yml
  3. +11 −40 pgjdbc/pom.xml
  4. +1 −0 pgjdbc/src/main/checkstyle/suppressions.xml
@@ -14,6 +14,7 @@ nbproject
*.iws
*.local.properties
*-dist.zip
*.po.~*~
target/
pom.xml.tag
pom.xml.releaseBackup
@@ -8,3 +8,5 @@ coverage:
status:
patch: false
range: "60...100"
ignore:
- "**/translation/message*.java"
@@ -53,19 +53,23 @@
<build>
<plugins>
<plugin>
<groupId>com.googlecode.gettext-commons</groupId>
<groupId>com.github.vlsi.gettext</groupId>
<artifactId>gettext-maven-plugin</artifactId>
<version>1.2.4</version>
<version>1.2.11</version>
<executions>
<execution>
<id>update_po_with_new_messages</id>
<phase>generate-resources</phase>
<goals>
<goal>gettext</goal>
</goals>
</execution>
<execution>
<id>generate_pot_and_po_files</id>
<phase>generate-resources</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<outputDirectory>src/main/resources</outputDirectory>
</configuration>
</execution>
<execution>
<id>generate_resource_bundles</id>
@@ -76,49 +80,16 @@
</execution>
</executions>
<configuration>
<outputFormat>java</outputFormat>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
<outputDirectory>src/main/resources</outputDirectory>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
<keysFile>messages.pot</keysFile>
<poDirectory>src/main/java/org/postgresql/translation</poDirectory>
<targetBundle>org.postgresql.translation.messages</targetBundle>
<keywords>-kGT.tr</keywords>
<msgmergeCmd>msgmerge</msgmergeCmd>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>clean_msmerge_backups</id>
<goals>
<goal>clean</goal>
</goals>
<phase>compile</phase>
<configuration>
<!-- Do not delete target folder -->
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>src/main/resources/org/postgresql/translation</directory>
<includes>
<include>**$*.class</include>
<include>messages.properties</include>
<include>messages_en.properties</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
<fileset>
<directory>src/main/java/org/postgresql/translation</directory>
<includes>
<include>*.po.~*~</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
@@ -6,4 +6,5 @@

<suppressions>
<suppress files="WriterHandler\.java" checks="RegexpHeader"/>
<suppress checks=".*" files=".*[/\\]messages_[^.]*.java"/>
</suppressions>

0 comments on commit eb5c8fd

Please sign in to comment.