google-code-export / get-simple-cms

Automatically exported from code.google.com/p/get-simple-cms
GNU General Public License v3.0
1 stars 0 forks source link

CKEditor should use the language selected in GetSimple settings #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In latest stable version (2.03), if I select some other language in GetSimple 
administration than default (English), CKEditor still shows its hints and 
options in English. While language codes differ in CKEditor and GetSimple, it 
should not be very hard to pass current language variable to CKEditor.

Original issue reported on code.google.com by jos...@gmail.com on 31 Oct 2010 at 5:10

GoogleCodeExporter commented 9 years ago
is our file naming-convention the same as CKEditor? meaning, can we always 
assume that we can take the first 2 characters of our language php file (ex: 
"en" from en_US.php)

I unfortunately don't think we can. 

The good thing right now, there is the way to change it based on a setting 
inside gsconfig.php:

# WYSIWYG editor language (default en)
#define('GSEDITORLANG', 'en');

Original comment by ccagle8 on 7 Nov 2010 at 1:07

GoogleCodeExporter commented 9 years ago
How about adding GSEDITORLANG variable to translation file, that by selecting 
different translation CKEditor language would change automatically?

Original comment by jos...@gmail.com on 7 Nov 2010 at 8:58

GoogleCodeExporter commented 9 years ago
thats a great idea. i will get it implemented for the next version

Original comment by ccagle8 on 7 Nov 2010 at 1:09

GoogleCodeExporter commented 9 years ago
This is a configuration that can be set in gsconfig.php: GSEDITORLANG

Original comment by ccagle8 on 9 Feb 2011 at 1:35

GoogleCodeExporter commented 9 years ago
Actually, it would be more convenient to have GSEDITORLANG variable in language 
files. That way, when user changes language in settings, CKEditor language 
would change too.

Original comment by jos...@gmail.com on 16 Feb 2011 at 3:02