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

I18n / L10n #68

Open
1 of 3 tasks
bakercp opened this issue Jul 16, 2014 · 13 comments
Open
1 of 3 tasks

I18n / L10n #68

bakercp opened this issue Jul 16, 2014 · 13 comments
Assignees
Milestone

Comments

@bakercp
Copy link
Member

bakercp commented Jul 16, 2014

Internationalization

  • Class names must support UTF8.
  • File contents must be saved and loaded with UTF8 encoding.

Localization

@bakercp
Copy link
Member Author

bakercp commented Jul 16, 2014

Some of these might already be finished, but we need to test it.

@brannondorsey
Copy link
Member

Basic localization should be working. To add a new language translation copy the localization/lang-en.json file, translate, and save as localization/lang-LANGUAGE_CODE.json (i.e. for french, localization/lang-fr.json).

For now, only basic keywords + buttons in the GUI are being translated because the project is still subject to much change.

@bakercp
Copy link
Member Author

bakercp commented Jul 21, 2014

Cooool. How do we choose a language?

@brannondorsey
Copy link
Member

With Firefox you simply set your preferred language. With Chrome I have found that setting a preferred language is often overwritten by the version of Chrome that you have ("en-US" by default if you downloaded it in the states). With Safari, best that I can tell, you must download a language specific version of the browser.

@brannondorsey
Copy link
Member

opening the javascript console and running navigator.language will tell you the language your browser is set to.

@brannondorsey
Copy link
Member

I am planning on adding Spanish and Japanese support soon :)

@bakercp
Copy link
Member Author

bakercp commented Jul 21, 2014

Adding German now :)

@bakercp
Copy link
Member Author

bakercp commented Jul 21, 2014

Just tested it w/ German and it works well! Of course, that doesn't mean my German is perfect ...

Anyway, we should give folks the change to override the system / browser settings somewhere in the editor. Pulling it from the browser settings is fine for the moment, but I can imagine that some users would prefer to be able to set it manually.

@brannondorsey
Copy link
Member

That kind of override is easily supported with the jQuery plug-in that I am using. Lets roll that out when we implement editor/project settings.

@bakercp
Copy link
Member Author

bakercp commented Jul 22, 2014

Sounds great.

@brannondorsey
Copy link
Member

Basic German, Spanish, and Japanese is currently supported as of v0.2.2.

@brannondorsey
Copy link
Member

With regards to internationalization, my knowledge of UTF-8 compatibility is somewhat limited. What is the best way to validate if strings are UTF-8 Compatible in browser + oF? Furthermore, my front-end validation system will probably need to be updated for I18N/L10n, as it currently blocks certain key code presses in input fields, however these key codes will not be the same in other languages.

@bakercp bakercp modified the milestones: v0.4.0, v0.3.0 Jul 28, 2014
@bakercp
Copy link
Member Author

bakercp commented Jul 28, 2014

I'm moving this to v0.4.0 so we can figure out exactly what we want here and how to implement it.

@bakercp bakercp modified the milestones: v0.4.0, v0.5.0 Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants