My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.systemsplanet.plugin</groupId>
<artifactId>google-api-translate-java-maven-plugin-test-UTF8</artifactId>
<packaging>war</packaging>
<version>1.4-SNAPSHOT</version>
<name>Test plugin</name>
<build>

<plugins>
<plugin>
<groupId>com.systemsplanet.plugin</groupId>
<artifactId>google-api-translate-java-maven-plugin</artifactId>
<version>1.4-SNAPSHOT</version>
<inherited>false</inherited>
<configuration>

<!-- (optional) display debugging and diagnostics messages -->
<debug>false</debug>

<!-- (optional) display percentage and progress info -->
<showProgress>true</showProgress>

<!-- (required) directory path for source property file -->
<sourceTranslationPath>
${basedir}/src/main/resources/
</sourceTranslationPath>

<!-- (optional) defines explicit input file name -->
<sourceTranslationFile>
Language.properties
</sourceTranslationFile>

<!-- (required) file name pattern for generated destination property files -->
<languageFilePattern>
Language_{0}.properties
</languageFilePattern>

<!-- (required) directory path for generated destination property files -->
<destinationPath>
${project.build.directory}/classes/
</destinationPath>


<!-- (optional) a list of multiple source property files -->
<!-- If you prefer to explicitly define each discrete input file,
use this property to list each property file for translation.

NOTE: If this property is configured, the following properties
are ignored:

- sourceTranslationFile
- sourceTranslationPath
- languageFilePattern
- destinationPath
-->
<!--
<sourceTranslationFiles>
<param>${basedir}/src/main/resources/client/Countries.properties</param>
<param>${basedir}/src/main/resources/client/Resources.properties</param>
<param>${basedir}/src/main/resources/server/Countries.properties</param>
<param>${basedir}/src/main/resources/server/Resources.properties</param>
</sourceTranslationFiles>
-->

<!-- (optional)
SMART-SYNC; if this option is enabled, only
changes detected in the source property file
will be propagated to each destination file.
This option can significantly reduce the
processing time as it is only performing
translations for detected changed.

By default, the smart-sync logic can only
detect property values that were added or
removed from the source property file.
However, combined with the 'smartSyncChangeFile'
parameter, smart sync can also detect
changed source property value string. -->
<smartSync>
true
</smartSync>

<!-- (optional)
This option extends the smart-sync feature
to support the ability to determine changed
source property value strings and only
translate these changes. The 'smartSync'
option must be enabled to take advantage of
this feature. This parameter defines a file
name that will be created in the destination
path and used on subsequent translation
cycles to determine which source property
values have changed.

You can specify the history file located in a
sub-directory if desired

Example in the ".sync" sub-directory:
.sync${file.separator}smart-sync.history
-->
<smartSyncChangeFile>
smart-sync.history
</smartSyncChangeFile>

<!-- (required) source language -->
<sourceLanguage>
en
</sourceLanguage>

<!-- (required) destination languages to generate -->
<!-- ar,zh,zh-CN,zh-TW,nl,fr,de,el,it,ja,ko,pt,ru,es -->
<targetLanguages>
ar,de,el,es,fr,it,ko,ja,nl,pt,ru,tr,zh,zh-CN,zh-TW
</targetLanguages>

<!-- (optional) specifying explicit file encoding for generated property files -->
<destinationFileEncoding>
UTF-8
</destinationFileEncoding>

<!-- (optional) forcefully write BOM bytes for UTF8 -->
<destinationFileEncodingIncludeBOM>
true
</destinationFileEncodingIncludeBOM>

<!-- (optional) include a comment that will be included in the header on all generated files -->
<commentHeader>
<![CDATA[
##############################################################################

MY LOCALIZED RESOURCE FILES (auto-generated)
use "mvn google-api-translate-java:localize" to update
see http://code.google.com/p/google-api-translate-java-maven-plugin/

###############################################################################
]]>
</commentHeader>

<!-- (optional) specify property keys that you would like to exclude -->
<excludeProperties>
<param>test-exclude-1</param>
<param>test-exclude-2</param>
</excludeProperties>

<!-- (optional) specify property keys that you would like to include, but not translate-->
<passThruProperties>
<param>test-pass-thru-1</param>
<param>test-pass-thru-2</param>
</passThruProperties>

</configuration>
<executions>
<execution>
<id>generate-projects</id>
<goals>
<goal>localize</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>


</build>
<dependencies>
</dependencies>


<!-- MAVEN PLUGIN REPOSITORIES -->

<pluginRepositories>
<pluginRepository>
<id>ossrh</id>
<name>Sonatype OSS Repository</name>
<url>http://oss.sonatype.org/content/groups/public</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>

</project>

Change log

r40 by rob...@savage7.com on Mar 25, 2010   Diff
added public maven repository POM
configuration
Go to: 
Project members, sign in to write a code review

Older revisions

r35 by rob...@savage7.com on Mar 16, 2010   Diff
1.4-SNAPSHOT
Contributed by: Erik-Jan Blanksma
--------------------------------------
----------------------
- support multiple source files
...
r32 by rob...@savage7.com on Feb 6, 2010   Diff
REV 1.3-SNAPSHOT
-----------------------
 - added passThruProperties feature
r29 by rob...@savage7.com on Feb 6, 2010   Diff
REV 1.3-SNAPSHOT
-----------------------
 - added smartSync feature
 - added showProgress feature
All revisions of this file

File info

Size: 8638 bytes, 184 lines
Powered by Google Project Hosting