Can you investigate it further, and maybe provide a patch and test? I am
very short on time.

On Fri, Jul 10, 2009 at 10:41 PM, Simon Laroche <[email protected]>wrote:

> The resources are still not localized. Could it be because the satellite
> assemblies are not signed?
>
> //Simon
>
>
> On Fri, Jul 10, 2009 at 3:44 PM, Roelof Blom <[email protected]>wrote:
>
>> Good catch! It's fixed in r5854.
>>
>> -- Roelof
>>
>>
>> On Fri, Jul 10, 2009 at 7:14 PM, Simon Laroche 
>> <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> I'm running of the trunk and validation messages are not being localized
>>> using the default resource manager.
>>>
>>> After some looking at the validation source it seems that the cache
>>> validation registry falls back to invariant culture of the default resource
>>> manager instead of of the current culture if no resource manager is passed
>>> to the cached validation registry.
>>>
>>>         /// <summary>
>>>         /// Gets the string from resource by key
>>>         /// </summary>
>>>         /// <param name="key">The key.</param>
>>>         /// <returns></returns>
>>>         public string GetStringFromResource(string key)
>>>         {
>>>             if (resourceManager != null)
>>>             {
>>>                 ResourceSet resourceSet =
>>> resourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true,
>>> true);
>>>                 string result = resourceSet.GetString(key);
>>>                 if (result != null)
>>>                     return result;
>>>             }
>>>
>>>             ResourceSet defaultResourceSetForCurrentThread =
>>>
>>> defaultResourceManager.GetResourceSet(CultureInfo.InvariantCulture, true,
>>> true); //Should this be the current culture?
>>>
>>>             return defaultResourceSetForCurrentThread.GetString(key);
>>>         }
>>>
>>>
>>> Thonks,
>>>
>>> Simon
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to