LocaleID

Returns the language used for the Rhino interface.  The current language is returned as a locale ID, or LCID, value.

Syntax

rhinoscriptsyntax.LocaleID()

rhinoscript.application.LocaleID()

Parameters

None.

Returns

Number

Rhino's current locale ID, or LCID.  The languages currently supported by Rhino are as follows:

Value

Description

1029

Czech

1031

German - Germany

1033

English - United States

1034

Spanish - Spain

1036

French - France

1040

Italian - Italy

1041

Japanese

1042

Korean

1045

Polish

Example

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"

Also See