Skip to content

Commit

Permalink
Add Punjabi translations (pa) (select2#5831)
Browse files Browse the repository at this point in the history
* Added i18n: Punjabi language

* Update pb.js

Typo missing semi-colon fixed.

* Update pb.js

Rephrasing sentences for making sentence acceptable by 'Linter'.

* Update pb.js

Fixing code according to 'CI / Linting' test.

* Update pb.js

Rephrase sentence for passing 'CI/Linting' test.

* Update pb.js

* Added i18n language, Punjabi (pa)

Renamed file name ( from **pb** to **pa** ) according to i18n standard.
  • Loading branch information
adsingh14 authored Apr 19, 2020
1 parent f7cbd2c commit c6d8a13
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/js/select2/i18n/pa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
define(function () {
// Punjabi
return {
errorLoading: function () {
return 'ਨਤੀਜੇ ਲੋਡ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕਦੇ ।';
},
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

var charCount = (overChars != 1) ? ' ਅੱਖਰਾਂ ਨੂੰ ' : ' ਅੱਖਰ ';

var message = 'ਕ੍ਰਿਪਾ ਕਰਕੇ ' + overChars + charCount + 'ਮਿਟਾਓ ।';

return message;
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;

var charCount = (remainingChars > 1) ? ' ਅੱਖਰਾਂ ' : ' ਅੱਖਰ ';

/**
* @param {string} messageX [X:A-Z]
* @description: Sentence splitted into sub-parts
*/
var subPartA = 'ਕ੍ਰਿਪਾ ਕਰਕੇ ';
var subPartB = remainingChars + ' ਜਾਂ ' + remainingChars;
var subPartC = ' ਤੋਂ ਵੱਧ' + charCount +'ਦੀ ਵਰਤੋਂ ਕਰੋ ।';

var message = subPartA + subPartB + subPartC;

return message;
},
loadingMore: function () {
return 'ਹੋਰ ਨਤੀਜੇ ਲੋਡ ਹੋ ਰਹੇ ਹਨ ...।';
},
maximumSelected: function (args) {
var message = 'ਤੁਸੀਂ ਸਿਰਫ਼ ' + args.maximum + ' ਨਤੀਜਾ ਚੁਣ ਸਕਦੇ ਹੋ ।';

if(args.maximum != 1) {
message = 'ਤੁਸੀਂ ਸਿਰਫ਼ ' + args.maximum + ' ਨਤੀਜੇ ਚੁਣ ਸਕਦੇ ਹੋ ।';
}

return message;
},
noResults: function () {
return 'ਨਤੀਜਾ ਨਹੀਂ ਮਿਲ ਰਿਹਾ ਹੈ ।';
},
searching: function () {
return 'ਖ਼ੋਜ ਕਰ ਰਹੇਂ ਹਾਂ ...।';
},
removeAllItems: function () {
return 'ਸਾਰੇ ਨਤੀਜੇ ਮਿਟਾਓ ।';
}
};
});

0 comments on commit c6d8a13

Please sign in to comment.