Changeset 20587


Ignore:
Timestamp:
02/06/13 16:47:00 (7 years ago)
Author:
flop25
Message:

bug:2827
adding a sprite for flags. So the flag in language packages is no longuer required, but language_switch.css need to be edited for a language added to Piwigo.

Location:
trunk/plugins/language_switch
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/language_switch/flags.tpl

    r15923 r20587  
    1 <li>{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    2   <span class="pwg-icon" style="background:url('{$lang_switch.Active.img}') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">{'Language'|@translate}</span> 
     1<li id="languageSwitch">{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     2  <span class="pwg-icon flags langflag-{$lang_switch.Active.code}" >&nbsp;</span><span class="pwg-button-text">{'Language'|@translate}</span> 
    33</a> 
    44<div id="languageSwitchBox" class="switchBox"> 
    55  <div class="switchBoxTitle">{'Language'|@translate}</div>  
    66  {foreach from=$lang_switch.flags item=flag name=f} 
    7   <a rel="nofollow" href="{$flag.url}"><img class="flags" src="{$flag.img}" alt="{$flag.alt}"> {$flag.title}</a> 
     7  <a rel="nofollow" href="{$flag.url}"> 
     8    <span class="pwg-icon flags langflag-{$flag.code}">{$flag.alt}</span>{$flag.title} 
     9  </a> 
    810  {if ($smarty.foreach.f.index+1)%3 == 0}<br>{/if} 
    911  {/foreach} 
  • trunk/plugins/language_switch/language_switch.css

    r15923 r20587  
    55  border:none; 
    66  text-transform:none; 
     7  margin-bottom: 3px; 
    78} 
     9#languageSwitchLink span { 
     10  margin-bottom: 5px; 
     11  margin-top: 5px; 
     12} 
     13#languageSwitch .flags { 
     14    background: url(flag_sprite.png) no-repeat top left; 
     15    margin-right: 3px; 
     16} 
     17 
     18/** Change the langflag-XX label to match a new language. All flags are represented there**/ 
     19#languageSwitch .langflag-ad{ background-position: 0 0; width: 24px; height: 16px; }  
     20#languageSwitch .langflag-ae{ background-position: 0 -18px; width: 24px; height: 16px; }  
     21#languageSwitch .langflag-af{ background-position: 0 -36px; width: 24px; height: 16px; }  
     22#languageSwitch .langflag-af_ZA{ background-position: 0 -54px; width: 24px; height: 16px; }  
     23#languageSwitch .langflag-ag{ background-position: 0 -72px; width: 24px; height: 16px; }  
     24#languageSwitch .langflag-ai{ background-position: 0 -90px; width: 24px; height: 16px; }  
     25#languageSwitch .langflag-al{ background-position: 0 -108px; width: 24px; height: 16px; }  
     26#languageSwitch .langflag-alderney{ background-position: 0 -126px; width: 24px; height: 16px; }  
     27#languageSwitch .langflag-am{ background-position: 0 -144px; width: 24px; height: 16px; }  
     28#languageSwitch .langflag-an{ background-position: 0 -162px; width: 24px; height: 16px; }  
     29#languageSwitch .langflag-ao{ background-position: 0 -180px; width: 24px; height: 16px; }  
     30#languageSwitch .langflag-aq{ background-position: 0 -198px; width: 24px; height: 16px; }  
     31#languageSwitch .langflag-ar_SA{ background-position: 0 -216px; width: 24px; height: 16px; }  
     32#languageSwitch .langflag-as{ background-position: 0 -234px; width: 24px; height: 16px; }  
     33#languageSwitch .langflag-at{ background-position: 0 -252px; width: 24px; height: 16px; }  
     34#languageSwitch .langflag-au{ background-position: 0 -270px; width: 24px; height: 16px; }  
     35#languageSwitch .langflag-aw{ background-position: 0 -288px; width: 24px; height: 16px; }  
     36#languageSwitch .langflag-ax{ background-position: 0 -306px; width: 24px; height: 16px; }  
     37#languageSwitch .langflag-az_AZ{ background-position: 0 -324px; width: 24px; height: 16px; }  
     38#languageSwitch .langflag-azores{ background-position: 0 -342px; width: 24px; height: 16px; }  
     39#languageSwitch .langflag-ba{ background-position: 0 -360px; width: 24px; height: 16px; }  
     40#languageSwitch .langflag-bb{ background-position: 0 -378px; width: 24px; height: 16px; }  
     41#languageSwitch .langflag-bd{ background-position: 0 -396px; width: 24px; height: 16px; }  
     42#languageSwitch .langflag-be{ background-position: 0 -414px; width: 24px; height: 16px; }  
     43#languageSwitch .langflag-bf{ background-position: 0 -432px; width: 24px; height: 16px; }  
     44#languageSwitch .langflag-bg_BG{ background-position: 0 -450px; width: 24px; height: 16px; }  
     45#languageSwitch .langflag-bh{ background-position: 0 -468px; width: 24px; height: 16px; }  
     46#languageSwitch .langflag-bi{ background-position: 0 -486px; width: 24px; height: 16px; }  
     47#languageSwitch .langflag-bj{ background-position: 0 -504px; width: 24px; height: 16px; }  
     48#languageSwitch .langflag-bl{ background-position: 0 -522px; width: 24px; height: 16px; }  
     49#languageSwitch .langflag-bm{ background-position: 0 -540px; width: 24px; height: 16px; }  
     50#languageSwitch .langflag-bn{ background-position: 0 -558px; width: 24px; height: 16px; }  
     51#languageSwitch .langflag-bn_IN{ background-position: 0 -576px; width: 24px; height: 16px; }  
     52#languageSwitch .langflag-bo{ background-position: 0 -594px; width: 24px; height: 16px; }  
     53#languageSwitch .langflag-bonaire{ background-position: 0 -612px; width: 24px; height: 16px; }  
     54#languageSwitch .langflag-british_antarctic_territory{ background-position: 0 -630px; width: 24px; height: 16px; }  
     55#languageSwitch .langflag-bs{ background-position: 0 -648px; width: 24px; height: 16px; }  
     56#languageSwitch .langflag-bt{ background-position: 0 -666px; width: 24px; height: 16px; }  
     57#languageSwitch .langflag-bv{ background-position: 0 -684px; width: 24px; height: 16px; }  
     58#languageSwitch .langflag-bw{ background-position: 0 -702px; width: 24px; height: 16px; }  
     59#languageSwitch .langflag-by{ background-position: 0 -720px; width: 24px; height: 16px; }  
     60#languageSwitch .langflag-bz{ background-position: 0 -738px; width: 24px; height: 16px; }  
     61#languageSwitch .langflag-ca{ background-position: 0 -756px; width: 24px; height: 16px; }  
     62#languageSwitch .langflag-ca_ES{ background-position: 0 -774px; width: 24px; height: 16px; }  
     63#languageSwitch .langflag-cc{ background-position: 0 -792px; width: 24px; height: 16px; }  
     64#languageSwitch .langflag-cd{ background-position: 0 -810px; width: 24px; height: 16px; }  
     65#languageSwitch .langflag-cf{ background-position: 0 -828px; width: 24px; height: 16px; }  
     66#languageSwitch .langflag-cg{ background-position: 0 -846px; width: 24px; height: 16px; }  
     67#languageSwitch .langflag-ch{ background-position: 0 -864px; width: 24px; height: 16px; }  
     68#languageSwitch .langflag-ci{ background-position: 0 -882px; width: 24px; height: 16px; }  
     69#languageSwitch .langflag-ck{ background-position: 0 -900px; width: 24px; height: 16px; }  
     70#languageSwitch .langflag-cl{ background-position: 0 -918px; width: 24px; height: 16px; }  
     71#languageSwitch .langflag-cm{ background-position: 0 -936px; width: 24px; height: 16px; }  
     72#languageSwitch .langflag-co{ background-position: 0 -954px; width: 24px; height: 16px; }  
     73#languageSwitch .langflag-cr{ background-position: 0 -972px; width: 24px; height: 16px; }  
     74#languageSwitch .langflag-cs_CZ{ background-position: 0 -990px; width: 24px; height: 16px; }  
     75#languageSwitch .langflag-cu{ background-position: 0 -1008px; width: 24px; height: 16px; }  
     76#languageSwitch .langflag-cv{ background-position: 0 -1026px; width: 24px; height: 16px; }  
     77#languageSwitch .langflag-cx{ background-position: 0 -1044px; width: 24px; height: 16px; }  
     78#languageSwitch .langflag-cy{ background-position: 0 -1062px; width: 24px; height: 16px; }  
     79#languageSwitch .langflag-cz{ background-position: 0 -1080px; width: 24px; height: 16px; }  
     80#languageSwitch .langflag-da_DK{ background-position: 0 -1098px; width: 24px; height: 16px; }  
     81#languageSwitch .langflag-de_DE{ background-position: 0 -1116px; width: 24px; height: 16px; }  
     82#languageSwitch .langflag-dj{ background-position: 0 -1134px; width: 24px; height: 16px; }  
     83#languageSwitch .langflag-dm{ background-position: 0 -1152px; width: 24px; height: 16px; }  
     84#languageSwitch .langflag-do{ background-position: 0 -1170px; width: 24px; height: 16px; }  
     85#languageSwitch .langflag-dv_MV{ background-position: 0 -1188px; width: 24px; height: 16px; }  
     86#languageSwitch .langflag-dz{ background-position: 0 -1206px; width: 24px; height: 16px; }  
     87#languageSwitch .langflag-ec{ background-position: 0 -1224px; width: 24px; height: 16px; }  
     88#languageSwitch .langflag-eg{ background-position: 0 -1242px; width: 24px; height: 16px; }  
     89#languageSwitch .langflag-eh{ background-position: 0 -1260px; width: 24px; height: 16px; }  
     90#languageSwitch .langflag-el_GR{ background-position: 0 -1278px; width: 24px; height: 16px; }  
     91#languageSwitch .langflag-en_UK{ background-position: 0 -1296px; width: 24px; height: 16px; }  
     92#languageSwitch .langflag-eo_EO{ background-position: 0 -1314px; width: 24px; height: 16px; }  
     93#languageSwitch .langflag-er{ background-position: 0 -1332px; width: 24px; height: 16px; }  
     94#languageSwitch .langflag-es_AR{ background-position: 0 -1350px; width: 24px; height: 16px; }  
     95#languageSwitch .langflag-es_ES{ background-position: 0 -1368px; width: 24px; height: 16px; }  
     96#languageSwitch .langflag-et{ background-position: 0 -1386px; width: 24px; height: 16px; }  
     97#languageSwitch .langflag-et_EE{ background-position: 0 -1404px; width: 24px; height: 16px; }  
     98#languageSwitch .langflag-eu{ background-position: 0 -1422px; width: 24px; height: 16px; }  
     99#languageSwitch .langflag-fa_IR{ background-position: 0 -1440px; width: 24px; height: 16px; }  
     100#languageSwitch .langflag-fi_FI{ background-position: 0 -1458px; width: 24px; height: 16px; }  
     101#languageSwitch .langflag-fj{ background-position: 0 -1476px; width: 24px; height: 16px; }  
     102#languageSwitch .langflag-fk{ background-position: 0 -1494px; width: 24px; height: 16px; }  
     103#languageSwitch .langflag-fm{ background-position: 0 -1512px; width: 24px; height: 16px; }  
     104#languageSwitch .langflag-fo{ background-position: 0 -1530px; width: 24px; height: 16px; }  
     105#languageSwitch .langflag-fr_CA{ background-position: 0 -1548px; width: 24px; height: 16px; }  
     106#languageSwitch .langflag-fr_FR{ background-position: 0 -1566px; width: 24px; height: 16px; }  
     107#languageSwitch .langflag-ga{ background-position: 0 -1584px; width: 24px; height: 16px; }  
     108#languageSwitch .langflag-gb{ background-position: 0 -1602px; width: 24px; height: 16px; }  
     109#languageSwitch .langflag-gd{ background-position: 0 -1620px; width: 24px; height: 16px; }  
     110#languageSwitch .langflag-gf{ background-position: 0 -1638px; width: 24px; height: 16px; }  
     111#languageSwitch .langflag-gg{ background-position: 0 -1656px; width: 24px; height: 16px; }  
     112#languageSwitch .langflag-gh{ background-position: 0 -1674px; width: 24px; height: 16px; }  
     113#languageSwitch .langflag-gi{ background-position: 0 -1692px; width: 24px; height: 16px; }  
     114#languageSwitch .langflag-gl{ background-position: 0 -1710px; width: 24px; height: 16px; }  
     115#languageSwitch .langflag-gm{ background-position: 0 -1728px; width: 24px; height: 16px; }  
     116#languageSwitch .langflag-gn{ background-position: 0 -1746px; width: 24px; height: 16px; }  
     117#languageSwitch .langflag-gp{ background-position: 0 -1764px; width: 24px; height: 16px; }  
     118#languageSwitch .langflag-gq{ background-position: 0 -1782px; width: 24px; height: 16px; }  
     119#languageSwitch .langflag-gs{ background-position: 0 -1800px; width: 24px; height: 16px; }  
     120#languageSwitch .langflag-gt{ background-position: 0 -1818px; width: 24px; height: 16px; }  
     121#languageSwitch .langflag-gu{ background-position: 0 -1836px; width: 24px; height: 16px; }  
     122#languageSwitch .langflag-gw{ background-position: 0 -1854px; width: 24px; height: 16px; }  
     123#languageSwitch .langflag-gy{ background-position: 0 -1872px; width: 24px; height: 16px; }  
     124#languageSwitch .langflag-he_IL{ background-position: 0 -1890px; width: 24px; height: 16px; }  
     125#languageSwitch .langflag-herm{ background-position: 0 -1908px; width: 24px; height: 16px; }  
     126#languageSwitch .langflag-hm{ background-position: 0 -1926px; width: 24px; height: 16px; }  
     127#languageSwitch .langflag-hn{ background-position: 0 -1944px; width: 24px; height: 16px; }  
     128#languageSwitch .langflag-hr_HR{ background-position: 0 -1962px; width: 24px; height: 16px; }  
     129#languageSwitch .langflag-ht{ background-position: 0 -1980px; width: 24px; height: 16px; }  
     130#languageSwitch .langflag-hu_HU{ background-position: -26px 0; width: 24px; height: 16px; }  
     131#languageSwitch .langflag-id{ background-position: -26px -18px; width: 24px; height: 16px; }  
     132#languageSwitch .langflag-ie{ background-position: -26px -36px; width: 24px; height: 16px; }  
     133#languageSwitch .langflag-im{ background-position: -26px -54px; width: 24px; height: 16px; }  
     134#languageSwitch .langflag-io{ background-position: -26px -72px; width: 24px; height: 16px; }  
     135#languageSwitch .langflag-iq{ background-position: -26px -90px; width: 24px; height: 16px; }  
     136#languageSwitch .langflag-is_IS{ background-position: -26px -108px; width: 24px; height: 16px; }  
     137#languageSwitch .langflag-it_IT{ background-position: -26px -126px; width: 24px; height: 16px; }  
     138#languageSwitch .langflag-ja_JP{ background-position: -26px -144px; width: 24px; height: 16px; }  
     139#languageSwitch .langflag-je{ background-position: -26px -162px; width: 24px; height: 16px; }  
     140#languageSwitch .langflag-jm{ background-position: -26px -180px; width: 24px; height: 16px; }  
     141#languageSwitch .langflag-jo{ background-position: -26px -198px; width: 24px; height: 16px; }  
     142#languageSwitch .langflag-ka_GE{ background-position: -26px -216px; width: 24px; height: 16px; }  
     143#languageSwitch .langflag-ke{ background-position: -26px -234px; width: 24px; height: 16px; }  
     144#languageSwitch .langflag-kg{ background-position: -26px -252px; width: 24px; height: 16px; }  
     145#languageSwitch .langflag-ki{ background-position: -26px -270px; width: 24px; height: 16px; }  
     146#languageSwitch .langflag-km{ background-position: -26px -288px; width: 24px; height: 16px; }  
     147#languageSwitch .langflag-km_KH{ background-position: -26px -306px; width: 24px; height: 16px; }  
     148#languageSwitch .langflag-kn{ background-position: -26px -324px; width: 24px; height: 16px; }  
     149#languageSwitch .langflag-ko_KR{ background-position: -26px -342px; width: 24px; height: 16px; }  
     150#languageSwitch .langflag-kok_IN{ background-position: -26px -360px; width: 24px; height: 16px; }  
     151#languageSwitch .langflag-kosovo{ background-position: -26px -378px; width: 24px; height: 16px; }  
     152#languageSwitch .langflag-kp{ background-position: -26px -396px; width: 24px; height: 16px; }  
     153#languageSwitch .langflag-kw{ background-position: -26px -414px; width: 24px; height: 16px; }  
     154#languageSwitch .langflag-ky{ background-position: -26px -432px; width: 24px; height: 16px; }  
     155#languageSwitch .langflag-kz{ background-position: -26px -450px; width: 24px; height: 16px; }  
     156#languageSwitch .langflag-la{ background-position: -26px -468px; width: 24px; height: 16px; }  
     157#languageSwitch .langflag-lb{ background-position: -26px -486px; width: 24px; height: 16px; }  
     158#languageSwitch .langflag-lc{ background-position: -26px -504px; width: 24px; height: 16px; }  
     159#languageSwitch .langflag-li{ background-position: -26px -522px; width: 24px; height: 16px; }  
     160#languageSwitch .langflag-lk{ background-position: -26px -540px; width: 24px; height: 16px; }  
     161#languageSwitch .langflag-lr{ background-position: -26px -558px; width: 24px; height: 16px; }  
     162#languageSwitch .langflag-ls{ background-position: -26px -576px; width: 24px; height: 16px; }  
     163#languageSwitch .langflag-lt_LT{ background-position: -26px -594px; width: 24px; height: 16px; }  
     164#languageSwitch .langflag-lu{ background-position: -26px -612px; width: 24px; height: 16px; }  
     165#languageSwitch .langflag-lv_LV{ background-position: -26px -630px; width: 24px; height: 16px; }  
     166#languageSwitch .langflag-ly{ background-position: -26px -648px; width: 24px; height: 16px; }  
     167#languageSwitch .langflag-ma{ background-position: -26px -666px; width: 24px; height: 16px; }  
     168#languageSwitch .langflag-madeira{ background-position: -26px -684px; width: 24px; height: 16px; }  
     169#languageSwitch .langflag-mc{ background-position: -26px -702px; width: 24px; height: 16px; }  
     170#languageSwitch .langflag-md{ background-position: -26px -720px; width: 24px; height: 16px; }  
     171#languageSwitch .langflag-me{ background-position: -26px -738px; width: 24px; height: 16px; }  
     172#languageSwitch .langflag-mf{ background-position: -26px -756px; width: 24px; height: 16px; }  
     173#languageSwitch .langflag-mg{ background-position: -26px -774px; width: 24px; height: 16px; }  
     174#languageSwitch .langflag-mh{ background-position: -26px -792px; width: 24px; height: 16px; }  
     175#languageSwitch .langflag-mk_MK{ background-position: -26px -810px; width: 24px; height: 16px; }  
     176#languageSwitch .langflag-ml{ background-position: -26px -828px; width: 24px; height: 16px; }  
     177#languageSwitch .langflag-mm{ background-position: -26px -846px; width: 24px; height: 16px; }  
     178#languageSwitch .langflag-mn{ background-position: -26px -864px; width: 24px; height: 16px; }  
     179#languageSwitch .langflag-mo{ background-position: -26px -882px; width: 24px; height: 16px; }  
     180#languageSwitch .langflag-mp{ background-position: -26px -900px; width: 24px; height: 16px; }  
     181#languageSwitch .langflag-mq{ background-position: -26px -918px; width: 24px; height: 16px; }  
     182#languageSwitch .langflag-mr{ background-position: -26px -936px; width: 24px; height: 16px; }  
     183#languageSwitch .langflag-ms{ background-position: -26px -954px; width: 24px; height: 16px; }  
     184#languageSwitch .langflag-ms_MY{ background-position: -26px -972px; width: 24px; height: 16px; }  
     185#languageSwitch .langflag-mt{ background-position: -26px -990px; width: 24px; height: 16px; }  
     186#languageSwitch .langflag-mu{ background-position: -26px -1008px; width: 24px; height: 16px; }  
     187#languageSwitch .langflag-mw{ background-position: -26px -1026px; width: 24px; height: 16px; }  
     188#languageSwitch .langflag-mx{ background-position: -26px -1044px; width: 24px; height: 16px; }  
     189#languageSwitch .langflag-mz{ background-position: -26px -1062px; width: 24px; height: 16px; }  
     190#languageSwitch .langflag-na{ background-position: -26px -1080px; width: 24px; height: 16px; }  
     191#languageSwitch .langflag-nb_NO{ background-position: -26px -1098px; width: 24px; height: 16px; }  
     192#languageSwitch .langflag-nc{ background-position: -26px -1116px; width: 24px; height: 16px; }  
     193#languageSwitch .langflag-ne{ background-position: -26px -1134px; width: 24px; height: 16px; }  
     194#languageSwitch .langflag-nf{ background-position: -26px -1152px; width: 24px; height: 16px; }  
     195#languageSwitch .langflag-ng{ background-position: -26px -1170px; width: 24px; height: 16px; }  
     196#languageSwitch .langflag-ni{ background-position: -26px -1188px; width: 24px; height: 16px; }  
     197#languageSwitch .langflag-nl_NL{ background-position: -26px -1206px; width: 24px; height: 16px; }  
     198#languageSwitch .langflag-np{ background-position: -26px -1224px; width: 24px; height: 16px; }  
     199#languageSwitch .langflag-nr{ background-position: -26px -1242px; width: 24px; height: 16px; }  
     200#languageSwitch .langflag-nu{ background-position: -26px -1260px; width: 24px; height: 16px; }  
     201#languageSwitch .langflag-nz{ background-position: -26px -1278px; width: 24px; height: 16px; }  
     202#languageSwitch .langflag-om{ background-position: -26px -1296px; width: 24px; height: 16px; }  
     203#languageSwitch .langflag-pa{ background-position: -26px -1314px; width: 24px; height: 16px; }  
     204#languageSwitch .langflag-pe{ background-position: -26px -1332px; width: 24px; height: 16px; }  
     205#languageSwitch .langflag-pf{ background-position: -26px -1350px; width: 24px; height: 16px; }  
     206#languageSwitch .langflag-pg{ background-position: -26px -1368px; width: 24px; height: 16px; }  
     207#languageSwitch .langflag-ph{ background-position: -26px -1386px; width: 24px; height: 16px; }  
     208#languageSwitch .langflag-pk{ background-position: -26px -1404px; width: 24px; height: 16px; }  
     209#languageSwitch .langflag-pl_PL{ background-position: -26px -1422px; width: 24px; height: 16px; }  
     210#languageSwitch .langflag-pm{ background-position: -26px -1440px; width: 24px; height: 16px; }  
     211#languageSwitch .langflag-pn{ background-position: -26px -1458px; width: 24px; height: 16px; }  
     212#languageSwitch .langflag-pr{ background-position: -26px -1476px; width: 24px; height: 16px; }  
     213#languageSwitch .langflag-ps{ background-position: -26px -1494px; width: 24px; height: 16px; }  
     214#languageSwitch .langflag-pt_BR{ background-position: -26px -1512px; width: 24px; height: 16px; }  
     215#languageSwitch .langflag-pt_PT{ background-position: -26px -1530px; width: 24px; height: 16px; }  
     216#languageSwitch .langflag-pw{ background-position: -26px -1548px; width: 24px; height: 16px; }  
     217#languageSwitch .langflag-py{ background-position: -26px -1566px; width: 24px; height: 16px; }  
     218#languageSwitch .langflag-qa{ background-position: -26px -1584px; width: 24px; height: 16px; }  
     219#languageSwitch .langflag-re{ background-position: -26px -1602px; width: 24px; height: 16px; }  
     220#languageSwitch .langflag-ro_RO{ background-position: -26px -1620px; width: 24px; height: 16px; }  
     221#languageSwitch .langflag-ru_RU{ background-position: -26px -1638px; width: 24px; height: 16px; }  
     222#languageSwitch .langflag-rw{ background-position: -26px -1656px; width: 24px; height: 16px; }  
     223#languageSwitch .langflag-saba{ background-position: -26px -1674px; width: 24px; height: 16px; }  
     224#languageSwitch .langflag-sark{ background-position: -26px -1692px; width: 24px; height: 16px; }  
     225#languageSwitch .langflag-sb{ background-position: -26px -1710px; width: 24px; height: 16px; }  
     226#languageSwitch .langflag-sc{ background-position: -26px -1728px; width: 24px; height: 16px; }  
     227#languageSwitch .langflag-scotland{ background-position: -26px -1746px; width: 24px; height: 16px; }  
     228#languageSwitch .langflag-sd{ background-position: -26px -1764px; width: 24px; height: 16px; }  
     229#languageSwitch .langflag-sg{ background-position: -26px -1782px; width: 24px; height: 16px; }  
     230#languageSwitch .langflag-sh{ background-position: -26px -1800px; width: 24px; height: 16px; }  
     231#languageSwitch .langflag-sh_RS{ background-position: -26px -1818px; width: 24px; height: 16px; }  
     232#languageSwitch .langflag-sint_eustatius{ background-position: -26px -1836px; width: 24px; height: 16px; }  
     233#languageSwitch .langflag-sint_maarten{ background-position: -26px -1854px; width: 24px; height: 16px; }  
     234#languageSwitch .langflag-sj{ background-position: -26px -1872px; width: 24px; height: 16px; }  
     235#languageSwitch .langflag-sk_SK{ background-position: -26px -1890px; width: 24px; height: 16px; }  
     236#languageSwitch .langflag-sl{ background-position: -26px -1908px; width: 24px; height: 16px; }  
     237#languageSwitch .langflag-sl_SI{ background-position: -26px -1926px; width: 24px; height: 16px; }  
     238#languageSwitch .langflag-sm{ background-position: -26px -1944px; width: 24px; height: 16px; }  
     239#languageSwitch .langflag-sn{ background-position: -26px -1962px; width: 24px; height: 16px; }  
     240#languageSwitch .langflag-so{ background-position: -26px -1980px; width: 24px; height: 16px; }  
     241#languageSwitch .langflag-sr{ background-position: -52px 0; width: 24px; height: 16px; }  
     242#languageSwitch .langflag-sr_RS{ background-position: -52px -18px; width: 24px; height: 16px; }  
     243#languageSwitch .langflag-st{ background-position: -52px -36px; width: 24px; height: 16px; }  
     244#languageSwitch .langflag-sv{ background-position: -52px -54px; width: 24px; height: 16px; }  
     245#languageSwitch .langflag-sv_SE{ background-position: -52px -72px; width: 24px; height: 16px; }  
     246#languageSwitch .langflag-sy{ background-position: -52px -90px; width: 24px; height: 16px; }  
     247#languageSwitch .langflag-sz{ background-position: -52px -108px; width: 24px; height: 16px; }  
     248#languageSwitch .langflag-ta_IN{ background-position: -52px -126px; width: 24px; height: 16px; }  
     249#languageSwitch .langflag-tc{ background-position: -52px -144px; width: 24px; height: 16px; }  
     250#languageSwitch .langflag-td{ background-position: -52px -162px; width: 24px; height: 16px; }  
     251#languageSwitch .langflag-tf{ background-position: -52px -180px; width: 24px; height: 16px; }  
     252#languageSwitch .langflag-tg{ background-position: -52px -198px; width: 24px; height: 16px; }  
     253#languageSwitch .langflag-th_TH{ background-position: -52px -216px; width: 24px; height: 16px; }  
     254#languageSwitch .langflag-tj{ background-position: -52px -234px; width: 24px; height: 16px; }  
     255#languageSwitch .langflag-tk{ background-position: -52px -252px; width: 24px; height: 16px; }  
     256#languageSwitch .langflag-tl{ background-position: -52px -270px; width: 24px; height: 16px; }  
     257#languageSwitch .langflag-tm{ background-position: -52px -288px; width: 24px; height: 16px; }  
     258#languageSwitch .langflag-tn{ background-position: -52px -306px; width: 24px; height: 16px; }  
     259#languageSwitch .langflag-to{ background-position: -52px -324px; width: 24px; height: 16px; }  
     260#languageSwitch .langflag-tr_TR{ background-position: -52px -342px; width: 24px; height: 16px; }  
     261#languageSwitch .langflag-tristan_da_cunha{ background-position: -52px -360px; width: 24px; height: 16px; }  
     262#languageSwitch .langflag-tt{ background-position: -52px -378px; width: 24px; height: 16px; }  
     263#languageSwitch .langflag-tv{ background-position: -52px -396px; width: 24px; height: 16px; }  
     264#languageSwitch .langflag-tz{ background-position: -52px -414px; width: 24px; height: 16px; }  
     265#languageSwitch .langflag-ug{ background-position: -52px -432px; width: 24px; height: 16px; }  
     266#languageSwitch .langflag-uk_UA{ background-position: -52px -450px; width: 24px; height: 16px; }  
     267#languageSwitch .langflag-um{ background-position: -52px -468px; width: 24px; height: 16px; }  
     268#languageSwitch .langflag-us{ background-position: -52px -486px; width: 24px; height: 16px; }  
     269#languageSwitch .langflag-uy{ background-position: -52px -504px; width: 24px; height: 16px; }  
     270#languageSwitch .langflag-uz{ background-position: -52px -522px; width: 24px; height: 16px; }  
     271#languageSwitch .langflag-va{ background-position: -52px -540px; width: 24px; height: 16px; }  
     272#languageSwitch .langflag-vc{ background-position: -52px -558px; width: 24px; height: 16px; }  
     273#languageSwitch .langflag-ve{ background-position: -52px -576px; width: 24px; height: 16px; }  
     274#languageSwitch .langflag-vg{ background-position: -52px -594px; width: 24px; height: 16px; }  
     275#languageSwitch .langflag-vi{ background-position: -52px -612px; width: 24px; height: 16px; }  
     276#languageSwitch .langflag-vi_VN{ background-position: -52px -630px; width: 24px; height: 16px; }  
     277#languageSwitch .langflag-vu{ background-position: -52px -648px; width: 24px; height: 16px; }  
     278#languageSwitch .langflag-wales{ background-position: -52px -666px; width: 24px; height: 16px; }  
     279#languageSwitch .langflag-wf{ background-position: -52px -684px; width: 24px; height: 16px; }  
     280#languageSwitch .langflag-ws{ background-position: -52px -702px; width: 24px; height: 16px; }  
     281#languageSwitch .langflag-ye{ background-position: -52px -720px; width: 24px; height: 16px; }  
     282#languageSwitch .langflag-yt{ background-position: -52px -738px; width: 24px; height: 16px; }  
     283#languageSwitch .langflag-zh_CN{ background-position: -52px -756px; width: 24px; height: 16px; }  
     284#languageSwitch .langflag-zh_HK{ background-position: -52px -774px; width: 24px; height: 16px; }  
     285#languageSwitch .langflag-zh_TW{ background-position: -52px -792px; width: 24px; height: 16px; }  
     286#languageSwitch .langflag-zm{ background-position: -52px -810px; width: 24px; height: 16px; }  
     287#languageSwitch .langflag-zw{ background-position: -52px -828px; width: 24px; height: 16px; }  
  • trunk/plugins/language_switch/language_switch.inc.php

    r19703 r20587  
    110110  foreach ($available_lang as $code => $displayname) 
    111111  { 
    112      
    113112    $qlc = array ( 
    114113      'url' => add_url_params($base_url, array('lang'=> $code)), 
    115114      'alt' => ucwords($displayname), 
    116115      'title' => substr($displayname, 0, -4), // remove [FR] or [RU] 
    117       'img' => get_root_url().'language/'.$code.'/'.$code.'.jpg', 
     116      'code' => $code, 
    118117      ); 
    119118     
Note: See TracChangeset for help on using the changeset viewer.