Hi!
I've wrote my own class for CF and also added .XMTA file for it's design-time. Now I have a problem: how to add, for example, CategoryAttribute with different value for other languages How it is made in CF designers How, for example, System.Data.Constraint.ConstraintName property has attribute Microsoft.CompactFramework.Build.SRCategory

Culture specific design attributes for CF classes
Stephaen marois
Thank you, Jagadisk, for an answer, but can you please explain these steps ...
J>1. Create multiple xmta files, one for each culture
Ok, that's clear :)
J>2. Compile each of the xmta files in command prompt.
That's almost clear... I have to recompile project, but reference xmta files for specific culture, instead of default
J>3. Author your install package in such a way that it chooses the right asmmeta file for a specific culture.
And this is completely unclear
How to do this Does this mean that culture of used asmmeta files could be set only on install, and cannot be changed later
How does Microsoft do so, that when changing Culture on device, CF loads error messages from files installed by System_SR_xx cabs for this culture Or Am I wrong and these files are simply replaced and CF does not make any selection
Regards, IP.
frli01
Hi IP,
The XMTA file and the generated Asmmeta file is not culture aware.
However, nothing prevents you from having multiple Asmmeta files for different cultures. The following might work for you:
1. Create multiple xmta files, one for each culture
2. Compile each of the xmta files in command prompt.
3. Author your install package in such a way that it chooses the right asmmeta file for a specific culture.
Hope this helps.
Regards,
Jagadisk
mike23342342xxxrfads2233
You may want to install asmmeta files for all the cultures you created and reference the one based on the current culture. When the culture is changed on the device your program will load the correct asmmeta file for the new culture.
This helps
Manav