File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66( function ( $ ) {
77 "use strict" ;
88
9- var pl_suffix = function ( n ) {
9+ var pl_suffix = function ( n , pluralSuffix ) {
1010 if ( n == 1 ) return "" ;
11- if ( ( n % 100 > 1 && n % 100 < 5 ) || ( n % 100 > 20 && n % 10 > 1 && n % 10 < 5 ) ) return "i" ;
11+ if ( ( n % 100 > 1 && n % 100 < 5 ) || ( n % 100 > 20 && n % 10 > 1 && n % 10 < 5 ) ) return pluralSuffix ;
1212 return "ów" ;
1313 } ;
1414
1818 } ,
1919 formatInputTooShort : function ( input , min ) {
2020 var n = min - input . length ;
21- return "Wpisz jeszcze " + n + " znak" + pl_suffix ( n ) + "." ;
21+ return "Wpisz jeszcze " + n + " znak" + pl_suffix ( n , 'i' ) + "." ;
2222 } ,
2323 formatInputTooLong : function ( input , max ) {
2424 var n = input . length - max ;
25- return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix ( n ) + "." ;
25+ return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix ( n , 'i' ) + "." ;
2626 } ,
2727 formatSelectionTooBig : function ( limit ) {
28- return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix ( limit ) + "." ;
28+ return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix ( limit , 'y' ) + "." ;
2929 } ,
3030 formatLoadMore : function ( pageNumber ) {
3131 return "Ładowanie wyników..." ;
3434 return "Szukanie..." ;
3535 }
3636 } ) ;
37- } ) ( jQuery ) ;
37+ } ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments