Returns the language used for the Rhino interface. The current language is returned as a locale ID, or LCID, value.
rhinoscriptsyntax.LocaleID()
rhinoscript.application.LocaleID()
None.
Number |
Rhino's current locale ID, or LCID. The languages currently supported by Rhino are as follows:
|
import rhinoscriptsyntax as rs
lcid = rs.LocaleID()
if lcid==1029:
print "message in Czech"
elif lcid==1031:
print "message in German"
elif lcid==1033:
print "message in English"
elif lcid==1034:
print "message in Spanish"
elif lcid==1036:
print "message in Italian"
elif lcid==1040:
print "message in Japanese"
elif lcid==1042:
print "message in Korean"
elif lcid==1045:
print "message in Polish"