pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-940) Localisation Using a Non Class Related File
Date Wed, 16 Apr 2014 07:41:16 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970547#comment-13970547

Sandro Martini commented on PIVOT-940:

Mark, from tests\src\org\apache\pivot\tests\ (under branches\2.0.x and even from trunk), take
a look at a sample application called JavascriptConsoleTest.java (this is main clas of the
application), and all related files (javascript_console_test.js, .bxml, .json) are in the
same folder, it's an example of how to exchange data between Java and JavaScript (inside the
JVM) and using json and bxml files, maybe you get some hint form there.
On your question, could you post a minimal sample in attach here ? Thanks.

> Localisation Using a Non Class Related File
> -------------------------------------------
>                 Key: PIVOT-940
>                 URL: https://issues.apache.org/jira/browse/PIVOT-940
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-json, core-serialization, wtk
>    Affects Versions: 2.0.3
>         Environment: ALL
>            Reporter: Mark Chambers
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: Localization
>             Fix For: 2.1
> Currently it seems that the resources in Pivot are done that same way as the JDK, so
.json files are associated with the classes. 
> Since anybody working in an International software industries has to deal with the problem
of continualy having to translate applications languages, it seems strange to have to wrap
up the languages with the Class Files.
> Ideally an external file, should be able to be specified, like the bxml file... That
is sitting somewhere with the other resource files, configuration files etc...
> No reason to link it too the class, since 95% of class are not even GUI components, and
the way Apache Pivot does it is has a single GUI class, so why bother linking it to the Class...And
it is relevant to the bxml files not the classes...
> Also means that when you wrap it up in a Jar for deployment the language files can be
sitting outside, so distributors and resellers, or open source community members etc. can
make the application support their language themselves, just by copying,renaming and modifying
the Language file...means we can obfuscate jars easier etc...

This message was sent by Atlassian JIRA

View raw message