public static string getIndexingText(BoxIndexing bi, string locale) { if (!IO.IOUtil.isSupportedLanguage(locale)) { return(null); } string s = ""; IOUtil.inLocalizedEnviroment(locale, () => s = getIndexingText(bi)); return(s); }
public static BoxIndexing getIndexingEnum(string text, string locale) { if (!IO.IOUtil.isSupportedLanguage(locale)) { return(BoxIndexing.INVALID); } BoxIndexing result = BoxIndexing.INVALID; IOUtil.inLocalizedEnviroment(locale, () => result = getIndexingEnum(text)); return(result); }
public static string getIndexingText(BoxIndexing bi) { switch (bi) { case BoxIndexing.CATEGORY: return(Localization.FileKeywords.CardBox_Index_Category); case BoxIndexing.CHAPTERS: return(Localization.FileKeywords.CardBox_Index_Chapters); case BoxIndexing.CHRONOLOGICAL: return(Localization.FileKeywords.CardBox_Index_Chronological); default: return(null); } }