Skip to content
kerrishotts edited this page Nov 13, 2012 · 1 revision

(part of PKUTIL)

Return Type: DOM Element

Parameters: ID ( string )

Returns the DOM Element corresponding to the requested ID appended by the user's current locale. For example, given an element with ID "testDiv" and a user locale of "fr-FR", $geLocale("testDiv") would return an element with an ID of "testDiv_fr-FR" if it existed. If it didn't, "testDiv_fr" would be returned. If that didn't exist, "en-US" and "en" would be tried next. Finally if no element is returned, "testDiv" would be returned instead.

The attempted IDs would be as follows:

testDiv_fr-FR
testDiv_fr
testDiv_en-US
testDiv_en
testDiv

For example:

var e = $geLocale ( "theElement" );

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally