Пример #1
0
        // Token: 0x0600084C RID: 2124 RVA: 0x0003D254 File Offset: 0x0003B454
        public static string GetDefaultCultureCssFontFileName(OwaContext owaContext)
        {
            if (owaContext == null)
            {
                throw new ArgumentNullException("owaContext");
            }
            CultureInfo defaultCulture = Culture.GetDefaultCulture(owaContext);

            return(Culture.GetCssFontFileNameFromCulture(defaultCulture));
        }
Пример #2
0
 // Token: 0x0600086B RID: 2155 RVA: 0x0003E71C File Offset: 0x0003C91C
 internal static void SetThreadCulture(OwaContext owaContext)
 {
     if (!Culture.IsThreadCultureSet(owaContext))
     {
         if (owaContext.Culture != null)
         {
             ExTraceGlobals.CoreTracer.TraceDebug <string>(0L, "OwaContext.Culture was already set for this request but not for this thread (proxy scenario). Setting the Culture request \"{0}\" in the current thread.", owaContext.Culture.ToString());
             Culture.InternalSetThreadCulture(owaContext.Culture, owaContext);
             return;
         }
         ExTraceGlobals.CoreTracer.TraceDebug(0L, "OwaContext.Culture was never set for this request. Setting the Culture request and culture thread to default culture.");
         Culture.InternalSetThreadCulture(Culture.GetDefaultCulture(owaContext), owaContext);
     }
 }
Пример #3
0
        // Token: 0x0600085E RID: 2142 RVA: 0x0003E45C File Offset: 0x0003C65C
        public static string GetUserHelpLanguage()
        {
            CultureInfo userCulture = Culture.GetUserCulture();
            string      text        = Culture.LookUpHelpDirectoryForCulture(userCulture);

            if (text == null)
            {
                text = Culture.LookUpHelpDirectoryForCulture(Culture.GetDefaultCulture(OwaContext.Current));
            }
            if (text == null)
            {
                text = "en";
            }
            ExTraceGlobals.CoreTracer.TraceDebug <string>(0L, "Help subdirectory: ", text);
            return(text);
        }