[
https://issues.apache.org/jira/browse/GERONIMO-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734920#action_12734920
]
David Jencks commented on GERONIMO-4763:
----------------------------------------
What are the options that will work here? I can think of a few but I don't
know which will work:
-- everything is in ascii unicode escape sequences all the time (is this what
we have now?)
-- everything is in utf-8 all the time (svn, checked out source code, any
compiled property files
-- utf-8 in svn and checkout and unicode escape after compilation
The last two require that svn handle checkout and checkin of utf-8 files
without problem on various line-ending systems. Has anyone verified that this
would work? Also we might investigate what these property files would look
like in common IDES such as idea, eclipse, emacs, vim.
Assuming utf-8 in svn and IDEs works ok, why would we change to ascii during
compilation?
> i18n properties files should be converted to ascii at build time.
> ------------------------------------------------------------------
>
> Key: GERONIMO-4763
> URL: https://issues.apache.org/jira/browse/GERONIMO-4763
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: usability
> Affects Versions: 2.1.5, 2.2
> Reporter: Shawn Jiang
> Assignee: Shawn Jiang
> Priority: Minor
>
> Current i18n properties files are stored in source code repo after they are
> converted to ascii from native offline. It's very hard to contribute new
> translations.
> We should keep native characters in source code while convert them to ascii
> at build time. maven plugin native2ascii-maven-plugin could be used here:
> {code}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>native2ascii-maven-plugin</artifactId>
> <version>1.0-alpha-1</version>
> <configuration>
> <dest>target/classes</dest>
> <src>src/main/resources</src>
> </configuration>
> <executions>
> <execution>
> <id>native2ascii-utf8</id>
> <goals>
> <goal>native2ascii</goal>
> </goals>
> <configuration>
> <encoding>UTF8</encoding>
> <includes>
> ConsoleResources_jp.properties,
> ConsoleResources_zh*.properties
> </includes>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.