Reputation: 148
I'm currently working on adding Arabic support into a product which is running a .Net Compact Framework application on top of Windows CE 5.0. Arabic support has been added into the OS and the .Net application is aware of the AR-sa locale. Arabic translations for the UI elements are stored in a resource file, in which they are the correct way round and read correctly according to one of my colleagues. When the application runs, it looks like all the characters are reversed which makes it look like either the OS or the application is mirroring them to give the RTL support. When we reverse the strings in the resource file, it still appears the same.
Does anyone have any ideas on what could possibly be going wrong and if there is any solution?
Upvotes: 1
Views: 1664
Reputation: 67168
Are you getting RTL behavior in any control? In the CF, some controls will give RTL, some won't. Daniel Moth blogged a workaround for those that don't (using CE 5.0 as well).
Is your entire OS set up as RTL right now (i.e. are system dialogs, etc showing RTL, or still LTR)? If the system isn't already doing RTL, then you need to verify support and that your OS locale is set since Control.RightToLeft
isn't supported. It's possible that you might use the P/Invokes Daniel outlines (link above) to force controls into RTL when the system isn't.
Upvotes: 1