Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

ResourceManagerStringLocalizerFactory should look for resource name without the application name prefix on the type name when Resources path is set #167

Closed
DamianEdwards opened this issue Dec 10, 2015 · 0 comments
Assignees
Milestone

Comments

@DamianEdwards
Copy link
Member

When LocalizationOptions.ResourcesPath is set, make ResourceManagerStringLocalizerFactory use a resource location without the application name prefix.

e.g. where location is MyApp.Controllers.HomeController and LocalizationOptions.ResourcesPath is "Resources", ResourceManagerStringLocalizerFactory would look for a resource with base name "MyApp.Resources.Controllers.HomeController".

@DamianEdwards DamianEdwards added this to the 1.0.0-rc2 milestone Dec 11, 2015
@DamianEdwards DamianEdwards self-assigned this Dec 11, 2015
DamianEdwards added a commit that referenced this issue Dec 16, 2015
…se name:

- Only applies when LocalizationOptions.ResourcesPath is set
- #167
DamianEdwards added a commit that referenced this issue Dec 16, 2015
…se name:

- Only applies when LocalizationOptions.ResourcesPath is set
- #167
@DamianEdwards DamianEdwards changed the title StringLocalizer<T> should look for resource name with or without the application name prefix ResourceManagerStringLocalizerFactory should look for resource name without the application name prefix on the type name when Resources path is set Dec 16, 2015
DamianEdwards added a commit that referenced this issue Dec 16, 2015
…se name:

- Only applies when LocalizationOptions.ResourcesPath is set
- #167
DamianEdwards added a commit to aspnet/Mvc that referenced this issue Dec 17, 2015
- IHtmlLocalizer no longer derives from IStringLocalizer
- IHtmlLocalizer indexer now returns LocalizedHtmlString
- IHtmlLocalizer has GetString methods now that act the same as IStringLocalizer.GetString
- Made LocalizedHtmlString a struct to match LocalizedString
- Updated samples in response to aspnet/Localization#167
- Fixes some doc comments
- Fixed tests
- #3716
DamianEdwards added a commit to aspnet/Mvc that referenced this issue Dec 18, 2015
- IHtmlLocalizer no longer derives from IStringLocalizer
- IHtmlLocalizer indexer now returns LocalizedHtmlString
- IHtmlLocalizer has GetString methods now that act the same as IStringLocalizer.GetString
- Made LocalizedHtmlString a struct to match LocalizedString
- Updated samples in response to aspnet/Localization#167
- Rename "ancestor" to "parent" for loc API
- Fixes some doc comments
- Fixed tests
- #3716
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant