Ticket #59: locales.diff

File locales.diff, 5.1 KB (added by vanillalounge, 2 years ago)
  • locales.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /Users/ze/NetBeansProjects/GlotPress/trunk/gp-includes
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    164164                $be->country_code = 'by'; 
    165165                $be->slug = 'be'; 
    166166                $be->nplurals = 3; 
    167                 $be->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     167                $be->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    168168 
    169169                $bg = new GP_Locale(); 
    170170                $bg->english_name = 'Bulgarian'; 
     
    236236                $bs->wp_locale = 'bs_BA'; 
    237237                $bs->slug = 'bs'; 
    238238                $bs->nplurals = 3; 
    239                 $bs->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     239                $bs->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    240240 
    241241                $ca = new GP_Locale(); 
    242242                $ca->english_name = 'Catalan'; 
     
    305305                $csb->country_code = ''; 
    306306                $csb->slug = 'csb'; 
    307307                $csb->nplurals = 3; 
    308                 $csb->plural_expression = 'n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2'; 
     308                $csb->plural_expression = 'n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2'; 
    309309 
    310310                $cu = new GP_Locale(); 
    311311                $cu->english_name = 'Church Slavic'; 
     
    593593                $hr->wp_locale = 'hr'; 
    594594                $hr->slug = 'hr'; 
    595595                $hr->nplurals = 3; 
    596                 $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     596                $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    597597 
    598598                $hu = new GP_Locale(); 
    599599                $hu->english_name = 'Hungarian'; 
     
    771771                $lt->country_code = 'lt'; 
    772772                $lt->slug = 'lt'; 
    773773                $lt->nplurals = 3; 
    774                 $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     774                $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    775775 
    776776                $lv = new GP_Locale(); 
    777777                $lv->english_name = 'Latvian'; 
     
    793793                $mk->wp_locale = 'mk_MK'; 
    794794                $mk->slug = 'mk'; 
    795795                $mk->nplurals = 2; 
    796                 $mk->plural_expression = 'n==1 or n%10==1 ? 0 : 1'; 
     796                $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1'; 
    797797 
    798798                $ml = new GP_Locale(); 
    799799                $ml->english_name = 'Malayalam'; 
     
    908908                $pl->wp_locale = 'pl_PL'; 
    909909                $pl->slug = 'pl'; 
    910910                $pl->nplurals = 3; 
    911                 $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     911                $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    912912 
    913913 
    914914                $pt_br = new GP_Locale(); 
     
    939939                $ro->wp_locale = 'ro_RO'; 
    940940                $ro->slug = 'ro'; 
    941941                $ro->nplurals = 3; 
    942                 $ro->plural_expression = '(n==1 ? 0 : (n==0 or (n%100 > 0 && n%100 < 20)) ? 1 : 2);'; 
     942                $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);'; 
    943943 
    944944                $ru_ua = new GP_Locale(); 
    945945                $ru_ua->english_name = 'Ukrainian Russian'; 
     
    950950                $ru_ua->wp_locale = 'ru_UA'; 
    951951                $ru_ua->slug = 'ru-ua'; 
    952952                $ru_ua->nplurals = 3; 
    953                 $ru_ua->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     953                $ru_ua->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    954954 
    955955                $ru = new GP_Locale(); 
    956956                $ru->english_name = 'Russian'; 
     
    961961                $ru->wp_locale = 'ru_RU'; 
    962962                $ru->slug = 'ru'; 
    963963                $ru->nplurals = 3; 
    964                 $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
     964                $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
    965965 
    966966                $sc = new GP_Locale(); 
    967967                $sc->english_name = 'Sardinian'; 
     
    10091009                $sl->wp_locale = 'sl_SI'; 
    10101010                $sl->slug = 'sl'; 
    10111011                $sl->nplurals = 4; 
    1012                 $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 or n%100==4 ? 2 : 3)'; 
     1012                $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)'; 
    10131013 
    10141014                $sq = new GP_Locale(); 
    10151015                $sq->english_name = 'Albanian'; 
     
    10291029                $sr->wp_locale = 'sr_RS'; 
    10301030                $sr->slug = 'sr'; 
    10311031                $sr->nplurals = 4; 
    1032                 $sr->plural_expression = 'n==1? 3 : n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2'; 
     1032                $sr->plural_expression = 'n==1? 3 : n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2'; 
    10331033 
    10341034                $su = new GP_Locale(); 
    10351035                $su->english_name = 'Sundanese'; 
     
    11441144                $uk->wp_locale = 'uk'; 
    11451145                $uk->slug = 'uk'; 
    11461146                $uk->nplurals = 3; 
    1147                 $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 or n%100>=20) ? 1 : 2)'; 
    1148  No newline at end of file 
     1147                $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 
     1148 No newline at end of file 
    11491149 
    11501150                $ur = new GP_Locale();