Ticket #2530447 (closed enhancement)
Reporter Satyam |
Opened: 06/18/11 Last modified: 05/10/12 Status: closed Type: enhancement Resolution: fixed |
Owner Satyen Desai |
Target Release: 3.5.0 Priority: P4 (low) |
|---|---|---|---|
| Summary: | Example: Show how to use Y.Intl with Widget's strings attribute | ||
| Description: | Perhaps this is more like a documentation issue or a 'good practices' matter but it would be great if the documentation for Intl and for Widget somehow related to each other. For example, it would make sense to have in the landing page for Intl, somewhere near http://developer.yahoo.com/yui/3/intl/#obtaining, the following: this.set('strings', Y.Intl.get('greetings')) This would allow a module to have its strings attribute set to some default language and have it dynamically changed to whatever other language. Mostly, it would allow a developer to add internationalization easily as long as all strings visible by the user are kept in the strings attribute, as the spinner example shows and, should the |
||
| Type: | enhancement | Observed in Version: | 3.3.0 PR3 |
| Component: | Intl | Severity: | S3 (normal) |
| Assigned To: | Satyen Desai | Target Release: | 3.5.0 |
| Location: | Example | Priority: | P4 (low) |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 06/23/11
|
|
Posted: 06/23/11
|
|
Posted: 06/27/11
Moving out of sprint 3, but will remain in backlog for buffer time, since this is only a doc bug. |
|
Posted: 07/27/11
These are backlog bugs which didn't make it into any of the 3.4.0 sprints. Marking as 3.5.0 backlog for evaluation going into 3.5.0 sprint 1 |
|
Posted: 11/8/11
|
|
Posted: 01/31/12
|
|
Posted: 02/29/12
Was originally going to update the widget-extend spinner example to use an external string bundle, but that would mean I need to get into a discussion about modules and building and packaging, which I want to avoid for that particular example because it's the core example which introduces Widget's programmatic concepts. I'm planning to add a paragraph to the discussion about strings on the Widget landing page and the Spinner example to point to the example which talks about packaging string bundles (http://yuilibrary.com/yui/docs/intl/intl-basic.html). I'll include a literal Y.Intl.get("spinner") or Y.Intl.get("mywidget") in both those paragraphs. |
|
Posted: 02/29/12
|
|
Posted: 03/1/12
Cross-referenced Intl and Widget Strings documentation. Fixes #2530447. |
|
Posted: 05/10/12
checkedin -> closed |
I should just add Intl usage to the Spinner example, as the canonical "Custom Widget" example.