public class BBTranslationBundle extends Object
Modifier and Type | Field and Description |
---|---|
static BBjNumber |
DIR_ERROR |
static BBjNumber |
NAME_ERROR |
static BBjNumber |
NumConsolePrints |
static BBjNumber |
REMOVE_LOCALE_ERROR |
static BBjNumber |
SAVE_ERROR |
Modifier and Type | Method and Description |
---|---|
void |
addLocale(Locale p_locale!) |
void |
addTranslation(BBjString p_key$,
HashMap p_values!) |
void |
addTranslation(BBjString p_key$,
HashMap p_values!,
BBjNumber p_skip_existing) |
void |
addTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_value$) |
void |
addTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_value$,
BBjNumber p_skip_existing) |
void |
clearCache() |
static void |
createParentDirs(BBjString p_fileName!) |
static BBTranslationBundle |
getBundle(BBjString p_name!) |
static BBTranslationBundle |
getBundle(BBjString p_name!,
BBjString p_directory!) |
static BBTranslationBundle |
getBundle(BBjString p_name!,
BBjString p_directory!,
Locale p_localeOfOrigin!) |
static BBTranslationBundle |
getBundleFromJar(BBjString p_name!,
BBjString p_jarFileName!,
Locale p_localeOfOrigin!) |
static BBTranslationBundle |
getBundleFromZip(BBjString p_name!,
BBjString p_zipFileName!,
Locale p_localeOfOrigin!) |
static BBjString |
getBundleLockUser(BBjString p_name!,
BBjString p_directory!) |
static Locale |
getClientLocale() |
static BBjString |
getClientLocaleString() |
BBTranslations |
getDefaultTranslations() |
BBjString |
getDirectory() |
Locale |
getLocaleOfOrigin() |
BBjVector |
getLocales() |
BBjString |
getName() |
BBjString |
getTranslation(Locale p_locale!,
BBjString p_key$) |
BBjString |
getTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_defaultValue!) |
BBjString |
getTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_defaultValue!,
BBjNumber p_addIfNotFound) |
BBjString |
getTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_defaultValue!,
BBjNumber p_addIfNotFound,
BBjNumber p_forceAdd) |
BBjString |
getTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_defaultValue!,
BBjNumber p_addIfNotFound,
BBjNumber p_forceAdd,
BBjNumber p_skipParentLocale) |
BBTranslations |
getTranslations(Locale p_locale!) |
static BBjNumber |
obtainBundleLock(BBjString p_name!,
BBjString p_directory!) |
static void |
print(BBjNumber p_printChan,
BBjString p_text$) |
static void |
print(BBjNumber p_printChan,
BBjString p_text!,
BBjNumber p_wrapText,
BBjNumber p_pauseConsole) |
static BBjNumber |
releaseBundleLock(BBjString p_name!,
BBjString p_directory!) |
void |
removeLocale(Locale p_locale!) |
void |
removeTranslation(Locale p_locale!,
BBjString p_key$) |
void |
save() |
void |
save(BBjString p_directory!) |
void |
save(BBjString p_directory!,
BBjString p_bundleName!) |
void |
save(BBjString p_directory!,
BBjString p_bundleName!,
BBjNumber p_forceSave) |
void |
saveTranslationsToJar(BBjString p_jarFileName$) |
void |
saveTranslationsToZip(BBjString p_zipFileName$) |
void |
setTranslation(Locale p_locale!,
BBjString p_key$,
BBjString p_value$) |
static void |
validateBundle(BBjString p_bundleName$,
BBjString p_bundleDir!) |
static void |
validateBundle(BBjString p_bundleName$,
BBjString p_bundleDir!,
BBjString p_validationReportFileName!) |
static void |
validateBundle(BBjString p_bundleName$,
BBjString p_bundleDir!,
BBjString p_validationReportFileName!,
BBjNumber p_removeInvalidTranslations) |
static void |
writePropertiesFile(BBjString p_propertiesFileName$,
SortedProperties p_properties!) |
public static BBjNumber NumConsolePrints
public static BBjNumber NAME_ERROR
public static BBjNumber REMOVE_LOCALE_ERROR
public static BBjNumber DIR_ERROR
public static BBjNumber SAVE_ERROR
public static BBTranslationBundle getBundle(BBjString p_name!)
public static BBTranslationBundle getBundle(BBjString p_name!, BBjString p_directory!)
public static BBTranslationBundle getBundle(BBjString p_name!, BBjString p_directory!, Locale p_localeOfOrigin!)
public static void createParentDirs(BBjString p_fileName!)
public static BBTranslationBundle getBundleFromJar(BBjString p_name!, BBjString p_jarFileName!, Locale p_localeOfOrigin!)
public static BBTranslationBundle getBundleFromZip(BBjString p_name!, BBjString p_zipFileName!, Locale p_localeOfOrigin!)
public static BBjNumber obtainBundleLock(BBjString p_name!, BBjString p_directory!)
public static BBjString getBundleLockUser(BBjString p_name!, BBjString p_directory!)
public static BBjNumber releaseBundleLock(BBjString p_name!, BBjString p_directory!)
public BBTranslations getTranslations(Locale p_locale!)
public void addLocale(Locale p_locale!)
public void removeLocale(Locale p_locale!)
public void addTranslation(BBjString p_key$, HashMap p_values!)
public void addTranslation(BBjString p_key$, HashMap p_values!, BBjNumber p_skip_existing)
public void addTranslation(Locale p_locale!, BBjString p_key$, BBjString p_value$)
public void addTranslation(Locale p_locale!, BBjString p_key$, BBjString p_value$, BBjNumber p_skip_existing)
public void setTranslation(Locale p_locale!, BBjString p_key$, BBjString p_value$)
public void removeTranslation(Locale p_locale!, BBjString p_key$)
public BBjString getTranslation(Locale p_locale!, BBjString p_key$)
public BBjString getTranslation(Locale p_locale!, BBjString p_key$, BBjString p_defaultValue!)
public BBjString getTranslation(Locale p_locale!, BBjString p_key$, BBjString p_defaultValue!, BBjNumber p_addIfNotFound)
public BBjString getTranslation(Locale p_locale!, BBjString p_key$, BBjString p_defaultValue!, BBjNumber p_addIfNotFound, BBjNumber p_forceAdd)
public BBjString getTranslation(Locale p_locale!, BBjString p_key$, BBjString p_defaultValue!, BBjNumber p_addIfNotFound, BBjNumber p_forceAdd, BBjNumber p_skipParentLocale)
public BBjString getName()
public BBjString getDirectory()
public Locale getLocaleOfOrigin()
public BBjVector getLocales()
public BBTranslations getDefaultTranslations()
public void save()
public void save(BBjString p_directory!)
public void save(BBjString p_directory!, BBjString p_bundleName!)
public void save(BBjString p_directory!, BBjString p_bundleName!, BBjNumber p_forceSave)
public void saveTranslationsToJar(BBjString p_jarFileName$)
public void saveTranslationsToZip(BBjString p_zipFileName$)
public void clearCache()
public static Locale getClientLocale()
public static BBjString getClientLocaleString()
public static void writePropertiesFile(BBjString p_propertiesFileName$, SortedProperties p_properties!)
public static void validateBundle(BBjString p_bundleName$, BBjString p_bundleDir!)
public static void validateBundle(BBjString p_bundleName$, BBjString p_bundleDir!, BBjString p_validationReportFileName!)
public static void validateBundle(BBjString p_bundleName$, BBjString p_bundleDir!, BBjString p_validationReportFileName!, BBjNumber p_removeInvalidTranslations)
public static void print(BBjNumber p_printChan, BBjString p_text$)
public static void print(BBjNumber p_printChan, BBjString p_text!, BBjNumber p_wrapText, BBjNumber p_pauseConsole)