Skip to content

Commit b8e1ed0

Browse files
committed
Add zanata configuration and plugin for internationalization support.
1 parent 2ea77ac commit b8e1ed0

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

pom.xml

+19
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@
106106
<maven.compiler.target>1.8</maven.compiler.target>
107107
<maven.compiler.source>1.8</maven.compiler.source>
108108
<version.com.twitter.hpack>0.10.1</version.com.twitter.hpack>
109+
110+
<!-- Non-default maven plugin versions and configuration -->
111+
<version.org.zanata.plugin>3.7.4</version.org.zanata.plugin>
109112
</properties>
110113

111114
<modules>
@@ -122,6 +125,22 @@
122125
<groupId>org.apache.maven.plugins</groupId>
123126
<artifactId>maven-checkstyle-plugin</artifactId>
124127
</plugin>
128+
129+
<!-- Zanata translations -->
130+
<plugin>
131+
<groupId>org.zanata</groupId>
132+
<artifactId>zanata-maven-plugin</artifactId>
133+
<version>${version.org.zanata.plugin}</version>
134+
<configuration>
135+
<!-- Process sub-modules separately, sharing parent config -->
136+
<enableModules>true</enableModules>
137+
<projectConfig>${session.executionRootDirectory}/zanata.xml</projectConfig>
138+
<!-- Generated English i18n.properties are written here: -->
139+
<srcDir>target/classes</srcDir>
140+
<transDir>src/main/resources</transDir>
141+
<includes>**/*.i18n.properties,**/LocalDescriptions.properties</includes>
142+
</configuration>
143+
</plugin>
125144
</plugins>
126145
<pluginManagement>
127146
<plugins>

zanata.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<!--
3+
~ JBoss, Home of Professional Open Source.
4+
~
5+
~ Copyright 2016 Red Hat, Inc., and individual contributors
6+
~ as indicated by the @author tags.
7+
~
8+
~ Licensed under the Apache License, Version 2.0 (the "License");
9+
~ you may not use this file except in compliance with the License.
10+
~ You may obtain a copy of the License at
11+
~
12+
~ http://www.apache.org/licenses/LICENSE-2.0
13+
~
14+
~ Unless required by applicable law or agreed to in writing, software
15+
~ distributed under the License is distributed on an "AS IS" BASIS,
16+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
~ See the License for the specific language governing permissions and
18+
~ limitations under the License.
19+
-->
20+
21+
<config xmlns="http://zanata.org/namespace/config/">
22+
<url>https://translate.jboss.org/</url>
23+
<project>undertow</project>
24+
<project-version>2.0</project-version>
25+
<project-type>properties</project-type>
26+
27+
</config>

0 commit comments

Comments
 (0)