Friday, July 30, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: clim7777
New Today New Today: 11
New Yesterday New Yesterday: 18
User Count Overall: 10082

People Online People Online:
Visitors Visitors: 7
Members Members: 2
Total Total: 9

Online Now Online Now:
01: jasper.yeh
02: jjames

ClearCanvas Community Forums

UI localization
Last Post 2010-01-12 02:39 AM by Zurko. 11 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
mike65
New Member
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
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
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
Senior Member
Posts:420
Avatar

--
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
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
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
Senior Member
Posts:420
Avatar

--
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
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
Senior Member
Posts:420
Avatar

--
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
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
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
New Member
Posts:4

--
2010-01-12 02:39 AM  
Is there anybody who cares to share localization experience?
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2010 ClearCanvas Inc.