コード例 #1
0
        /// <summary>
        /// Returns all strings
        /// </summary>
        /// <param name="includeParentCultures">Whether result should include parent cultures as well</param>
        /// <returns>List of localized strings</returns>
        public IEnumerable <LocalizedString> GetAllStrings(bool includeParentCultures)
        {
            var values = _localizationProvider.GetStringsByCulture(_culture ?? CultureInfo.CurrentUICulture);

            return(values.Select(value => new LocalizedString(value.Key, value.Value ?? value.Key, value.Value == null)));
        }