Skip to content

Commit

Permalink
Merge pull request #46 from rpayami/main
Browse files Browse the repository at this point in the history
Add Mayan languages as Platform languages
  • Loading branch information
yoikawa authored Oct 25, 2023
2 parents 5958220 + c7f8ab3 commit 2061427
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/com/force/i18n/DefaultHumanLanguageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ enum DefaultHumanLanguageImpl implements HumanLanguage {
YIDDISH(new Locale("ji"), LanguageType.PLATFORM, "yi", 236.0), // Java screwup with iso code.
HMONG(new Locale("hmn"), LanguageType.PLATFORM, 238.0),


CHUJ(new Locale("cac"), LanguageType.PLATFORM, 248.0), //Chuj
KICHE(new Locale("quc"), LanguageType.PLATFORM, 248.0), //Kiche
KAQCHIKEL(new Locale("cak"), LanguageType.PLATFORM, 248.0), //Kaqchikel

// Sample use of variants for testing
ARABIC_DZ(new Locale("ar", "DZ"), LanguageType.PLATFORM, 194.0), //Arabic Algerian
ENGLISH_AU(new Locale("en", "AU"), LanguageType.PLATFORM, 168.0),
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/force/i18n/LanguageConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public final class LanguageConstants {
public static final String CHINESE_SG = "zh_SG"; //Chinese (Simplified) Singapore
public static final String CHINESE_MY = "zh_MY"; //Chinese (Simplified) Malaysia
public static final String CHINESE_HK = "zh_HK"; //Chinese (Traditional) Hong Kong
public static final String CHUJ = "cac"; //Chuj
public static final String KICHE = "quc"; //Kiche
public static final String KAQCHIKEL = "cak"; //Kaqchikel
public static final String ENGLISH_HK = "en_HK"; //English Hong Kong
public static final String ENGLISH_IE = "en_IE"; //English Ireland
public static final String ENGLISH_SG = "en_SG"; //English Singapore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ private LanguageDeclension createDeclension(HumanLanguage language) {
return new UnsupportedLanguageDeclension.HaitianCreoleDeclension(language);
case GREENLANDIC:
return new UnsupportedLanguageDeclension.GreenlandicDeclension(language);
case CHUJ:
return new SimpleDeclension(language);
case KICHE:
return new SimpleDeclension(language);
case KAQCHIKEL:
return new SimpleDeclension(language);
}

if (FAIL_ON_MISSING) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/com/force/i18n/grammar/public_i18n.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@
<param name="ht">Kreyòl ayisyen</param>
<param name="yi">יידיש</param>
<param name="hmn">Hmoob</param>

<param name="cac">Chuj</param>
<param name="quc">Kʼicheʼ</param>
<param name="cak">Kaqchikel</param>
<param name="ar_DZ">(العربية (الجزائر</param>
<param name="ar_BH">(العربية (‏البحرين</param>
<param name="ar_EG">(العربية (مصر</param>
Expand Down

0 comments on commit 2061427

Please sign in to comment.