浏览代码

Update Galician translation

Leandro Regueiro 8 年之前
父节点
当前提交
8fcc6202c3
共有 1 个文件被更改,包括 10 次插入22 次删除
  1. 10 22
      src/js/select2/i18n/gl.js

+ 10 - 22
src/js/select2/i18n/gl.js

@@ -1,45 +1,33 @@
 define(function () {
   // Galician
   return {
+    errorLoading: function () {
+      return 'Non foi posíbel cargar os resultados.';
+    },
     inputTooLong: function (args) {
       var overChars = args.input.length - args.maximum;
 
-      var message = 'Elimine ';
-
       if (overChars === 1) {
-        message += 'un carácter';
-      } else {
-        message += overChars + ' caracteres';
+        return 'Elimine un carácter';
       }
-
-      return message;
+      return 'Elimine ' + overChars + ' caracteres';
     },
     inputTooShort: function (args) {
       var remainingChars = args.minimum - args.input.length;
 
-      var message = 'Engada ';
-
       if (remainingChars === 1) {
-        message += 'un carácter';
-      } else {
-        message += remainingChars + ' caracteres';
+        return 'Engada un carácter';
       }
-
-      return message;
+      return 'Engada ' + remainingChars + ' caracteres';
     },
     loadingMore: function () {
       return 'Cargando máis resultados…';
     },
     maximumSelected: function (args) {
-      var message = 'Só pode ';
-
       if (args.maximum === 1) {
-        message += 'un elemento';
-      } else {
-        message += args.maximum + ' elementos';
+        return 'Só pode seleccionar un elemento';
       }
-
-      return message;
+      return 'Só pode seleccionar ' + args.maximum + ' elementos';
     },
     noResults: function () {
       return 'Non se atoparon resultados';
@@ -48,4 +36,4 @@ define(function () {
       return 'Buscando…';
     }
   };
-});
+});