i am using DevExpress XtraForm and I set a localizable property to true now i have three language English Arabic Franch each one with their resource file
and i add this code to the Program
if(Properties.Settings.Default.Language== "Français")
{
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-fr");
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-fr");
}
else if (Properties.Settings.Default.Language == "العربية")
{
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-ar");
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-ar");
}
else
{
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
}
all work fine . But I couldn't find a way to localize XtraMessageBox Strings for example
XtraMessageBox.Show("Remplissez tous les champs, s'il vous plaît ", "Manque de données", MessageBoxButtons.OK, MessageBoxIcon.Warning);
thanks in advance.