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

First pass for adding North American indigenous locales #596

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/_docs/refs/mojito-locales.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ permalink: /docs/refs/mojito-locales/
| bn-IN | Bengali (India) |
| bs-BA | Bosnian (Bosnia and Herzegovina) |
| ca-ES | Catalan (Spain) |
| chr-021 | Cherokee (Northern America) |
| cr-021 | Cree (Northern America) |
| cs-CZ | Czech (Czech Republic) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| cy-GB | Welsh (United Kingdom) |
| da-DK | Danish (Denmark) |
| dak-021 | Dakota (Northern America) |
| de-AT | German (Austria) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| de-CH | German (Switzerland) |
| de-DE | German (Germany) |
Expand All @@ -56,7 +59,7 @@ permalink: /docs/refs/mojito-locales/
| en-US | English (United States) |
| en-ZA | English (South Africa) |
| en-ZW | English (Zimbabwe) |
| en-419 | Spanish (Latin America) |
| es-419 | Spanish (Latin America) |
| es-AR | Spanish (Argentina) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| es-BO | Spanish (Bolivia) |
| es-CL | Spanish (Chile) |
Expand Down Expand Up @@ -99,6 +102,7 @@ permalink: /docs/refs/mojito-locales/
| is-IS | Icelandic (Iceland) |
| it-CH | Italian (Switzerland) |
| it-IT | Italian (Italy) |
| iu-021 | Inuktitut (Northern America) |
| ja-JP | Japanese (Japan) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| ka-GE | Georgian (Georgia) |
| kk-KZ | Kazakh (Kazakhstan) |
Expand All @@ -115,12 +119,15 @@ permalink: /docs/refs/mojito-locales/
| ms-BN | Malay (Brunei Darussalam) |
| ms-MY | Malay (Malaysia) |
| mt-MT | Maltese (Malta) |
| mus-021 | Creek (Northern America) |
| nb-NO | Norwegian (Norway) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| nl-BE | Dutch (Belgium) |
| nl-NL | Dutch (Netherlands) |
| nn-NO | Norwegian (Nynorsk) (Norway) |
| ns-ZA | Northern Sotho (South Africa) |
| nv-003 | Navajo (North America) |
| ny-MW | Nyanja; Chewa; Chichewa (Malawi) |
| oj-021 | Ojibwa (Northern America) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| pa-IN | Punjabi (India) |
| pl-PL | Polish (Poland) |
| ps-AR | Pashto (Afghanistan) |
Expand Down Expand Up @@ -157,6 +164,7 @@ permalink: /docs/refs/mojito-locales/
| uz-UZ | Uzbek (Uzbekistan) |
| vi-VN | Vietnamese (Viet Nam) |
| xh-ZA | Xhosa (South Africa) |
| ypk-021 | Yupik (Northern America) |
| zh-CN | Chinese (Simplified) |
patcon marked this conversation as resolved.
Show resolved Hide resolved
| zh-HK | Chinese (Hong Kong) |
| zh-MO | Chinese (Macau) |
Expand Down
18 changes: 17 additions & 1 deletion webapp/src/main/resources/db/hsql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ insert into locale (id, bcp47_tag) values (781, 'zh-MO');
insert into locale (id, bcp47_tag) values (785, 'zh-SG');
insert into locale (id, bcp47_tag) values (153, 'zh-TW');
insert into locale (id, bcp47_tag) values (793, 'zu-ZA');
insert into locale (id, bcp47_tag) values (804, 'nv-003');
insert into locale (id, bcp47_tag) values (805, 'oj-021');
insert into locale (id, bcp47_tag) values (806, 'iu-021');
insert into locale (id, bcp47_tag) values (807, 'cr-021');
insert into locale (id, bcp47_tag) values (808, 'mus-021');
insert into locale (id, bcp47_tag) values (809, 'dak-021');
insert into locale (id, bcp47_tag) values (810, 'chr-021');
insert into locale (id, bcp47_tag) values (811, 'ypk-021');


insert into plural_form (id, name) values (1, 'one');
Expand Down Expand Up @@ -549,4 +557,12 @@ insert into plural_form_for_locale (locale_id, plural_form_id) values (802, 1);
insert into plural_form_for_locale (locale_id, plural_form_id) values (802, 5);
insert into plural_form_for_locale (locale_id, plural_form_id) values (803, 1);
insert into plural_form_for_locale (locale_id, plural_form_id) values (803, 5);

insert into plural_form_for_locale (locale_id, plural_form_id) values (804, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (805, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (806, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we have standard plural form like english (singular, plural) instead of single one? Any clue how that works in those languages?

Copy link
Author

Choose a reason for hiding this comment

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

(I just left the "zeros" as placeholders until I had time to figure out what these were.)

I can work on this! Might need some time. Can we add this later, and use a sane default for now, or does merging something incorrect lead to hassle?

insert into plural_form_for_locale (locale_id, plural_form_id) values (807, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (808, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (809, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (810, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (811, 0);

17 changes: 17 additions & 0 deletions webapp/src/main/resources/db/migration/V52__Add_Native_Locales.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
insert into locale (id, bcp47_tag) values (804, 'nv-003');
insert into locale (id, bcp47_tag) values (805, 'oj-021');
insert into locale (id, bcp47_tag) values (806, 'iu-021');
insert into locale (id, bcp47_tag) values (807, 'cr-021');
insert into locale (id, bcp47_tag) values (808, 'mus-021');
insert into locale (id, bcp47_tag) values (809, 'dak-021');
insert into locale (id, bcp47_tag) values (810, 'chr-021');
insert into locale (id, bcp47_tag) values (811, 'ypk-021');

insert into plural_form_for_locale (locale_id, plural_form_id) values (804, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (805, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (806, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (807, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (808, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (809, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (810, 0);
insert into plural_form_for_locale (locale_id, plural_form_id) values (811, 0);