internationalization - Silverlight - Paramterised resource values for Internationalisation -


I am running into a problem that does not have any sensible / customizable solutions that I am happy with. Silverlight and Internationalization - a swamp in creating

I have a set of resources files that have a translated string.

In a simple case, I can declare language resources and bind them. Content of a value within the strongly typed resources is fine - many examples of this have been revealed.

A less simple matter is that the parameters of the string can be, so I have to put a value in the string to display it, which can be a data binding in itself.

A more complex scenario is a string with several parameters.

You can argue that VM should provide this capability, but I am unhappy because UX breaks the split between designer and developer, for which the developer has an asset / method on VM Requires UI implementation, which requires UI. With more information on this, custom tooltip is formally declaratory and adds better explanations with values ​​from datacontext. Explanations are stored in resources and are either derived from the existing data reference or the elements binding.

If I want to run each string through VM, then it is necessary to do something for this VM changes equally if the source of the parameters will be from the other elements, VM is essentially Formatted string is not in the position to provide.

How have people been rounded on this issue?

a.

This question can be completely answered, Consider that you should set the property of your UI container language (perhaps your top-level usercut square). After that all binding should use your requested localization. Look at this article, which is related to WPF, but uses the techniques that apply to the serial lights:


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -