Commit Graph

36 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 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 7033871b14 Fix tests in reaction to Options changes 2015-12-10 21:32:05 -08:00
Pranav K 62412836de Removing extraneous dependencies 2015-12-08 10:48:26 -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
Troy Dai 83c46fb8b7 Run CoreCLR test when runtime framework is CoreCLR 2015-11-10 14:40:19 -08:00
Cesar Blum Silveira d8060792b2 Strong name everything. 2015-11-03 12:14:18 -08:00
Kirthi Krishnamraju 636459a6f7 Fix #111: Design changes to known/allowed culture list and cache 2015-10-23 00:41:07 -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 7ea6435338 Added localization functional tests 2015-10-13 15:50:55 -07:00
Hisham Bin Ateya 722fbc4ef5 CultureInfoCache.GetCultureInfo Should not be case sensitive 2015-10-06 00:44:28 +03:00
Hisham Bin Ateya b22474afb3 Add missing Asserts 2015-10-05 13:38:22 -07:00
Pranav K f782d8845c Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:49 -07:00
Hisham Bin Ateya 61106d36a1 Fix issue #88 2015-09-28 00:11:45 -07:00
Kiran Challa ed70441162 Fix for build break. Removing reference to official xunit package. 2015-09-22 14:55:36 -07: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
Hisham Bin Ateya a7b1b1e4ec Remove unnecessary usings from Microsoft.Framework.Localization.Tests 2015-09-14 20:29:13 -07:00
Hisham Bin Ateya 56259c0564 Add missing 'Assert' in GetFallbackLanguage_ReturnsFirstNonNullCultureFromSupportedCultureList 2015-09-14 20:25:45 -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
Hisham Abdullah Bin Ateya efcbb2a664 Add 'Microsoft.AspNet.Localization' Unit Tests 2015-09-14 10:28:41 -07:00
Hisham Abdullah Bin Ateya 2faf31727e Fix namespace typo 2015-09-10 16:01:55 -07:00
Troy Dai cc0c4e1f55 Update CoreCLR versions 2015-08-04 10:15:29 -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 5f83c0df43 Rename Microsoft.Framework.Localization.Test to Microsoft.Framework.Localization.Tests
Microsoft.Framework.Localization.Test -> Microsoft.Framework.Localization.Tests

Rename the .xproj

Rename the solution file
2015-07-30 09:50:26 -07:00
anurse 47ff0f26ac return to the official xunit build 2015-06-17 12:09:09 -07:00
anurse d436955e02 Switch to xunit.runner.aspnet 2015-06-13 00:13:52 -07:00
anurse f581863445 move System.Reflection dependency to dnxcore50 in tests 2015-06-12 23:43:46 -07:00
damianedwards 39f40d2c5f Fix references to include beta-* 2015-05-29 11:46:24 -07:00
damianedwards 1a47d19bb3 Introduces IStringLocalizer.GetAllStrings to replace direct IEnumerable impl:
- #18

Support not loading ancestor culture strings on IStringLocalizer.GetAllStrings:
- #23
2015-05-28 12:25:03 -07:00
damianedwards 90ca64c3dd Statics be gone!
- Cleaned up ctors of ResourceManagerStringLocalizer and ResourceManagerWithCultureStringLocalizer too
2015-05-28 12:14:03 -07:00
damianedwards 4ba159afe7 Removed Moq from tests & enabled .NET Core
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15

Change "Strategy" to "Provider"
- #19
2015-05-20 14:41:52 -07:00
damianedwards 9384848cc7 Cache walk of the culture tree when building resource name list:
- #15
2015-05-20 14:41:36 -07:00