/// <summary> /// 本地到简体,用于自写配置转回。 /// </summary> /// <param name="s"></param> /// <returns></returns> public static string LCZH(object str) { MY_OSType myosType = GetOSType; if (str == null) { str = string.Empty; } string s = str.ToString(); if (myosType == MY_OSType.ChineseSimplified) { return(TW_ZH(s)); } else { if (myosType == MY_OSType.ChineseTradiational) { return(TW_ZH(s)); } else { if (myosType == MY_OSType.English) { return(s); } else { if (myosType == MY_OSType.Japanese) { return(s); } else { if (myosType == MY_OSType.Other) { return(s); } else { return(s); } } } } } }
/// <summary> /// 本地到数据库,(数据库是繁体) /// </summary> /// <param name="s"></param> /// <returns></returns> public static object LCDB(object s) { MY_OSType myosType = GetOSType; if (myosType == MY_OSType.ChineseSimplified) { return(ZH_TW(s)); } else { if (myosType == MY_OSType.ChineseTradiational) { return(ZH_TW(s)); } else { if (myosType == MY_OSType.English) { return(s); } else { if (myosType == MY_OSType.Japanese) { return(s); } else { if (myosType == MY_OSType.Other) { return(s); } else { return(s); } } } } } }