Browse Source

Added German (Switzerland) (de_CH) Part 3.

Fixed lint.

Thanks to translators and xet7 !
Lauri Ojansivu 4 years ago
parent
commit
6ff9c5b58d

+ 1 - 1
client/components/activities/comments.js

@@ -3,7 +3,7 @@ const commentFormIsOpen = new ReactiveVar(false);
 BlazeComponent.extendComponent({
   onDestroyed() {
     commentFormIsOpen.set(false);
-    $(".note-popover").hide();
+    $('.note-popover').hide();
   },
 
   commentFormIsOpen() {

+ 1 - 1
client/components/cards/cardDescription.js

@@ -3,7 +3,7 @@ const descriptionFormIsOpen = new ReactiveVar(false);
 BlazeComponent.extendComponent({
   onDestroyed() {
     descriptionFormIsOpen.set(false);
-    $(".note-popover").hide();
+    $('.note-popover').hide();
   },
 
   descriptionFormIsOpen() {

+ 2 - 4
client/components/main/editor.js

@@ -49,7 +49,7 @@ Template.editor.onRendered(() => {
           ['para', ['ul', 'ol', 'paragraph']],
           ['table', ['table']],
           //['insert', ['link', 'picture', 'video']], // iframe tag will be sanitized TODO if iframe[class=note-video-clip] can be added into safe list, insert video can be enabled
-          ['insert', ['link']],//, 'picture']], // modal popup has issue somehow :(
+          ['insert', ['link']], //, 'picture']], // modal popup has issue somehow :(
           ['view', ['fullscreen', 'help']],
         ];
     const cleanPastedHTML = function(input) {
@@ -247,9 +247,7 @@ Template.editor.onRendered(() => {
               ['float', ['floatLeft', 'floatRight', 'floatNone']],
               ['remove', ['removeMedia']],
             ],
-            link: [
-              ['link', ['linkDialogShow', 'unlink']]
-            ],
+            link: [['link', ['linkDialogShow', 'unlink']]],
             table: [
               ['add', ['addRowDown', 'addRowUp', 'addColLeft', 'addColRight']],
               ['delete', ['deleteRow', 'deleteCol', 'deleteTable']],

+ 2 - 0
client/components/main/layouts.js

@@ -77,6 +77,8 @@ Template.userFormsLayout.helpers({
       } else if (lang.name === 'ar-EG') {
         // ar-EG = Arabic (Egypt), simply Masri (مَصرى, [ˈmɑsˤɾi], Egyptian, Masr refers to Cairo)
         name = 'مَصرى';
+      } else if (lang.name === 'de-CH') {
+        name = 'Schwiizerdütsch';
       } else if (lang.name === 'fa-IR') {
         // fa-IR = Persian (Iran)
         name = 'فارسی/پارسی (ایران‎)';

+ 2 - 0
client/components/users/userHeader.js

@@ -174,6 +174,8 @@ Template.changeLanguagePopup.helpers({
       } else if (lang.name === 'fa-IR') {
         // fa-IR = Persian (Iran)
         name = 'فارسی/پارسی (ایران‎)';
+      } else if (lang.name === 'de-CH') {
+        name = 'Schwiizerdütsch';
       } else if (lang.name === 'fr-BE') {
         name = 'Français (Belgique)';
       } else if (lang.name === 'fr-CA') {