Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

i18n fixes #2039

Merged
merged 8 commits into from
Jul 14, 2012
Merged

i18n fixes #2039

merged 8 commits into from
Jul 14, 2012

Conversation

lloyd
Copy link
Contributor

@lloyd lloyd commented Jul 13, 2012

This change refines the way we debug our i18n implementation and does the following:

  1. resolves a regression in gettext() - 5 star issue dev: if string is not localized, no string is displayed. #2011
  2. makes it so that for local development OR awsbox OR dev we've you can always switch to the debug locale (it-CH) and it always works - issue enable debug 'locale' in our dev env #1970 and issue it-ch/db-LB not working on ephemeral deployments when defined in aws.json #2006
  3. translates strings with embedded HTML properly: issue debug local doesn't properly translate our strings #1963

@@ -61,7 +61,7 @@ app.use(i18n.abide({
supported_languages: config.get('supported_languages'),
default_lang: config.get('default_lang'),
debug_lang: config.get('debug_lang'),
locale_directory: config.get('locale_directory'),
translation_directory: config.get('translation_directory'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nitpick:
locale was chosen to maintain consistency with the Playdoh framework. The benefit is that a Mozilla community member who has been hacking on webdev projects can more easily jump into the Identity stack.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no qualms naming the config param locale. I only made this change because we no longer use the locale/ directory in our software (where the .pos and .mos live).

What's your preference?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just a knit with a reason. Roll whichever way.

@ozten
Copy link
Contributor

ozten commented Jul 13, 2012

unit tests failing according to Travis. (travis' fault? I didn't run tests locally)
http://travis-ci.org/#!/mozilla/browserid/builds/1859748

r+ once tests pass.

@lloyd
Copy link
Contributor Author

lloyd commented Jul 14, 2012

I'll merge pending a happy travis!

@lloyd
Copy link
Contributor Author

lloyd commented Jul 14, 2012

lloyd added a commit that referenced this pull request Jul 14, 2012
@lloyd lloyd merged commit 3113f51 into dev Jul 14, 2012
lloyd added a commit that referenced this pull request Jul 14, 2012
lloyd added a commit that referenced this pull request Jul 16, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants