Commit Graph

181 Commits

Author SHA1 Message Date
Doug Bunting da93a75da4 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:49:55 -08:00
John Luo b294828b0f Updating test TFMs for custom test discovery 2016-02-22 14:50:21 -08:00
Hisham Bin Ateya a928982055 Localization Sample Fix 2016-02-22 12:54:10 -08:00
Ajay Bhargav Baaskaran 324f586eeb Enabled xml doc generation 2016-02-18 16:58:35 -08:00
N. Taylor Mullen 0d6d596219 Update System.Linq 4.0.2-* => 4.1.0-*. 2016-02-18 15:36:54 -08:00
Kiran Challa 43fd4c465f Enable tests to run using dotnet xunit runner 2016-02-10 14:59:50 -08:00
Victor Hurdugaci 81ef98b7d5 Fix build errors 2016-02-10 14:08:12 -08:00
Pranav K 67611a81cb Reacting to CoreCLR package version changes 2016-02-08 09:33:47 -08:00
Pranav K 33134f7f2a Change build to use dotnet
Fixes #198
2016-02-05 12:06:03 -08:00
Hisham Bin Ateya 3590cacd3f Add 'UseServer' 2016-02-03 02:12:37 +03:00
Hisham Bin Ateya 6f5bddea69 FunctionalTest for LocalizationSample
Remove LocalizationTest comments

Move shared code into a private method

Add CoreClr with Mono in non Windows test

Fix typo
2016-02-02 14:58:43 -08:00
Cesar Blum Silveira 58ab5d6699 Reference Microsoft.NETCore.Platforms where necessary. 2016-02-02 14:21:13 -08:00
Pavel Krymets bc4426cf44 Fix sample on CoreClr 2016-02-02 12:52:59 -08:00
N. Taylor Mullen 4010676634 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:55 -08:00
N. Taylor Mullen ee1738db56 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:52 -08:00
ryanbrandenburg 60047186eb * Replace System.Resources.ReaderWriter 2016-01-20 12:02:02 -08:00
John Luo 0bd2e3281d Reacting to hosting rename 2016-01-17 17:56:43 -08:00
Chris R 30b71fb8c5 React to hosting API changes. 2016-01-12 14:22:45 -08:00
John Luo 5c2bdc8923 Updating to new options pattern 2016-01-07 18:26:38 -08:00
ryanbrandenburg 5b1beb68b5 * Make test culture independent 2016-01-05 12:01:16 -08:00
ryanbrandenburg f3855b9cf2 * Throw proper exception when missing resource 2015-12-29 14:13:20 -08:00
Eilon Lipton 2ce31c5122 Merge pull request #191 from hishamco/readme
Fix Microsoft.AspNet.Localization feed in README
2015-12-28 10:18:16 -08:00
John Luo c1589ef9bc Adding back middleware initialization with options instance. 2015-12-23 15:09:59 -08:00
Hisham Bin Ateya a5e95cd914 Fix Microsoft.AspNet.Localization feed in README 2015-12-23 11:32:28 +03:00
John Luo d9fc399531 Standardizing middleware to use configureOptions lambda 2015-12-22 21:57:56 -08:00
Hao Kung 489250a8e1 OptionsModel => Options 2015-12-21 16:07:14 -08:00
Chris R c31c6cd186 React to Hosting changes. 2015-12-21 10:54:47 -08:00
John Luo 5c98dd5d98 Reacting to new Hosting API 2015-12-18 15:52:58 -08:00
damianedwards 017b9b8773 Added tests to cover ResourceManagerStringLocalizerFactory caching behavior 2015-12-18 14:28:08 -08:00
damianedwards d3b84c19c8 Tweaked cache key when getting localizer from basName/location:
- Cleaned up code a little to make it easier to understand (maybe)
- #138
2015-12-18 14:28:08 -08:00
Pranav K 0b9b99e617 Don't throw if LocalizedString is null 2015-12-17 20:56:37 -08:00
damianedwards f55f32fdb8 Make LocalizedString a class 2015-12-17 15:46:40 -08:00
damianedwards f7f8d9b9eb Rename "ancestor" to "parent" on loc APIs 2015-12-17 15:25:39 -08:00
damianedwards b041a07652 Change culture fallback to depth-first:
- #112
2015-12-16 16:11:22 -08:00
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
Pranav K 75187b0bd7 Merge branch 'release' into dev 2015-12-11 12:24:23 -08:00
Pranav K 4b551e8a66 Updating to release NuGet.config. 2015-12-11 12:24:20 -08:00
damianedwards 7033871b14 Fix tests in reaction to Options changes 2015-12-10 21:32:05 -08:00
damianedwards 9afd2c256b Make ResourceManagerStringLocalizer thread safe now instances are cached & shared 2015-12-10 17:49:44 -08:00
Damian Edwards 8a03857330 Update README.md 2015-12-08 14:31:08 -08:00
Damian Edwards 17faf92994 Update README.md 2015-12-08 12:12:51 -08:00
Damian Edwards 10ec8c890b Add package badges to README.md 2015-12-08 12:01:32 -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
Doug Bunting 6b9e3985e0 Ignore `launchSettings.json` files
nit: reordered `.gitignore` file a bit by copying from another repo
2015-12-02 14:06:55 -08:00