[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-20 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328928#comment-14328928
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit db5061034803dc084423ed452583c05a2c8374e3 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=db50610 ]

ISIS-903: use Wicket's Request rather than Session to obtain the Locale

... so the translation used changes instantaneously based on the 
Accept-Language header


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.8.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-20 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328927#comment-14328927
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit a4498ac8b76d216bf892587696211acd920b5923 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=a4498ac ]

ISIS-903: changing file name suffix for .po files

rather than _en-GB.po it should be -en_GB.po (etc)


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.8.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14327183#comment-14327183
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 3a7134f5fb9381ffb8c94d7cba02f8b4561fdb12 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=3a7134f ]

ISIS-903: deleting old I18n facet decorator stuff

(just retaining the *Installer so does not break any existing isis.properties 
files that reference it)


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.8.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread Dan Haywood (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14326230#comment-14326230
 ] 

Dan Haywood commented on ISIS-903:
--

now documented at http://isis.apache.org/config/i18n-support.html

> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.8.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14326187#comment-14326187
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 7e7071422658b7b0e0110f177edff446f8d64094 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=7e70714 ]

ISIS-903: remove caching from the *FacetTranslated

... otherwise never re-renders correctly for concurrent users with different 
locales.

In addition:
- fixed tiny error in logging.properties (for simpleapp integtest)
- additional translations_en-GB.po for simpleapp
- javadoc fixes.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325944#comment-14325944
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit ab90620703520476d7e69cb020216569d815c32f in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=ab90620 ]

ISIS-903: updating the translations.po file for simpleapp.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325945#comment-14325945
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 3b1d857d5a322418710cd8eb4b04ef0dd09987f8 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=3b1d857 ]

Merge branch 'ISIS-903'


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325943#comment-14325943
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit a2aaf098b9b9b0d08d9030594b8eeffe9344f8c0 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=a2aaf09 ]

ISIS-903: allow the translations cache to be cleared (in prototype mode).


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325941#comment-14325941
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit d944430940776aa0c0fd54a6b8460ab01786ed08 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=d944430 ]

ISIS-903: fixing backward-compatibility breakage of 
FixtureScript#ExecutionContext API.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325942#comment-14325942
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 107cf3dfe909521213e0d1ce2cc227a8e7f8c040 in isis's branch 
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=107cf3d ]

ISIS-903: tiny amount of tidy-up.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325875#comment-14325875
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit fca3dd70995a8199a10b3dcdf6bc6c907829cd3c in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=fca3dd7 ]

ISIS-903: allow the translations cache to be cleared (in prototype mode).


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325846#comment-14325846
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 1210cf221da5e1eba8f057366db4638a7a1d3169 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1210cf2 ]

ISIS-903: tiny amount of tidy-up.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325811#comment-14325811
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 3451393656443b294849551340aa2403a3107e8f in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=3451393 ]

ISIS-903: fixing backward-compatibility breakage of 
FixtureScript#ExecutionContext API.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325796#comment-14325796
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit ea2a19a5f1c20f74ac2e78a1b238e28f660bb869 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=ea2a19a ]

ISIS-903: reducing logging noise / improving flow control if translations 
accessed from RO viewer (when locale not available).


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325755#comment-14325755
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 189395ea8fe03c95801a52b3c2b67fc511638bb6 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=189395e ]

ISIS-903: allow translations to be read from externalized config location.

In addition, pick up value of deploymentType by reading 
IsisContext.getDeploymentType() rather than the hacky way of reading config; 
this should work in all situations (org.apache.isis.WebServer, integtetss, 
tomcat etc).  This necessitates moving the TranslatioServiePo implementation 
(and supporting classes) from core/metamodel to core/runtime.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325672#comment-14325672
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 924feda2bba615101ee0c112cd6d084fc558d25f in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=924feda ]

ISIS-903: TranslationServicePoMenu now emits event for its action...

... so that this can be suppressed in the UI by a subscriber if required.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325671#comment-14325671
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 21390d260fff7d88b240ef31d5c0b5ab4a32fbf5 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=21390d2 ]

ISIS-903: simplifying design...

... get rid of the ServicesInstallerFallback hack, now register 
TranslationServicePo as a regular @DomainService.  Also remove the 
LocaleProviderDefault.  Use the absence of a TranslationResolver and/or 
LocaleProviderDefault as a hint to put the TranslationService into write mode


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325568#comment-14325568
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 1b9f7e8dfeb5b3e87ea2288eec8708c3fd013859 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1b9f7e8 ]

ISIS-903: renaming UrlResolver to TranslationsResolver


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325544#comment-14325544
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 980586f51642d29b610f18da72168c0d9e99f24b in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=980586f ]

ISIS-903: fixing unit tests


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325293#comment-14325293
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 1a37d66ec8e219341cb180b0b4335ecac3fd5ee4 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1a37d66 ]

ISIS-903: updating ImperativeFacets for validation/disabling and also the title 
method so that they can return TranslatableString as well as regular String.

Also:
- added new SimpleObject#updateName action with validation and a default; added 
SimpleObject#title()
- reworked the simpleapp's integ tests into "Dublin" style, added new integ 
tests to check that the translation.pot file is correctly written to with these.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325070#comment-14325070
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 98fad464e366678bb19f77521e2b616c32f79569 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=98fad46 ]

ISIS-903: can now write to .pot and read from .po file


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324398#comment-14324398
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 8bd12522c5f0436dd54be27236c00b323114ce51 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=8bd1252 ]

ISIS-903: integ tests passing again;

exposing the mode of the TranslationService so that can ensure that the 
translations are eagerly requested in prototype/test mode (and while the 
metamodel is being built), but lazily otherwise.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324272#comment-14324272
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 613eb1920edb2260dbd0519c041d6838d68084da in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=613eb19 ]

ISIS-903: refactoring TranslationService so can write out .pot file...

... with msgid_plural if required.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324196#comment-14324196
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit e315c504b770939018884550e9362145867cb14e in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=e315c50 ]

ISIS-903: working towards parsing plural form (not there yet)


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324198#comment-14324198
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 4b6abedcf74a0f0335c51d85c7dd873966ad7d9e in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=4b6abed ]

ISIS-903: fixing integ tests for simpleapp with PoReader


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324194#comment-14324194
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit f8ab75b1b695d6db064b086c1c51d51418d396bd in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f8ab75b ]

ISIS-903: removing duplicate in .gitignore for simpleapp


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324197#comment-14324197
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 60b9a323bb896ad64e7049ec376b807280dff34e in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=60b9a32 ]

ISIS-903: plural unit tests for PoReader now passing


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324195#comment-14324195
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 02c5363909e2e6c7d6fab8d9d64a27cf512fe7cd in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=02c5363 ]

ISIS-903: adding PoReader impl along with new XxxTranslated facets

Also implementations of LocaleProvider and new UrlResolver service from Wicket.

However, not there yet; the .po file read/write needs to handle plural form, 
and the interface for TranslationService needs to be extended similarly


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324105#comment-14324105
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 3e8e6b224e679099989b12cc35f7101e4abc9415 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=3e8e6b2 ]

ISIS-903: reinstating RunSpecs for simpleapp (was accidentally commented out).


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324107#comment-14324107
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 6172754d281a3b1176841c55ca0fe74bed6dbcac in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=6172754 ]

ISIS-903: adding PoReader impl along with new XxxTranslated facets

Also implementations of LocaleProvider and new UrlResolver service from Wicket.

However, not there yet; the .po file read/write needs to handle plural form, 
and the interface for TranslationService needs to be extended similarly


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324106#comment-14324106
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 446831e4d6cd1a972d2beb001673a87f04ee8969 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=446831e ]

ISIS-903: removing duplicate in .gitignore for simpleapp


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324108#comment-14324108
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 83b31cf19e72b387862aca5abd0724c6b9326caf in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=83b31cf ]

ISIS-903: working towards parsing plural form (not there yet)


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324104#comment-14324104
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 69b4f416769c82c150f4d46947fca0603e563bbb in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=69b4f41 ]

ISIS-903: integtests now calls shutdown so PoWriter can dump .pot file to log 
on shutdown; skeleton impl and new unit tests (marked @Ignore) for PoReader; 
updates to logging.properties for the simpleapp.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321424#comment-14321424
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 6a516c2d0feec254454c7d8bf69ccb2b901354f2 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=6a516c2 ]

ISIS-903: TranslationService, LocaleProvider,  TrString class,

also:
- deprecated a bunch of old *Event files in the applib, for wrapper factory 
only.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321426#comment-14321426
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit f23f4e7bb8629c4ab51373679ef96419ff16cb3f in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f23f4e7 ]

ISIS-903: refactoring in the direction of also reading .po files


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321428#comment-14321428
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 68899a2944155c77710da7ef5b103f37079ccf10 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=68899a2 ]

ISIS-903: integtests now calls shutdown so PoWriter can dump .pot file to log 
on shutdown; skeleton impl and new unit tests (marked @Ignore) for PoReader; 
updates to logging.properties for the simpleapp.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321425#comment-14321425
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 226ef6246ea6c827f7e1964537aca8864c8d7152 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=226ef62 ]

ISIS-903: refactoring in the direction of also reading .po files


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321427#comment-14321427
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 2b5f47c64d26240b0c05e65b6e628ca07ed7a3d6 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=2b5f47c ]

ISIS-903: fixing bug introduced on minor improvement to CssClassFa facet


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320569#comment-14320569
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 4d3eb57893048df60e41a4450a026ca8d2e15fe4 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=4d3eb57 ]

ISIS-903: refactoring in the direction of also reading .po files


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320568#comment-14320568
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 36f1cec5fe7dbb554c16924520cac5e6255119bf in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=36f1cec ]

ISIS-903: refactoring in the direction of also reading .po files


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320567#comment-14320567
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 72ee121d215a5e955deee763bbf97fb9f3db5916 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=72ee121 ]

ISIS-903: TranslationService, LocaleProvider,  TrString class,

also:
- deprecated a bunch of old *Event files in the applib, for wrapper factory 
only.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320382#comment-14320382
 ] 

ASF subversion and git services commented on ISIS-903:
--

Commit 29f41fa129a6c33a48b63161114ebd7bb0b994c8 in isis's branch 
refs/heads/ISIS-903 from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=29f41fa ]

ISIS-903: TranslationService, LocaleProvider,  TrString class,

also:
- deprecated a bunch of old *Event files in the applib, for wrapper factory 
only.


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-02 Thread Jeroen van der Wal (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301271#comment-14301271
 ] 

Jeroen van der Wal commented on ISIS-903:
-

The argument that Java developers are more familiar with resource bundles is 
true. However, I have not encountered a single developer yet who liked working 
with it. Especially the fact that they have to maintain two code artefacts in a 
non-typesafe manner is laborious and error prone.

My key principle is that a development team should *never* be bothered with the 
translation of an application. They develop in the language that is ubiquitous 
across the team, including the product owners. Translation is usually done 
separately by translators who don't even have to be on the team.

A usual workflow could be:
1. Development team creates application in their "own" language. Additionally, 
strings in code that end up in the UI are wrapped.
2. A maven command is used to extract all visibile text. From the metamodel it 
will take it's name (eg. "New Todo"), the @Named override when applicable and 
the @DescribedAs. From the source code it will parse the wrapped strings. The 
result is a single .pot file for the translatable items.
3. The .pot file is translated into a localised .po file. This can be done 
trough various tools, including online. The .po files are placed in the WEBINF 
folder so they can be maintained independent from the application release cycle.

Another big advantage I see in this approach is the fact that also includes 
Isis add-on modules will be included for translation without additional work. 
Except for wrapping strings in code of course.

Introducing label identifiers would devaluate the power of developing in Isis 
and is merely cutting corners. 

>From a technical point both approaches are the same. The additional component 
>in the GNU gettext approach is the the maven task to extract the metamodel 
>items. Here we could extend Dan's work on the metamodel exporter.

> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2015-02-01 Thread Martin Grigorov (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300202#comment-14300202
 ] 

Martin Grigorov commented on ISIS-903:
--

There is a discussion in private between Oscar Bou, Dan Haywod, Jeroen van der 
Wal and Martin Grigorov.

Jeroen suggested that Isis may use Gettext for i18n:
[1] http://en.wikipedia.org/wiki/Gettext
[2] http://www.gnu.org/software/gettext/manual/gettext.html#Overview
[3] http://blogs.igalia.com/dpino/2009/08/21/i18n-with-gnu-gettext-utilities/
[4] 
http://blogs.igalia.com/dpino/2009/08/30/setting-up-gettext-commons-for-i18n-java-files/
[5] http://translatehouse.org/products.html

At the moment Oscar and me are in favour of Java resource bundles because Java 
developers are more familiar with it.

Additionally Jeroen said that "One of the key principles of Naked object is 
that the domain is reflected in the user interface". I.e. the domain service 
class name (or action method name) should be used for UI labels.
This is OK for application supporting a single locale.
But sometimes it is needed to use a character which is not allowed to be used 
as Java identifier. In this case 
{code}
@DomainServiceLayout(named = "...")
{code}
can be used.
But again this is not enough for multilingual application.

One solution is to add yet another optional attribute to 
DomainServiceLayout/ActionLayout/ParameterLayout that should be used as a key 
for i18n. For example:
{code}
@DomainServiceLayout(i18n = "some.key")
{code}

Isis would do:
- if there is a key check whether there is a value for the current client 
locale for this key
- if there is on value or if there is no "i18n" key then use "named" attribute
- if there is no "named" attribute then fallback to the class/method name

This would work for "static" stuff but won't work for special methods like 
"disabled()" and "hide()". For those we can provide a service, e.g.:
{code}
public String disabledSomeAction(...) { 
  if (condition) { return i18nService.localize("some.key")}
  return null;
} 
{code}


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.9.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ISIS-903) Improve i18n support (in NamedFacetDecorator etc) to honour client-side locale.

2014-09-29 Thread Dan Haywood (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152834#comment-14152834
 ] 

Dan Haywood commented on ISIS-903:
--

some notes on how to go about doing this ticket:
~

the first thing to do is to create a fork of our github repo [1], and then make 
sure you can build Isis locally from this [2].

Then, set up the todo app (in examples/application/todoapp) to run from your 
IDE... it's a useful playground.

In the todoapp's WEB-INF/isis.properties you should see that there is the line:

isis.reflector.facet-decorators=org.apache.isis.core.metamodel.facetdecorator.i18n.resourcebundle.I18nDecoratorUsingResourceBundleInstaller

Set a breakpoint in I18nDecoratorUsingResourceBundleInstaller and then watch 
what it does: basically it's a factory that returns a NamedFacet (or 
DescribedAsFacet or HelpFacet) that decorates/wraps the original facet.  Facets 
are the bits of metadata that we associate with the classes and class members.

What you then could do is to copy I18nDecoratorUsingResourceBundleInstaller and 
related classes (eg NamedFacetWrapI18n), and then configure your copy in 
isis.properties.

The main bit of the puzzle is to get hold of the locale.  This will need to be 
in your (copy of) NamedFacetWrapI18n, so that it gets hold of the locale of the 
current user (eg using AuthenticatedWebSessionForIsis.get().getLocale() or 
similar) and uses that to lookup the correct resource bundle.

[1] https://github.com/apache/isis
[2] http://isis.apache.org/contributors/building-isis.html


> Improve i18n support (in NamedFacetDecorator etc) to honour client-side 
> locale.
> ---
>
> Key: ISIS-903
> URL: https://issues.apache.org/jira/browse/ISIS-903
> Project: Isis
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: core-1.6.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.8.0
>
>
> from the mailing list: http://markmail.org/message/wifsrte2p2q6tces
> ok, here's the scoop.
> It *is* possible to add i18n for Isis apps, but the implementation we have 
> reflects the locale of the server, rather than the client. 
> If client-side i18n is what you require then it ought to be possible to 
> implement a different implementation of I18nFacetDecoratorInstaller.  You can 
> get hold of the user's locale using:
> AuthenticatedWebSessionForIsis.get().getLocale()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)