public class CrowdinTranslation extends CrowdinFile
CrowdinFile.Type| Constructor and Description |
|---|
CrowdinTranslation(File _file,
String _name,
String _type,
String _project,
String _lang,
CrowdinFile _master,
boolean _shouldBeCleaned) |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeAndroidLocale(String locale)
tranform xx-XX to xx-rXX
|
static String |
encodeIOSLocale(String locale)
transform en-GB to en_GB
|
static String |
encodeLanguageName(String lang,
boolean isEncode) |
static String |
getCrowdinLangFromPlatformLang(String lang)
Return the right language code for Crowdin from the language code used by eXo
This is useful for some specific case, for example the indonesian language code in Crowdin
is "id" whereas it is "in" in the platform (and Java).
|
String |
getLang() |
CrowdinFile |
getMaster() |
static String |
getPlatformLangFromCrowdinLang(String lang)
Return the right language code for eXo from the language code used by Crowdin
This is useful for some specific case, for example the indonesian language code in Crowdin
is "id" whereas it is "in" in the platform (and Java).
|
getCrowdinPath, getFile, getName, getProject, getType, isShouldBeCleanedpublic String getLang()
public CrowdinFile getMaster()
public static String encodeLanguageName(String lang, boolean isEncode)
lang - language nameisEncode - encode _ character in language name if isEncode is true,
decode _ character in language name if isEncode is falsepublic static String getPlatformLangFromCrowdinLang(String lang)
lang - Language code in Crowdinpublic static String getCrowdinLangFromPlatformLang(String lang)
lang - Language code in platformpublic static String encodeAndroidLocale(String locale)
locale - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.