From f3788e2cda54177397423fdb4364c19dc7b9cae3 Mon Sep 17 00:00:00 2001 From: Leandro Regueiro Date: Tue, 23 Aug 2016 19:11:50 +0200 Subject: [PATCH] Simplify Danish and Arabic translations This closes https://github.com/select2/select2/pull/4547. --- src/js/select2/i18n/ar.js | 12 +++--------- src/js/select2/i18n/da.js | 10 +++------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/js/select2/i18n/ar.js b/src/js/select2/i18n/ar.js index b7d44f47..be9ea68c 100644 --- a/src/js/select2/i18n/ar.js +++ b/src/js/select2/i18n/ar.js @@ -7,24 +7,18 @@ define(function () { inputTooLong: function (args) { var overChars = args.input.length - args.maximum; - var message = 'الرجاء حذف ' + overChars + ' عناصر'; - - return message; + return 'الرجاء حذف ' + overChars + ' عناصر'; }, inputTooShort: function (args) { var remainingChars = args.minimum - args.input.length; - var message = 'الرجاء إضافة ' + remainingChars + ' عناصر'; - - return message; + return 'الرجاء إضافة ' + remainingChars + ' عناصر'; }, loadingMore: function () { return 'جاري تحميل نتائج إضافية...'; }, maximumSelected: function (args) { - var message = 'تستطيع إختيار ' + args.maximum + ' بنود فقط'; - - return message; + return 'تستطيع إختيار ' + args.maximum + ' بنود فقط'; }, noResults: function () { return 'لم يتم العثور على أي نتائج'; diff --git a/src/js/select2/i18n/da.js b/src/js/select2/i18n/da.js index 896d6591..2ce169ff 100644 --- a/src/js/select2/i18n/da.js +++ b/src/js/select2/i18n/da.js @@ -7,16 +7,12 @@ define(function () { inputTooLong: function (args) { var overChars = args.input.length - args.maximum; - var message = 'Angiv venligst ' + overChars + ' tegn mindre'; - - return message; + return 'Angiv venligst ' + overChars + ' tegn mindre'; }, inputTooShort: function (args) { var remainingChars = args.minimum - args.input.length; - var message = 'Angiv venligst ' + remainingChars + ' tegn mere'; - - return message; + return 'Angiv venligst ' + remainingChars + ' tegn mere'; }, loadingMore: function () { return 'Indlæser flere resultater…'; @@ -37,4 +33,4 @@ define(function () { return 'Søger…'; } }; -}); +}); \ No newline at end of file