[
https://issues.apache.org/jira/browse/SHINDIG-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Chabot resolved SHINDIG-353.
----------------------------------
Resolution: Fixed
Assignee: Chris Chabot
I've added user pref substitutions directly into the gadget spec parser.
The big downside is that since translations aren't done 'on the fly' you can't
switch languages half way (which doesn't and shouldn't happen in practice, but
-could have- worked), however it saves a lot of expensive code of looping
through the complex data structures in the gadget, and it also means that
anything that was using the user prefs directly (and a few things are) also get
the correct displayed values. Since i can't see any real life benefits to the
complex approach, and this is a lot simpler and faster, i picked the simpler
solution.
Alternative is possible but would require a more pervasive approach, and i
think this simpler solution already does exactly what is expected by the spec.
> Allow the expansion of the thumbnail and screenshot module prefs field for
> internationalization.
> -------------------------------------------------------------------------------------------------
>
> Key: SHINDIG-353
> URL: https://issues.apache.org/jira/browse/SHINDIG-353
> Project: Shindig
> Issue Type: New Feature
> Components: Gadget Rendering Server (PHP)
> Reporter: Chris Chabot
> Assignee: Chris Chabot
>
> Perform substitutions of each hangman expansion on all fields which get
> displayed to users. This currently includes, but is not limited to, the
> following fields:
> a. All Module.ModulePrefs attributes, [EMAIL PROTECTED], Module.Content,
> [EMAIL PROTECTED], [EMAIL PROTECTED], and [EMAIL PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.