Getting locale information from string
hi to every one
i have a string in my application that contains language name e.g "persian","english","arabic"
now i want to get its locale name e.g for "persian" it is "fa" and for "english" it is "en"
how can i get it?
You'll need either a conversion function or store it as meta data with the displayed string. (I'd prefer the latter).
i don;t know how can i use meta date
can you give me an example?