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
component need to get translated, it would be quite easy to do so.

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

Satyen Desai

YUI Developer

Posted: 06/23/11
  • milestone changed to 3.4.0
  • status changed from new to accepted

I should just add Intl usage to the Spinner example, as the canonical "Custom Widget" example.

Satyen Desai

YUI Developer

Posted: 06/23/11
  • estimated changed from 0 to 0.5
  • location changed from Website to Example
  • sprint changed to sprint 3

Jenny Donnelly

YUI Developer

Posted: 06/27/11
  • sprint changed from sprint 3

Moving out of sprint 3, but will remain in backlog for buffer time, since this is only a doc bug.

Satyen Desai

YUI Developer

Posted: 07/27/11
  • milestone changed from 3.4.0 to 3.5.0

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

Satyen Desai

YUI Developer

Posted: 11/8/11
  • remaining changed from 0 to 0.5
  • sprint changed to sprint 3
  • summary changed from Merging Y.Intl with Widget's strings attribute to Example: Show how to use Y.Intl with Widget's strings attribute

Satyen Desai

YUI Developer

Posted: 01/31/12
  • priority changed from P3 (normal) to P4 (low)

Satyen Desai

YUI Developer

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.

Satyen Desai

YUI Developer

Posted: 02/29/12
  • completed changed from 0 to 0.5
  • remaining changed from 0.5 to 0
  • status changed from accepted to checkedin

Satyen Desai

YUI Developer

Posted: 03/1/12
  • resolution changed to fixed

Cross-referenced Intl and Widget Strings documentation. Fixes #2530447.
View Commit: 31c505368ffbf78b2d9a8b7dba5d792023f3d7e2

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • status changed from checkedin to closed

checkedin -> closed