|
Add translation support via XTB. Makes soy use goog.getMsg and converts the
extract command to output an XTB file based on extracted JsMessages. Allows
--language to be set at compile time, and also to be passed in during serve
time, including via referer.
BTW, I do plan on adding XLIFF support here, but those changes will be
mostly incremental on top of this base. Basically I need to either use
XliffGenerator or write my own in the extract thing, and create an
XliffMessageBundle that implements the right stuff. I think it's
achievable.
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+246 lines, -48 lines) |
Patch |
|
M |
src/org/plovr/Config.java
|
View
|
1
|
11 chunks |
+55 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/org/plovr/ConfigOption.java
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/org/plovr/SoyFile.java
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/org/plovr/cli/BuildCommand.java
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/org/plovr/cli/BuildCommandOptions.java
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/org/plovr/cli/ExtractCommand.java
|
View
|
1
|
2 chunks |
+86 lines, -45 lines |
0 comments
|
Download
|
|
A |
testdata/translation/config.js
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
testdata/translation/fr.xtb
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
testdata/translation/main.js
|
View
|
1
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
testdata/translation/templates.soy
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
A |
testdata/translation/test-simple.html
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6
|