Commit Graph

124 Commits

Author SHA1 Message Date
hishamco bc64eb9b99 Fix LocalizeString docs 2016-12-05 10:56:39 -08:00
hishamco 40e54bf77d Minor Fixes
Remove the blank line before conditional block

Remove versions from project.json in test projects

Address feedback

Address feedback

Add CommandLine configuration package to avoid breaking test

Add missing using
2016-11-12 00:04:38 +03:00
Pranav K ed9a0d28bf Updating versions to 1.2.0-* 2016-11-09 14:18:21 -08:00
jacalvar 6f3a68d80d Merge branch 'dev' of github.com:aspnet/Localization into dev 2016-11-08 16:34:47 -08:00
Hisham Bin Ateya 5c18449474 Remove unnecessary code in ResourceManagerStringLocalizer (#300)
Remove lines from empty constructors
2016-11-07 12:00:49 -08:00
Ryan Brandenburg 63af4318a3 Restore AssemblyWrapper constructor 2016-11-07 10:38:26 -08:00
jacalvar f0a9f22db6 Created public API baselines 2016-11-04 17:23:04 -07:00
Pranav K e52cab580e Updating partner package versions 2016-10-03 14:25:08 -07:00
Kiran Challa 861ae52de5 Added support for get culture information from request's route data information.
[Fixes #122] Get segment from mapped route for CustomRequestCultureProvider
2016-09-30 09:57:44 -07:00
Pranav K 07e7741463 Make System.Reflection.Extensions a netstandard dependency 2016-09-26 15:35:14 -07:00
Ryan Brandenburg 0ac2a3f66a Use existing CultureInfo 2016-09-23 15:50:10 -07:00
Ryan Brandenburg b2ef91df9f Localization finds resources in class libraries 2016-09-22 15:53:02 -07:00
Ryan Brandenburg d84b069116 Make resource lookup behavior overridable (#266) 2016-08-08 11:45:42 -07:00
Ryan Brandenburg e976c0fa22 Include all strings from GetAllStrings (#264) 2016-07-15 10:01:02 -07:00
Doug Bunting 2669c32641 One build to rule them all
- well, at least VS and command-line builds will share output
- part of aspnet/Coherence-Signed#277
2016-07-07 12:11:11 -07:00
Pranav K cf6e0de480 Updating to dev versions 2016-06-16 10:18:12 -07:00
Pranav K 08e394d994 Fix build warnings 2016-05-02 11:27:19 -07:00
Pranav K 0c5e5dbd29 Removing imports from src projects 2016-04-08 06:49:24 -07:00
jacalvar 2acc2b0a03 Return IServiceCollection from AddLocalization extension methods 2016-03-31 19:27:34 -07:00
Eilon Lipton 5ba0c4a0f7 Fix package metadata 2016-03-27 15:35:54 -07:00
Hisham Bin Ateya 007821bf1b Remove unnecessary 'usings' 2016-03-21 14:38:38 -07:00
Pranav K 90235c7008 Reacting to Hosting changes 2016-03-15 09:14:31 -07:00
Pranav K 948c4d6b98 * Target minimal TFM 2016-03-13 22:12:40 -07:00
Ajay Bhargav Baaskaran 3b560d65df Added Company, Copyright and Product attributes to AssemblyInfo 2016-03-03 17:33:34 -08:00
John Luo 7c8be4d8e3 Update cookie name 2016-03-03 13:36:47 -08:00
Doug Bunting 6412a14502 Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 18:59:17 -08:00
N. Taylor Mullen b746844466 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:38:14 -08:00
Kiran Challa 7ac771155d Fix test failures 2016-03-01 09:32:01 -08:00
jacalvar 4b348efa59 Make ServiceCollectionExtensions consistent 2016-02-29 11:28:52 -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
Pranav K 67611a81cb Reacting to CoreCLR package version changes 2016-02-08 09:33:47 -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 5c2bdc8923 Updating to new options pattern 2016-01-07 18:26:38 -08:00
ryanbrandenburg f3855b9cf2 * Throw proper exception when missing resource 2015-12-29 14:13:20 -08:00
John Luo c1589ef9bc Adding back middleware initialization with options instance. 2015-12-23 15:09:59 -08: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
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