示例#1
0
        /// <summary>
        /// Updates the locale string resource
        /// </summary>
        /// <param name="LocaleStringResourceID">The locale string resource identifier</param>
        /// <param name="LanguageID">The language identifier</param>
        /// <param name="ResourceName">The resource name</param>
        /// <param name="ResourceValue">The resource value</param>
        /// <returns>Locale string resource</returns>
        public static LocaleStringResource UpdateLocaleStringResource(int LocaleStringResourceID, int LanguageID, string ResourceName, string ResourceValue)
        {
            DBLocaleStringResource dbItem = DBProviderManager <DBLocaleStringResourceProvider> .Provider.UpdateLocaleStringResource(LocaleStringResourceID, LanguageID, ResourceName, ResourceValue);

            LocaleStringResource localeStringResource = DBMapping(dbItem);

            if (LocaleStringResourceManager.CacheEnabled)
            {
                NopCache.RemoveByPattern(LOCALSTRINGRESOURCES_PATTERN_KEY);
            }
            return(localeStringResource);
        }