Commit Graph

79 Commits

Author SHA1 Message Date
damianedwards e72d3cb249 ResourceManagerStringLocalizerFactory trims app name from resource base name:
- Only applies when LocalizationOptions.ResourcesPath is set
- #167
2015-12-16 15:38:25 -08:00
damianedwards 2e8ae969b7 Changed property name based on feedback 2015-12-16 12:11:22 -08:00
damianedwards 1c5362bccb Added support for hierarchical culture fallback:
- Enabled by default and configured by RequestLocalizationOptions.FallbackToAncestorCulture/FallbackToAncestorUICulture
- Tries all candidate cultures first before trimming the list to parents and trying again, until a match is found, depth limit is reached, or none is found
- Updated functional tests to cover fallback case
- #112
2015-12-15 14:56:04 -08:00
ryanbrandenburg 5074bf0c57 * Default ResourcePath behavior is to look next to .cs file 2015-12-15 11:53:55 -08:00
damianedwards 0b013ae769 Usability improvements:
- Remove the defaultRequestCulture parameter from IApplicationBuilder.UseRequestLocalization and make it a property on RequestLocalizationOptions instead
- Have just a single overload for IApplicationBuilder.UseRequestLocalization that takes the options
- #164
2015-12-11 15:21:07 -08:00
damianedwards 9afd2c256b Make ResourceManagerStringLocalizer thread safe now instances are cached & shared 2015-12-10 17:49:44 -08:00
Pranav K 62412836de Removing extraneous dependencies 2015-12-08 10:48:26 -08:00
damianedwards 96462b9528 Make the ResourceManagerStringLocalizerFactory cache localizer instances
- #156
2015-12-07 22:20:17 -08:00
Doug Bunting 36bc26fb55 Remove `[SuppressMessage]`s
- build break

nit: let VS have its way w/ a `.xproj` file
2015-12-07 21:07:23 -08:00
N. Taylor Mullen dc56363dbd Remove System beta tag in project.json for coreclr packages. 2015-11-12 12:24:23 -08:00
Cesar Blum Silveira e88655bf29 Merge branch 'release' into dev 2015-11-03 13:27:14 -08:00
Cesar Blum Silveira d8060792b2 Strong name everything. 2015-11-03 12:14:18 -08:00
Chris R 198fbad113 React to Cookie API changes. 2015-11-03 11:05:17 -08:00
Hisham Bin Ateya bb83bd27cb Fix docs 2015-10-26 10:24:25 -07:00
Hisham Bin Ateya c79e8e8886 Remove CultureInfoGenerator 2015-10-24 04:36:46 +03:00
Ryan Nowak 68f1a45ea7 Fix breaking change from stringvalues 2015-10-23 15:43:50 -07:00
Kirthi Krishnamraju 636459a6f7 Fix #111: Design changes to known/allowed culture list and cache 2015-10-23 00:41:07 -07:00
Pavel Krymets d25ad6607e Rename Microsoft.Runtime.Abstractions to Microsoft.Extensions.PlatformAbstractions 2015-10-22 18:38:05 -07:00
Pranav K c6bf98c9b7 Switching to generations TFMs 2015-10-22 01:08:12 -07:00
Kirthi Krishnamraju 90116ddd78 fix #90: ResourceStringLocalizerFactory creates string localizer based on resourcetype's name instead of full name 2015-10-19 10:39:05 -07:00
Kirthi Krishnamraju 18b63b9dbf fix build break 2015-10-15 11:47:32 -07:00
Kirthi Krishnamraju 10ad8b5bdf Remove unused namespace 2015-10-15 11:30:32 -07:00
Pranav K 55a1fab053 Replace NotNullAttribute with thrown exceptions 2015-10-08 17:09:44 -07:00
Hisham Bin Ateya 722fbc4ef5 CultureInfoCache.GetCultureInfo Should not be case sensitive 2015-10-06 00:44:28 +03:00
Pranav K f782d8845c Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:49 -07:00
David Fowler 44890477a0 Merge pull request #91 from hishamco/internals
Fix project name in AssemblyInfo
2015-09-28 00:58:45 -07:00
Hisham Bin Ateya 61106d36a1 Fix issue #88 2015-09-28 00:11:45 -07:00
Hisham Bin Ateya 979d1d930b Fix project name in AssemblyInfo 2015-09-26 00:23:29 +03:00
Kirthi Krishnamraju 06aa2412a8 Update sample to use LocalizationOptions and fixed issue in AddLocalization 2015-09-17 11:08:03 -07:00
Kirthi Krishnamraju eefe518ac2 Add LocalizationOptions to specify resources location 2015-09-14 20:34:43 -07:00
Kirthi Krishnamraju 7b53bdd43e Fix for #38: Fallback to wrong language preference when the top preference is unavailable 2015-09-14 11:01:34 -07:00
Pranav K 3d2c013a48 Adding NeutralResourcesLanguageAttribute 2015-09-10 18:20:42 -07:00
Damian Edwards c065c90337 Merge pull request #63 from hishamco/issue#62
Fix 'QueryStringRequestCultureProvider' Issue
2015-09-07 17:29:04 -07:00
Chris R d927314047 Add missing namespaces. 2015-08-31 10:23:01 -07:00
Chris R 2a1cf633fc Use new HttpContext.Features API. 2015-08-31 09:55:57 -07:00
Pranav K 1034e8a343 Reacting to DI changes 2015-08-11 13:58:06 -07:00
Hisham Abdullah Bin Ateya 1cfc62dbfd Fix 'QueryStringRequestCultureProvider' Issue 2015-08-05 20:23:19 +03:00
Troy Dai cc0c4e1f55 Update CoreCLR versions 2015-08-04 10:15:29 -07:00
Hisham Abdullah Bin Ateya c228b65d47 Make 'DefaultCookieName' static readonly field instead of a property
DefaultCookieName as Constant

Add empty line
2015-07-30 11:44:27 -07:00
Hisham Abdullah Bin Ateya 01d0b5db22 Reformat project.json
Reformat project.json

Fix typo
2015-07-30 11:26:14 -07:00
Hisham Abdullah Bin Ateya 59d957df31 Simplify generating culture names
Replace '\n' with Environment.NewLine
2015-07-30 10:01:01 -07:00
Victor Hurdugaci 16a05755bf React to DNX renames 2015-07-29 11:01:20 -07:00
Kiran Challa 064e2fe553 Added repository information to project.json files 2015-07-22 15:00:14 -07:00
Hisham Abdullah Bin Ateya bce1e8f5b4 Remove extra comma from project.json 2015-07-05 05:36:50 +03:00
Hisham Abdullah Bin Ateya 576d4eaf8d Fix missing docs in 'RequestCultureFeature' 2015-06-26 23:17:04 +03:00
Hisham Abdullah Bin Ateya 8f9a47358e Fix 'RequestLocalizationMiddleware' missing docs 2015-06-26 04:49:43 +03:00
Hisham Abdullah Bin Ateya 113fa6d545 Remove "I" from "ApplicationBuilderExtensions" 2015-06-16 20:37:07 -07:00
Hisham Abdullah Bin Ateya 1e3b462210 Remove unnecessary parantheses 2015-06-16 19:49:02 -07:00
Pranav K 6644b5beba Move System.Resources.ReaderWriter to dnxcore50 node 2015-06-03 22:41:05 -07:00
damianedwards 39f40d2c5f Fix references to include beta-* 2015-05-29 11:46:24 -07:00