jgettext / gettext-commons

Internationalization (i18n) through GNU gettext and Java ResourceBundles
GNU Lesser General Public License v2.1
19 stars 10 forks source link

Maven plugin doesnt work #62

Closed JuKu closed 4 years ago

JuKu commented 6 years ago

Maven plugin doesnt generates any file.

<plugin>
    <groupId>com.googlecode.gettext-commons</groupId>
    <artifactId>gettext-maven-plugin</artifactId>
    <version>1.2.4</version>
    <executions>
        <execution>
            <id>convert-po-class</id>
            <phase>compile</phase>
            <goals>
                <goal>dist</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <keysFile>messages.pot</keysFile>
        <poDirectory>${basedir}/../data/po</poDirectory>
        <targetBundle>com.jukusoft.rts.gui.GameGUI</targetBundle>
        <outputFormat>properties</outputFormat>
    </configuration>
</plugin>
nicolas-f commented 6 years ago

hi, In order to update pot files, did you run mvn gettext:gettext on your project ?

JuKu commented 6 years ago

No, i didnt. Do i have to? No .pot file exists yet, because no file was created.

nicolas-f commented 6 years ago

Yes. The translations procedure for projects is like this:

JuKu commented 6 years ago

Thanks for your answer! This workflow is a little bit complicated. Where can i found the translation manager?

nicolas-f commented 6 years ago

If you are working alone, just run mvn gettext:gettext, use a po editor for each language then run mvn compile

JuKu commented 6 years ago

Thanks!