|
|||
|
Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Scanning DataTemplate / ResourceDictionary - WPF
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| Scanning DataTemplate / ResourceDictionary - WPF - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
michael.sync Member
|
Hello, I started evaluating Sisulizer Enterprise version today. Based on your website, it seems it's pretty cool tool. ?When I started playing it for a whie, I got two questions in my mind. 1) We are using Datatemplate/ResourceDictionary in our WPF application. I tried to scan our sln file, csproj and xaml file with Sisu but it is not able to scan anything. Is it because Sisulizer doesn't support WPF DataTemplate? 2) There are some strings that we set to the control at runtime from code-behind file. Is Sisulizer able to scan those strings too?
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Janusz Grzybek Super Moderator
|
Hello, Could you send on support (at) Sisulizer.fi email address your Visual Studio project with included WPF DataTemplate. Your files could help us faster to find solution for your issue. Best regards, Janusz
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
michael.sync Member
|
Okay. You can simply create one datatemplate and scan it with your tool. If you are not sure how to create a datatemplate in WPF, please use the following. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:model="clr-namespace:mynamespace" xmlns > <DataTemplate DataType="{x:Type model:myViewModel}" > <TextBlock Text="Here is string #1" /> <Button Content="Save" /> </DataTemplate> </ResourceDictionary> OR You can download the sample project from this link. http://blogs.southworks.net/jdominguez/2008/09/presentation-model-with-datatemplates-in-compositewpf-prism-sample/ Thanks.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
sakhatovsky Member
|
is there any updates on that?
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, we asked R&D about that issue. While our CTO is here at the Tech-Ed EMEA in Barcelona answers might be delayed. Regarding to issue #2: Sorry, you can only scan and write strings in the resources of your application. It can not read and write "hard-coded" strings placed in your source code. But if you move the strings into your resources Sisulizer can easily localize them as your strings placed in dialogs. If you need translations on the fly you could place strings in XML, localize that with Sisulizer and at runtime you load the strings from them XML. This is useful for example if you need German transations (e.g. to print German invoices) while your GUI of your CRM is running in French. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| Current time is 03:09 pm | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Scanning DataTemplate / ResourceDictionary - WPF | |
Sisulizer software localization tool - Three simple steps to localize