Oscar Scholten pushed to branch feature/chinese-translation at cms-community / hippo-cms
Commits: b7ee0a34 by Oscar Scholten at 2016-05-30T14:28:13+02:00 CMS-10127 Adding dummy Chinese translations for calendar widget - - - - - 8d266a2a by Oscar Scholten at 2016-05-30T14:29:31+02:00 CMS-10137 Adding dummy Chinese translations for CKEditor styles - - - - - 2 changed files: - api/src/main/java/org/hippoecm/frontend/plugins/yui/inc/hippo/281/datetime/datetime.js - richtext/ckeditor/plugins/src/main/resources/ckeditor/hippostyles.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 @@ -1,5 +1,5 @@ /* - * Copyright 2009-2013 Hippo B.V. (http://www.onehippo.com) + * Copyright 2009-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. @@ -280,6 +280,7 @@ if (!YAHOO.hippo.DateTime) { }, _localizeCalendar : function(calendar, lang) { + console.log(lang); var locale = { en: function(cfg) { // defaults to English @@ -310,6 +311,15 @@ if (!YAHOO.hippo.DateTime) { cfg.setProperty("WEEKDAYS_SHORT", ["di", "lu", "ma", "me", "je", "ve", "sa"]); cfg.setProperty("WEEKDAYS_1CHAR", ["d", "l", "m", "m", "j", "v", "s"]); cfg.setProperty("START_WEEKDAY", ["1"]); + }, + zh: function(cfg) { + cfg.setProperty("MONTHS_LONG", ["ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH"]); + cfg.setProperty("MONTHS_SHORT", ["ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH"]); + cfg.setProperty("WEEKDAYS_LONG", ["ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH"]); + cfg.setProperty("WEEKDAYS_MEDIUM",["ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH"]); + cfg.setProperty("WEEKDAYS_SHORT", ["ZH", "ZH", "ZH", "ZH", "ZH", "ZH", "ZH"]); + cfg.setProperty("WEEKDAYS_1CHAR", ["Z", "Z", "Z", "Z", "Z", "Z", "Z"]); + cfg.setProperty("START_WEEKDAY", ["1"]); } }[lang]; ===================================== 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 @@ -1,5 +1,5 @@ /* - * Copyright 2013 Hippo B.V. (http://www.onehippo.com) + * Copyright 2013-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. @@ -63,16 +63,16 @@ p: 'Normaal', pre: 'Voorgedefinieerd' }, - it: { - address: 'Indirizzo', - h1: 'Titolo 1', - h2: 'Titolo 2', - h3: 'Titolo 3', - h4: 'Titolo 4', - h5: 'Titolo 5', - h6: 'Titolo 6', - p: 'Normale', - pre: 'Preformattato' + zh: { + address: 'ZH', + h1: 'ZH', + h2: 'ZH', + h3: 'ZH', + h4: 'ZH', + h5: 'ZH', + h6: 'ZH', + p: 'ZH', + pre: 'ZH' } }, stylesSet, language, element, i, len; View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/compare/2c0e700dc0b0464c5a35123b5be7b02c83fd0413...8d266a2a9a406ffc2ff9d82b2a16c6abb14f271e
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn