localization - Localizing strings in code in WPF -



localization - Localizing strings in code in WPF -

basically, have localize this:

messagebox.show("hello");

so depending on civilization should show "ciao", "hola", "bonjour", has done in code, can't move gui.

i know how localize gui (with locbaml), doesn't work need, can imagine similar locbaml (expect part generates assembly maybe). need pinpoint in right direction.

thanks!

if strings localized using resource dictionaries, can utilize just

messagebox.show((string)application.current.resources["ids_hello"]);

this approach has little disadvantage text won't alter automatically if application's language changed during messagebox.show. (mind dynamic localization requires anyway additional effort side.)

wpf localization

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -