Multiple language support in windows phone - silverlight

I'm developing windows phone 8 application which supports two language, English and Spanish.
In my application I have one XAML page which contains WebBrowser control. The problem is when I change phone language to Spanish then all text is displayed in Spanish except the content of WebBrowsercontrol.

The WebBrowser control uses the localization settings for the browser, as set by the user. It can be different from the application localization.
Also, once changed, make sure you don't have any cookies persisting the language selection.

Related

Windows phone Silverlight user controls

I am starting to develop a Windows phone (Silverlight) 8.1 application and one thing I wanted to create was a user control. I noticed on the normal windows phone templates for a WP project in VS2013, there is a template for user controls, but not when in a Silverlight 8.1 project. What would be a good starting point for this? Is it the same as a windows phone user control? I am having a hard time finding tutorials on how to do this specifically for Silverlight.
This is a new Windows Phone 8.1 Silverlight project and these are the options you see. I believe a Windows Phone User Control is what you want.
The naming conventions changed probably because the new non-Silverlight Windows Phone User Control uses the WinRT naming convention, using: instead of clr-namespace:, so these components are not shareable between Silverlight and non-Silverlight projects.

Silverlight 5 input language override issue in Chrome/Firefox

Working on a fairly large Silverlight project I have an issue with Chrome/Firefox not respecting the input language set by the user.
In IE, if I change the keyboard language to Arabic, the input is in Arabic. If I do this while running the Silverlight application in Chrome/Firefox, then it doesn't matter what keyboard settings I have, the input is still in English.
Is there something way to override the input language which I am not seeing? I ask because if I create a new SL project with only a TextBox on the form, then all behaviour is correct.
Do you have param name="windowless" value="true" in your Silverlight param configuration? If yes, then remove this line and try again.
The property windowless has a problem with Chrome and Firefox with characters with accents, still I could not solve the problem.

Localize image in windows phone 7

I am developing a windows phone application. Here we use localization in our app. We currently supporting 2 languages in our app. Texts are changed to the selected language by using resource files. But I need to change some images that showing in my app based on the language. Now I am doing it by checking the phone culture pragmatically and change the image path. Is it possible to localize image files too as the same way we localize the strings ?. If it possible how can I do that? .
I googled it, but didn't got any information about localizing images in an application in windows phone.
You can place the uri for your image to a resource file just like you do with strings (different uri in different resource file for different language) and use it with binding.

Virtual OnScreenKeyboard in Silverlight

I'm trying to build an OnScreenKeyboard to fill Textboxes in a Silverlight Web Application. The Keyboard has to be multilingual so that when I have set the language to chinese and enter a small letter like an "a", a combobox has to appear with the chinese signs.
The OSK under Windows XP is too small for the touchscreen which I'm using.
I already built a Keyboard with Buttons that contain strings but they do not simulate the Keypress Event like a real Keyboard.
Is there a similar function like System.Windows.Forms.SendKeys for Silverlight? This is only usable in Windows.Forms which I can not use in Silverlight.
I'm working with Expression Blend 3 and Visual Studio 2008.(Silverlight Version 3)
I would be very glad for some help.
Regards Knut
Here is an article describes how to attached Kyeboard behavior to UI controls http://www.orktane.com/Blog/post/2009/11/09/Virtual-Input-Keyboard-Behaviours-for-Silverlight.aspx

Is it possible to install different fonts on windows phone 7 emulator?

I made a demo application using Silverlight where I have given certain Unicode of Hindi language to be displayed on a textbox as a text. ऋ ऊ उ ई इ आ, unicode positions are '\u090B', '\u090A', '\u0909', '\u0908', '\u0907','\u0906' respectively.
So when I pass this whole thing as a string to the textbox.text property it shows at the debug time as the exact value is to the textbox but when I go through the emulator the display shows empty boxes.
Is this require installation of different fonts on emulator? If so then how can I do this? Is it possible to build an application for Windows Phone 7 which can support different languages?
You can embed fonts in your WP7 applications in the same way that you embed fonts for any Silverlight application as decribed in the Embedding fonts in Silvelright blog post by Paul Yanez. You simply check the Embed checkbox in the Text pane in Expression Blend.
NOTE: You will need to make sure that you are licensed to use the font in this way or that it is free for use in this way.

Resources