Skip to content

Commit

Permalink
Import of the initial version of JSTF.
Browse files Browse the repository at this point in the history
  • Loading branch information
slaout committed Jan 4, 2014
1 parent 8ea50fd commit fddb982
Show file tree
Hide file tree
Showing 38 changed files with 31,271 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.settings/
target/
.classpath
.project
544 changes: 542 additions & 2 deletions README.md

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions ROADMAP.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

- "packageName" must be part of TranslationGeneratorOptions and defaults to "org.jstf.messages"
- An option for multilanguage Android compatibility (strings-en.xml vs. res/values-en/strings.xml) with Android Localization Files Editor + is it "res/values-en_US/" or "res/values-en-US/"?
- Option debugUntranslatedKeys to generate a Debug class with an array with message keys, in order for I18n to return "!theMissingMessageKey!" for an untranslated message. Is this really useful since missing messages are pointed at build time?!
- Maven plugin: inclue the options fields
- Document the Maven plugin
- Finish the README.txt
- Message format with the right argument types (when using Formatter)
- Be compatible or offer an option to be or not compatible with with http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling
- Cleanups:
- Apply Apache Licence in StringUtils: http://www.apache.org/dev/apply-license.html
- Remove System.*.print*
- Transform tests to JUnit
- Generate Javadoc with default translation (with option to disable it if compiled in debug mode for production?)
- Need to create an Eclipse Plugin for m2e:
http://wiki.eclipse.org/M2E_compatible_maven_plugins
https://github.com/tesla/m2eclipse-buildhelper/blob/master/org.sonatype.m2e.buildhelper/lifecycle-mapping-metadata.xml
- Create an Ant task:
http://ant.apache.org/manual/develop.html
http://ant.apache.org/manual/tutorial-writing-tasks.html
- Add new Maven modules:
jstf-example
jstf-stresstest
jstf-regressiontests
- TESTS:
- What is the output if no translation file is provided in the res folder
- Name a key "i18nAccess" or "get": must not conflict with generated methods but return an error with constants
- Name a key with ".", or "-" inside: should be capitalised right... "_" should stay (so that the key name can be searched/replaced easily in both XML and Java)
- Name keys with conflicting names, eg. "the.key" and "the-key"

- Import the project on GitHub or BitBucket
- Create a homepage
28 changes: 28 additions & 0 deletions jstf-generator/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<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/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.jstf</groupId>
<artifactId>jstf-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>jstf-generator</artifactId>
<packaging>jar</packaging>

<name>jstf-generator</name>
<url>http://www.jstf.org/</url>

<dependencies>
<dependency>
<groupId>org.jstf</groupId>
<artifactId>jstf-lib</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit fddb982

Please sign in to comment.