Oscar Scholten pushed to branch release/4.0 at cms-community / hippo-cms
Commits: fb01f363 by Oscar Scholten at 2016-08-05T17:13:46+02:00 CMS-10330 bumping CKEditor version to version that includes the Spanish translations - - - - - 05eda536 by Oscar Scholten at 2016-08-05T17:14:47+02:00 CMS-10330 adding hardcoded Spanish labels - - - - - 4 changed files: - api/src/main/java/org/hippoecm/frontend/plugins/yui/inc/hippo/281/datetime/datetime.js - pom.xml - richtext/ckeditor/plugins/src/main/resources/ckeditor/hippostyles.js - + richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/lang/es.js Changes: ===================================== api/src/main/java/org/hippoecm/frontend/plugins/yui/inc/hippo/281/datetime/datetime.js ===================================== --- a/api/src/main/java/org/hippoecm/frontend/plugins/yui/inc/hippo/281/datetime/datetime.js +++ b/api/src/main/java/org/hippoecm/frontend/plugins/yui/inc/hippo/281/datetime/datetime.js @@ -311,6 +311,15 @@ if (!YAHOO.hippo.DateTime) { cfg.setProperty("WEEKDAYS_1CHAR", ["d", "l", "m", "m", "j", "v", "s"]); cfg.setProperty("START_WEEKDAY", ["1"]); }, + es: function(cfg) { + cfg.setProperty("MONTHS_LONG", ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]); + cfg.setProperty("MONTHS_SHORT", ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"]); + cfg.setProperty("WEEKDAYS_LONG", ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]); + cfg.setProperty("WEEKDAYS_MEDIUM",["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"]); + cfg.setProperty("WEEKDAYS_SHORT", ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sá"]); + cfg.setProperty("WEEKDAYS_1CHAR", ["D", "L", "M", "MX", "M", "V", "D"]); + cfg.setProperty("START_WEEKDAY", ["1"]); + }, zh: function(cfg) { cfg.setProperty("MONTHS_LONG", ["一月份", "二月份", "三月份", "四月份", "五月份", "六月份", "七月份", "八月份", "九月份", "十月份", "十一月份", "十二月份"]); cfg.setProperty("MONTHS_SHORT", ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]); ===================================== pom.xml ===================================== --- a/pom.xml +++ b/pom.xml @@ -127,7 +127,7 @@ <yui.sources.version>1.01.12</yui.sources.version> <hippo.htmldiff.version>1.01.04</hippo.htmldiff.version> <hippo.jcrdiff.version>1.01.05</hippo.jcrdiff.version> - <hippo.ckeditor.version>4.5.5-h2</hippo.ckeditor.version> + <hippo.ckeditor.version>4.5.5-h3-SNAPSHOT</hippo.ckeditor.version> <jslint.plugin.version>1.0.1</jslint.plugin.version> <sf.htmlcleaner.version>2.12</sf.htmlcleaner.version> ===================================== richtext/ckeditor/plugins/src/main/resources/ckeditor/hippostyles.js ===================================== --- a/richtext/ckeditor/plugins/src/main/resources/ckeditor/hippostyles.js +++ b/richtext/ckeditor/plugins/src/main/resources/ckeditor/hippostyles.js @@ -63,6 +63,17 @@ p: 'Normaal', pre: 'Voorgedefinieerd' }, + es: { + address: 'Dirección', + h1: 'Encabezado 1', + h2: 'Encabezado 2', + h3: 'Encabezado 3', + h4: 'Encabezado 4', + h5: 'Encabezado 5', + h6: 'Encabezado 6', + p: 'Normal', + pre: 'Texto preformateado' + }, zh: { address: '地址', h1: '标题一', ===================================== richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/lang/es.js ===================================== --- /dev/null +++ b/richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/lang/es.js @@ -0,0 +1,19 @@ +/* + * Copyright 2016 Hippo B.V. (http://www.onehippo.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +CKEDITOR.plugins.setLang( 'hippopicker', 'es', { + imageTooltip: 'Imagen', + internalLinkTooltip: 'Enlace interno' +}); View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/compare/f40c16203661d820955652b34bd30837abdda427...05eda536cbf4aeb2683911381ea88b7cc2f881f5
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn