From: <lei...@us...> - 2014-07-18 09:49:24
|
Author: leithoff Date: Fri Jul 18 11:49:17 2014 New Revision: 47777 URL: http://svn.stylite.de/viewvc/egroupware?rev=47777&view=rev Log: * API/CKEditor: introduce new skins/themes Modified: trunk/phpgwapi/inc/class.egw_ckeditor_config.inc.php trunk/preferences/inc/class.preferences_hooks.inc.php trunk/preferences/lang/egw_de.lang Modified: trunk/phpgwapi/inc/class.egw_ckeditor_config.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.egw_ckeditor_config.inc.php?rev=47777&r1=47776&r2=47777&view=diff ============================================================================== --- trunk/phpgwapi/inc/class.egw_ckeditor_config.inc.php (original) +++ trunk/phpgwapi/inc/class.egw_ckeditor_config.inc.php Fri Jul 18 11:49:17 2014 @@ -57,6 +57,21 @@ ); /** + * Get available CKEditor Skins + * @return array + */ + public static function getAvailableCKEditorSkins() + { + return array( + 'kama' => lang('kama theme'), + 'moono' => lang('moono theme (default)'), + 'moonocolor' => lang('moono color theme'), + 'moono-dark' => lang('dark moono theme'), + 'bootstrapck' => lang('bootstrap theme for ckeditor'), + ); + } + + /** * Get font size from preferences * * @param array $prefs=null default $GLOBALS['egw_info']['user']['preferences'] @@ -170,18 +185,24 @@ //Convert old fckeditor skin names to new ones switch ($skin) { + case 'kama': + $skin = "kama"; + break; case 'silver': + case 'bootstrapck': + $skin = "bootstrapck"; + break; + case 'moono-dark': + $skin = "moono-dark"; + break; case 'office2003': - case 'moono': - $skin = "moono"; - break; - case 'kama': - case 'default': case 'moonocolor': $skin = "moonocolor"; break; + case 'moono': + case 'default': default: - $skin = "moonocolor"; + $skin = "moono"; } //Check whether the skin actually exists, if not, switch to a default Modified: trunk/preferences/inc/class.preferences_hooks.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/preferences/inc/class.preferences_hooks.inc.php?rev=47777&r1=47776&r2=47777&view=diff ============================================================================== --- trunk/preferences/inc/class.preferences_hooks.inc.php (original) +++ trunk/preferences/inc/class.preferences_hooks.inc.php Fri Jul 18 11:49:17 2014 @@ -67,11 +67,7 @@ 'br' => lang('br') ); - $rich_text_editor_skins = array( - 'kama' => lang ('Default theme'), - 'moono' => lang('Moono theme'), - 'moonocolor' => lang('Moono color theme'), - ); + $rich_text_editor_skins = egw_ckeditor_config::getAvailableCKEditorSkins(); $account_sels = array( 'selectbox' => lang('Selectbox'), Modified: trunk/preferences/lang/egw_de.lang URL: http://svn.stylite.de/viewvc/egroupware/trunk/preferences/lang/egw_de.lang?rev=47777&r1=47776&r2=47777&view=diff ============================================================================== --- trunk/preferences/lang/egw_de.lang (original) +++ trunk/preferences/lang/egw_de.lang Fri Jul 18 11:49:17 2014 @@ -11,6 +11,7 @@ are you sure you want to delete this category ? preferences de Sind sie sicher, dass sie diese Kategorie löschen wollen ? automatically start with this font preferences de Startet automatisch mit dieser Schrift automatically start with this font size preferences de Startet automatisch mit dieser SchriftgröÃe +bootstrap theme for ckeditor preferences de Bootstrap Schema für den CKEditor br preferences de br change a user password by passing the old and new passwords. returns true on success, false on failure. preferences de Ãndern Sie Ihr Passwort, indem Sie Ihr altes und neues Passwort angeben. Es wird TRUE zurückgegeben für eine erfolgreiche Ãnderung und FALSE wenn es nicht erfolgreich war. change password preferences de Passwort ändern @@ -22,6 +23,7 @@ click to select a color preferences de Anklicken um eine Farbe auszuwählen color preferences de Farbe country preferences de Land +dark moono theme preferences de Dunkles Moono Schema data exchange settings preferences de Einstellungen für den Datenaustausch date format preferences de Datumsformat default preferences de Vorgabe @@ -29,7 +31,6 @@ default font preferences de Standard-Schrift default font size preferences de Standard-SchriftgröÃe default preferences preferences de Voreinstellungen -default theme preferences de Vorgabe Farbschema delete categories preferences de Kategorie löschen deny following groups access to acl (grant access) admin de verweigere folgenden Gruppen den Zugriff in den ACL's deny following groups access to edit categories admin de verweigere folgenden Gruppen den Zugriff zum Ãndern der Kategorien @@ -72,13 +73,14 @@ in which country are you. this is used to set certain defaults for you. preferences de In welchen Land befinden Sie sich? Damit werden verschiedene Voreinstellungen für Sie vorgenommen. interface/template selection preferences de Auswahl der Benutzeroberfläche just clicking on the line, like a checkbox preferences de einfaches anklicken der Zeile, wie eine Checkbox +kama theme preferences de Kama Farbschema language preferences de Sprache look & feel preferences de Aussehen und Handhabung lowercase letters preferences de Kleinbuchstaben max matches per page preferences de maximale Treffer pro Seite max number of icons in navbar preferences de Maximale Anzahl von Icons in der Navigationsleiste -moono color theme preferences de Farbiges Schema (Mono) -moono theme preferences de Einfarbiges Schema (Mono) +moono color theme preferences de Farbiges Schema (Moono) +moono theme (default) preferences de Einfarbiges Schema (Moono) no default preferences de Keine Vorgabe no user-selection at all common de Ãberhaupt keine Benutzerauswahl note: this feature does *not* change your email password. this will preferences de Anmerkung: Diese Funktion ändert nicht Ihr E-Mail Passwort. @@ -86,7 +88,6 @@ notification settings preferences de Einstellungen der Benachrichtigungen number format preferences de Format von Zahlen numbers preferences de Zahlen -office 2003 theme preferences de Office 2003 old password and new password are the same. this is invalid. you must enter a new password preferences de Altes Passwort und Neues Passwort sind gleich. Dies ist ungültig. Sie müssen ein neues Passwort vergeben. p: paragraph preferences de p: Absatz password changed preferences de Ihr Password wurde geändert @@ -125,7 +126,6 @@ show number of current users preferences de Anzahl gegenwärtiger Benutzer anzeigen show text on navigation icons preferences de Text zu Icons in der Navigationsleiste anzeigen show_more_apps common de Mehr Anwendungen anzeigen -silver theme preferences de Silbern special characters preferences de Sonderzeichen spellchecker language addressbook de Sprache Rechtschreibprüfung text editor settings preferences de Einstellungen des Texteditors |