View previous topic :: View next topic |
Author |
Message |
Dierk Droth
Joined: 16 Nov 2010 Posts: 27
|
Posted: Fri Dec 03, 2010 10:52 am Post subject: Language="{UICulture}" in ResourceDictionary does |
|
|
Globalizer amended a ResourceDictionary XAML file and inject Language="{UICulture}" like this:
<ResourceDictionary Language="{UICulture}" ...
However, this does not work since VS reports this error: The property 'Language' was not found ResourceDictionary
What am I missing?
Thanks |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Dec 03, 2010 11:24 am Post subject: |
|
|
This looks like a bug. Globalizer.NET should not be adding the Language attribute to ResourceDictionaries. We will fix this in the next minor release.
Generally you would not use ResourceDictionaries for storing localizable items - since you would normally use the Resx extension directly in the Window/Control. If you aren't localizing items in the Resource Dictionary then you could just exclude the Resource Dictionary target in Globalizer.NET and then delete the Language attribute from the XAML. If you are localizing items in the Resource Dictionary then, for now, you will need to delete the Language attribute after you scan the project. _________________ Infralution Support |
|
Back to top |
|
|
Dierk Droth
Joined: 16 Nov 2010 Posts: 27
|
Posted: Fri Dec 03, 2010 11:38 am Post subject: |
|
|
Thanks for looking into.
Thing is, the ResourceDictionary holds a (window) style which in turn holds a button with a string as content. Thus replacing the string by a resource reference is accurate and expected. However, the "Language" attribute likely is not needed and in fact causes trouble. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Dec 04, 2010 2:09 am Post subject: |
|
|
OK - for now you will just have to delete the Language attribute after scanning. We should be able to release a fix for this in the next few days. _________________ Infralution Support |
|
Back to top |
|
|
Dierk Droth
Joined: 16 Nov 2010 Posts: 27
|
Posted: Sat Dec 04, 2010 6:51 am Post subject: |
|
|
Yes, thanks. That's what I did for now.
Thanks for addressing the issue in the product. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Dec 07, 2010 2:24 am Post subject: |
|
|
We have just released Version 2.3.8 that fixes this issue. _________________ Infralution Support |
|
Back to top |
|
|
Dierk Droth
Joined: 16 Nov 2010 Posts: 27
|
Posted: Tue Dec 07, 2010 7:12 am Post subject: |
|
|
Great, thanks. That resolved the issue. |
|
Back to top |
|
|
|