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

Add initial languages, ready for dark-launch #2388

Merged
merged 7 commits into from
Feb 3, 2014

Conversation

cpennington
Copy link
Contributor

Demo:

  1. localhost:8080
  2. Set language in browser to pt-br (Brazilian Portuguese)
  3. Refresh localhost:8080 (observe no translation)
  4. Visit localhost:8080?preview-lang=pt-br (see Portuguese)
  5. Visit localhost:8080?clear-lang (see English)
  6. Visit localhost:8080/admin, add new Dark Lang Config, add pt-br to the list
  7. Refresh localhost:8080 (see Portuguese)
  8. Visit localhost:8080?preview-lang=ko-kr, navigate to a course (See Course Info is un-reviewed, and thus in English)
  9. Append ?preview-lang=fr to same url (no french translations)

@cpennington
Copy link
Contributor Author

@nedbat @sarina: Some changes to be reviewed, plus all of our initial languages, and a demo playbook.

@nedbat
Copy link
Contributor

nedbat commented Jan 31, 2014

Thanks.

This checks in conf/locale/eo/LC_MESSAGES/djangojs.prob and conf/local/messages.mo, which it shouldn't. We should .gitignore both of them. IN another PR we can fix the reason the .prob was left around.

('pt_BR', u'Português do Brasil'),
('tr_TR', u'Türkçe'),
('vi', u'Tiếng Việt'),
('zh_TW', u'國語'),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we import this from lms/envs/common.py, and keep the number of lists down to 2?

@nedbat
Copy link
Contributor

nedbat commented Jan 31, 2014

👍

- fr
- ko_KR
- vi
- zh_TW
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth commenting on each of these lines as to what these languages are, for quicker readability for those unfamiliar with language codes? eg

- pt_BR # Portuguese (Brazilian)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. I'll also include the actual language code (pt-br) that you'd use for releasing the language.

@sarina
Copy link
Contributor

sarina commented Jan 31, 2014

👍

('es-us', u'Español (Estados Unidos)'), # Spanish (United States)
('et-ee', u'Eesti (Eesti)'), # Estonian (Estonia)
('fa', u'فارسی'), # Persian
('fa-ir', u'فارسی (ایران)'), # Persian (Iran)
Copy link
Contributor

Choose a reason for hiding this comment

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

is the two open parens correct here? Or should it be u'فارسی) ایران)' or u'(فارسی (ایران' ? I'm not sure as I don't know Persian

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nedbat
Copy link
Contributor

nedbat commented Feb 3, 2014

👍

('ko-kr', u'한국어(대한민국)'), # Korean (Korea)
('lt-lt', u'Lietuvių (Lietuva)'), # Lithuanian (Lithuania)
('ml', u'മലയാളം'), # Malayalam
('nb', u'norsk bokmål'), # Norwegian Bokmål
Copy link
Contributor

Choose a reason for hiding this comment

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

Wikipedia capitalizes Norsk

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. I have a change, but don't want to reset the tests.

@sarina
Copy link
Contributor

sarina commented Feb 3, 2014

I have no concerns 👍

@nedbat
Copy link
Contributor

nedbat commented Feb 3, 2014

Merge it already! 👍

cpennington added a commit that referenced this pull request Feb 3, 2014
Add initial languages, ready for dark-launch
@cpennington cpennington merged commit a3146cd into openedx:master Feb 3, 2014
@cpennington cpennington deleted the initial-languages branch February 3, 2014 19:52
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.

3 participants