mike65
 New Member Posts:4
 |
| 2009-10-04 06:54 AM |
|
Hi, I am a developer from Russia. Thank you for the Great Job!
My question: Is it possible to programmatically localize the Workstation UI from English to Russian (or any other language) without modification of resource strings in SR.resources files?
How to create that kind of Plugin?
I found function LocalizeString in framework, but how implement it?
Some pieces of code, please.
|
|
|
|
|
sezerpal
 Veteran Member Posts:89
 |
| 2009-10-04 07:11 AM |
|
Hi, Hold on, we work on that for Turkish. There will be an XML file as disctionary. I am not the developer, in a few weeks, we'll see the results. Sezer Pal |
|
|
|
|
stewart
 Senior Member Posts:1387
 |
| 2009-10-08 12:43 AM |
|
Hi Mike, although I don't have any experience with this personally, there is support for it in .NET. If you do a web search for '.NET satellite assemblies', you should find some helpful resources. Also, since I've never tried it, I have no information on how well it will work with CC, but theoretically it should work ok. Hope this helps, Stewart |
|
|
|
|
jasper.yeh
 Senior Member Posts:420

 |
| 2009-10-08 12:17 PM |
|
Hi Guys,
There's a good explanation of how satellite assemblies works here
Basically, you will want to download our source tree, find each .resx file (most localizable strings are in files called SR.resx, others may also contain GUI-related things like size of a label on a form) and translate them, saving the translations as *.ru.resx (language codes off MSDN). The resx files for each library are then compiled into a separate "satellite assembly" which will have your language code in it. The selection of language at runtime depends on the computer's local settings.
Hope this helps, |
|
| // Jasper |
|
|
norman
 Senior Member Posts:792
 |
| 2009-10-08 12:53 PM |
|
Hi, One of the things we want to do in the future is to add the appropriate framework hooks to make localization as easy as possible. Ideally, you want to have a single file that a translator can edit to localize all resource strings. N. |
|
|
|
|
mike65
 New Member Posts:4
 |
| 2009-10-20 09:06 AM |
|
Hi, Gays!
I'm read the article from Jasper and localize all SR.resx and puts satellite assemblies in CC \plugin\ru directory for russian culture. This works fine!
But all forms in ClearCanvas.xxx.xxx.View.WinForms are marked as 'Localizable=false' in CC source code. Why???
To construct localization dll's, I need marked them Localizable=true and recompile CC-source. But I won't to do this!
Why CC developers marks forms as non-localizable?
|
|
|
|
|
jasper.yeh
 Senior Member Posts:420

 |
| 2009-10-20 09:52 PM |
|
Hi Mike,
Hmm, I think that's an oversight on our part. I've entered ticket #5401 to have that fixed.
Thanks! |
|
| // Jasper |
|
|
mike65
 New Member Posts:4
 |
| 2009-10-21 01:33 AM |
|
Hi, Jasper! Thank you for reply!
About forms localization:
If I marks some forms in CC's source as "Localizable=true", VS2008 does not generate localization code for UI controls, developed by CC group (for example, for "EditBox with label" no resource generated for "Text" property). Why??? Is it VS mistake or CC control mistake?
|
|
|
|
|
jasper.yeh
 Senior Member Posts:420

 |
| 2009-10-21 02:51 PM |
|
Hi Mike,
I suspect there is probably something that needs to be done on the Text property on the UI control to make this possible. Maybe a missing attribute or something - I'm not 100% sure at the moment. I'll add a note to the ticket for this to be specifically addressed. For the moment, as you're already setting the Localizable=true property yourself, you can try forcing the Text property to be bound to a resource string.
Hope this helps! |
|
| // Jasper |
|
|
ghaylen
 Basic Member Posts:18
 |
| 2009-11-22 05:05 AM |
|
Hi Mike, Did you succeed to do the localisation in the Russian language? If yes, could you please let me know, step by step how you did it, as I would like to do the same in the french language? Many thanks in advance. Regards, Ghaylen |
|
|
|
|
ghaylen
 Basic Member Posts:18
 |
| 2009-12-03 09:28 AM |
|
Hello All, Looks like Mike cannot help with this. Any body else can help me with this? Many thanks in advance. Best regards. |
|
|
|
|
Zurko
 New Member Posts:4
 |
| 2010-01-12 02:39 AM |
|
Is there anybody who cares to share localization experience?
|
|
|
|
|