Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added localization support to name/description elements #108

Closed
wants to merge 2 commits into from

Conversation

jamesjhedley
Copy link
Member

+Hijacked data2mxl node module in order to fix a bug in their code.

Thanks to @sleroux for a large portion of this work.

Fixes blackberry#122


for (var prop in widgetConfig.name) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a forEach?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not actually an Array, so forEach is not available.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK then

@nukulb
Copy link

nukulb commented Nov 15, 2012

@tracyli - can you test this soon as this needs to be in for tomorrows build?

@tracyli
Copy link

tracyli commented Nov 15, 2012

tested in mac with package build http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager-twg_next-name-localization/4/:
1.'name' can change when localization language changes;
2.for 'description', I only checked the META-INF in the bar file: there're different bbr file generated for description with different language.

@jamesjhedley
Copy link
Member Author

@tracyli Can you please test @EricLeiLi change as part of this pull request. Shouldn't need to retest my stuff.

@EricLeiLi
Copy link

@tracyli checkout blackberry#210 for details of packageLocale. You can contact me directly if you prefer.

@EricLeiLi
Copy link

@tracyli I fixed the unit test. Let's wait for the next CI.

}
}

if (tagData instanceof Array) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Array.isArray

@jeffheifetz
Copy link

This requires a microsite issue

for (locale in localeElements) {
if (localeElements.hasOwnProperty(locale)) {
//Don't add default locale and don't add locale if it already exists
if (locale !== 'default' && locales.indexOf(locale) === -1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make 'default' a constant

+Hijacked data2mxl node module in order to fix a bug in their code.

Thanks to @sleroux for a large portion of this work.

Fixes blackberry#122
@jamesjhedley
Copy link
Member Author

Removed @EricLeiLi commit.
Implemented code review changes.
Rebased.

@jeffheifetz Can you r+ this before we get @tracyli to retest.

@jeffheifetz
Copy link

Jake lint fails for me

@tracyli
Copy link

tracyli commented Nov 16, 2012

tested in winxp and mac with http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager-twg_next-name-localization/12/: smoke test got passed;'name' can change when localization language changes;
for 'description', I only checked the META-INF in the bar file: there're different bbr file generated for description with different language.

@jeffheifetz
Copy link

r+

@nukulb nukulb closed this Nov 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants