I have project and it supports 4 languages but now customer wants one more language. It is Arabic. I have no idea how to display Arabic in Labels and TextBoxes.
I know Arabic is written from right to left and its starting point is the right side of the label ord textview.
here is my sample code. this code show english,german and arabic....
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.SelectedItem.ToString().Equals("en-GB"))
{
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en-GB");
label1.Text= FormLabels.test1;
label2.Text = FormLabels.test2;
}
else if (comboBox1.SelectedItem.ToString().Equals("de-DE"))
{
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("de-DE");
label1.Text = FormLabels.test1;
label2.Text = FormLabels.test2;
}
else if (comboBox1.SelectedItem.ToString().Equals("ar"))
{
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ar");
label1.Text = FormLabels.test1;
label2.Text = FormLabels.test2;
}
}
How am I supposed to display Arabic characters and display the test from right to left?