Find out OS language via datestr command?
11 views (last 30 days)
i wonder if the datestr command can help finding out the operating system's basic language.
I can only test the German and English version at my system via:
If the result is "may", it is English. If it is "mai", it is German.
I wonder if this also works in Spanish and Swedish home countries e.g.. Who can help me find out? What local settings are respected inside the datestr command?
To be more precise: I want information about the language, which is used to display the Windows 7 startmenu-ribbon with "documents", "images", "music", "computer", "system", ... or (German): "Dokumente", "Bilder", "Musik", ...
Jan on 4 Jun 2013
Edited: Jan on 5 Jun 2013
I assume this is the way datestr() gets the information also.
[EDITED] What about the Java method:
Or perhaps (I cannot test it currently):
locale = java.util.Locale.getDefault();
language = locale.getLanguage()
More Answers (2)
Friedrich on 5 Jun 2013
Not sure which one is needed exactly here. Could someone with an non German OS try that?