Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How should we define "locale" attribute ?

Hi, Vanilla project members,

We are now translating Vanilla project to Japanese on Github.

https://github.com/yu-tang/Garden


On that way, we are wondering how should we define locale files.

We read this document,

http://vanillaforums.org/docs/localization

and on that page, there was the line,

"Please do not use a locale code like 'en-CA' for your locale. Different people may make a locale pack with the same locale as you and both must be able to co-exist on the addons site and even in an application. Translations go after the info array and have the following format:"

According to this, it sounds we should not use "lang-Country" attribute, like xml definition, to the locale setting, such as "ja-JP" or "en-US" or something like this.

So my questions is;

How should we define a Locale label,

'Locale' => what?


Please give us a key.

** We are talking about the modification to some files like this,

https://github.com/yu-tang/Garden/commit/d51fa7da58be391483dea54f64de833b29f62842#commitcomment-348455

then each pages make xml language definitions automatically, along with the locale files.
Tagged:

Comments

  • Options
    Here is locales table.
    LocaleKey'Version''Locale'$Definition['Locale']
    Arabic1.0en-CA
    Baseline1.0ben-CA
    British0.1en-GB
    bulgarian2.0.1bg-BG
    Dutch1.4nl
    de-DEde-DE
    French1.01fr-FR
    geneck1.0RUS
    german1.0.6de-DE
    italian1.0.0it_IT
    italiano1.0.2it_IT
    kurdish1.0.1ku-CKBku-CKB
    pt_PT1.0.1Portugal
    pt-BRpt-BR
    russian0.2ru-RU
    spanish1.21bes-ES
    skeleton2.0.1en-CAen-CA
    thai1.9th-TH
    Vietnamese1.1vi-VN
    xlop1.0UA
    zh_CN1.2.1zh_CN
    zh_TW1.2.1zh_TW
    @Todd
  • Options
    oliverraduneroliverraduner Contributing to Vanilla since 2010 Switzerland ✭✭
    Awesome overview @yu_tang ! This (as a dynamic updated view) should find it's way to a somewhat "localization"-dedicated place on vanillaforums.org :-)
Sign In or Register to comment.