Ejemplo n.º 1
0
        internal string GetResourceString(string resourceName, string defaultValue)
        {
            string resourceValue = null;

            if (isEnglish)
            {
                resourceValue = defaultValue;
            }
            else if (isGerman)
            {
                resourceValue = GetGermanResource(resourceName);
            }

            if (resourceValue != null)
            {
                return(resourceValue);
            }

            if (m_ResourceProvider == null)
            {
                // Backwards compatibility with older versions of OW
                return(defaultValue);
            }
            else
            {
                return(m_ResourceProvider.GetResourceString(resourceName, defaultValue));
            }
        }
Ejemplo n.º 2
0
 internal string GetResourceString(string resourceName, string defaultValue)
 {
     if (m_ResourceProvider == null)
     {
         // Backwards compatibility with older versions of OW
         return(defaultValue);
     }
     else
     {
         return(m_ResourceProvider.GetResourceString(resourceName, defaultValue));
     }
 }