X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Fui_languages.html;h=0832a9afadb3621500e39d0dbe13c2a9b487f88c;hp=e7c2e1535e33d4d11a3f77ed0023a0b7de8582a9;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_samples/ui_languages.html b/_samples/ui_languages.html index e7c2e15..0832a9a 100644 --- a/_samples/ui_languages.html +++ b/_samples/ui_languages.html @@ -1,11 +1,11 @@ - User Interface Globalization - CKEditor Sample + User Interface Globalization — CKEditor Sample @@ -13,9 +13,40 @@ For licensing, see LICENSE.html or http://ckeditor.com/license -

- CKEditor Sample +

+ CKEditor Sample — User Interface Languages

+
+

+ This sample shows how to automatically replace <textarea> elements + with a CKEditor instance with an option to change the language of its user interface. +

+

+ It pulls the language list from CKEditor _languages.js file that contains the list of supported languages and creates + a drop-down list that lets the user change the UI language. +

+

+ By default, CKEditor automatically localizes the editor to the language of the user. + The UI language can be controlled with two configuration options: + + language and + defaultLanguage. The defaultLanguage setting specifies the + default CKEditor language to be used when a localization suitable for user's settings is not available. +

+

+ To specify the user interface language that will be used no matter what language is + specified in user's browser or operating system, set the language property: +

+
CKEDITOR.replace( 'textarea_id',
+	{
+		// Load the German interface.
+		language: 'de'
+	});
+

+ Note that textarea_id in the code above is the id attribute of + the <textarea> element to be replaced. +

+