Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Language="{UICulture}" in ResourceDictionary does

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support
View previous topic :: View next topic  
Author Message
Dierk Droth



Joined: 16 Nov 2010
Posts: 27

PostPosted: Fri Dec 03, 2010 10:52 am    Post subject: Language="{UICulture}" in ResourceDictionary does Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Dec 03, 2010 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dierk Droth



Joined: 16 Nov 2010
Posts: 27

PostPosted: Fri Dec 03, 2010 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Dec 04, 2010 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dierk Droth



Joined: 16 Nov 2010
Posts: 27

PostPosted: Sat Dec 04, 2010 6:51 am    Post subject: Reply with quote

Yes, thanks. That's what I did for now.

Thanks for addressing the issue in the product.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Dec 07, 2010 2:24 am    Post subject: Reply with quote

We have just released Version 2.3.8 that fixes this issue.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Dierk Droth



Joined: 16 Nov 2010
Posts: 27

PostPosted: Tue Dec 07, 2010 7:12 am    Post subject: Reply with quote

Great, thanks. That resolved the issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group