Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Flags are country flags, not language flags #12014

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions installation/src/Model/LanguagesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,15 @@ public function addLanguage($itemLanguage, $sefLangString)
{
$tableLanguage = Table::getInstance('Language');

// Use language code (eg "en-gb") as the flag.
$flag = strtolower(str_replace('-', '_', $itemLanguage->language));

if (!file_exists(JPATH_ROOT . '/media/mod_languages/images/' . $flag . '.gif'))
{
// Use country (eg "gb") as the flag.
$flag = strtolower(substr($itemLanguage->language, strpos($itemLanguage->language, '-') + 1));
}

// Load the native language name.
$installationLocalisedIni = new Language($itemLanguage->language, false);
$nativeLanguageName = $installationLocalisedIni->_('INSTL_DEFAULTLANGUAGE_NATIVE_LANGUAGE_NAME');
Expand Down
104 changes: 104 additions & 0 deletions media/mod_languages/images/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
## Reserved filenames
This filenames were present in earlier Joomla versions and were removed with PR #12014
Due to potential B/C issues we can't put a new file with the same name into this folder.

af.gif Afrikaans (not Afghanistan!)
af_za.gif Afrikaans (South Africa)
ar.gif Arabic (not Argentina!)
ar_aa.gif Arabic Unitag
az_az.gif Azeri (Azerbaijan)
be.gif Belarusian (not Belgium!)
be_by.gif Belarusian (Belarus)
bg_bg.gif Bulgarian (Bulgaria)
bn.gif Bangladesh
bn_bd.gif Bangladesh
br.gif Breton (not Brazil!)
bs.gif Bosnian (Bosnia and Herzegovina)
bs_ba.gif Bosnian (Bosnia and Herzegovina)
ca.gif Catalan (not Canada!)
cbk_iq.gif Something Iraq
cs.gif Czech
cs_cz.gif Czech (Czech Republic)
cy.gif Welsh (not Cyprus!)
cz_cz.gif Something (Czech Republic)
da.gif Danish
de_de.gif German (Germany)
dz_bt.gif Dzongkha (Bhutan)
el.gif Greek
el_gr.gif Greek (Greece)
en.gif English
en_au.gif English (Australia)
en_gb.gif English (United Kingdom)
en_us.gif English (United States)
eo.gif Esperanto
es_co.gif Spanish (Colombia)
es_es.gif Spanish (Spain)
et.gif Estonian
et_ee.gif Estonian (Estonia)
fa.gif Farsi
fa_ir.gif Farsi (Iran)
fi_fi.gif Finnish (Finland)
fr_fr.gif French (France)
ga_ie.gif Irish (Ireland)
gd.gif Gaelic (not Grenada!)
gl.gif Galician (not Greenland!)
he.gif Hebrew
he_il.gif Hebrew (Israel)
hi.gif Hindi
hi_in.gif Hindi (India)
hk_hk.gif Something (Hong Kong)
hr_hr.gif Croatian (Croatia)
hu_hu.gif Hungarian (Hungary)
hy.gif Armenian
hy_am.gif Armenian (Armenia)
id_id.gif Indonesian (Indonesia)
is_is.gif Icelandic (Iceland)
it_it.gif Italian (Italy)
ja.gif Japanese
ja_jp.gif Japanese (Japan)
ka.gif Georgian
ka_ge.gif Georgian (Georgia)
km.gif Khmer (not Comoros!)
km_kh.gif Khmer (Cambodia)
ko.gif Korean
ko_kr.gif Korean (Korea)
ku.gif Kurdish (Iraq flag)
lo.gif Lao
lo_la.gif Lao (Laos)
lt_lt.gif Lithuanian (Lithuania)
lv_lv.gif Latvian (Latvia)
mk_mk.gif FYRO Macedonian
mn_mn.gif Mongolian (Mongolia)
ms_my.gif Malay (Malaysia)
nb_no.gif Bokmål (Norway)
nl_nl.gif Dutch (Netherlands)
nn_no.gif Nynorsk (Norway)
pl_pl.gif Polish (Poland)
ps.gif Pushto (not Palestine!)
pt_pt.gif Portuguese (Portugal)
ro_ro.gif Romanian (Romania)
ru_ru.gif Russian (Russia)
si.gif Sinhala (not Slovenia!)
sk_sk.gif Slovak (Slovakia)
sl.gif Slovenian (not Sierra Leone!)
sq_al.gif Albanian (Albania)
sr.gif Serbian (not Suriname!)
srp_me.gif Montenegrin (Montenegro)
sv.gif Swedish (not El Salvador!)
sv_se.gif Swedish (Sweden)
sw.gif Swahili
sy.gif Syriac (was assyrian flag, not Syria!)
ta.gif Tamil
th_th.gif Thai (Thailand)
tk_tm.gif Turkmen (Turkmenistan)
tr_tr.gif Turkish (Turkey)
uk.gif Ukrainian
uk_ua.gif Ukrainian (Ukraine)
ur.gif Urdu
ur_pk.gif Urdu (Islamic Republic of Pakistan)
uz_uz.gif Uzbek (Uzbekistan)
vi.gif Vietnamese
vi_vn.gif Vietnamese (Viet Nam)
zh.gif Chinese
zh_cn.gif Chinese (China)
zh_tw.gif Chinese (Taiwan)
File renamed without changes
Binary file removed media/mod_languages/images/af_za.gif
Binary file not shown.
File renamed without changes
Binary file removed media/mod_languages/images/ar_aa.gif
Binary file not shown.
Binary file modified media/mod_languages/images/at.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed media/mod_languages/images/az_az.gif
Binary file not shown.
File renamed without changes
File renamed without changes
Binary file removed media/mod_languages/images/be_by.gif
Binary file not shown.
Binary file removed media/mod_languages/images/bg_bg.gif
Binary file not shown.
Binary file removed media/mod_languages/images/bn_bd.gif
Binary file not shown.
Binary file removed media/mod_languages/images/br.gif
Binary file not shown.
Binary file removed media/mod_languages/images/bs_ba.gif
Binary file not shown.
File renamed without changes
Binary file removed media/mod_languages/images/ca.gif
Binary file not shown.
File renamed without changes
Binary file removed media/mod_languages/images/cs.gif
Binary file not shown.
Binary file removed media/mod_languages/images/cs_cz.gif
Binary file not shown.
Binary file removed media/mod_languages/images/cy.gif
Binary file not shown.
Binary file removed media/mod_languages/images/cz_cz.gif
Binary file not shown.
Binary file removed media/mod_languages/images/da.gif
Binary file not shown.
Binary file removed media/mod_languages/images/de_at.gif
Binary file not shown.
Binary file removed media/mod_languages/images/de_ch.gif
Diff not rendered.
Binary file removed media/mod_languages/images/de_de.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/el_gr.gif
Diff not rendered.
Binary file removed media/mod_languages/images/en_gb.gif
Diff not rendered.
Binary file removed media/mod_languages/images/en_us.gif
Diff not rendered.
Binary file removed media/mod_languages/images/eo.gif
Diff not rendered.
Binary file removed media/mod_languages/images/es_es.gif
Diff not rendered.
Binary file removed media/mod_languages/images/et_ee.gif
Diff not rendered.
Binary file removed media/mod_languages/images/fa_ir.gif
Diff not rendered.
Binary file removed media/mod_languages/images/fi_fi.gif
Diff not rendered.
Binary file removed media/mod_languages/images/fr_fr.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/gd.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/gl.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/he_il.gif
Diff not rendered.
Binary file removed media/mod_languages/images/hi_in.gif
Diff not rendered.
Binary file removed media/mod_languages/images/hk_hk.gif
Diff not rendered.
Binary file removed media/mod_languages/images/hr_hr.gif
Diff not rendered.
Binary file removed media/mod_languages/images/hu_hu.gif
Diff not rendered.
Binary file removed media/mod_languages/images/hy_am.gif
Diff not rendered.
Binary file removed media/mod_languages/images/id_id.gif
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed media/mod_languages/images/is_is.gif
Diff not rendered.
Binary file removed media/mod_languages/images/it_it.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ja_jp.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/ka_ge.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/km_kh.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ko_kr.gif
Diff not rendered.
File renamed without changes
File renamed without changes
Binary file added media/mod_languages/images/lk.gif
Binary file removed media/mod_languages/images/lo_la.gif
Diff not rendered.
Binary file removed media/mod_languages/images/lt_lt.gif
Diff not rendered.
Binary file removed media/mod_languages/images/lv_lv.gif
Diff not rendered.
Binary file removed media/mod_languages/images/mk_mk.gif
Diff not rendered.
Binary file removed media/mod_languages/images/mn_mn.gif
Diff not rendered.
Binary file removed media/mod_languages/images/nb_no.gif
Diff not rendered.
Binary file removed media/mod_languages/images/nl_nl.gif
Diff not rendered.
Binary file removed media/mod_languages/images/nn_no.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/pl_pl.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ps.gif
Diff not rendered.
Binary file removed media/mod_languages/images/pt_pt.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ro_ro.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ru_ru.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/si.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sk_sk.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sl.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sq_al.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sr.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sv_se.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sw.gif
Diff not rendered.
Binary file removed media/mod_languages/images/sy.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ta.gif
Diff not rendered.
Binary file removed media/mod_languages/images/th_th.gif
Diff not rendered.
Binary file removed media/mod_languages/images/tr_tr.gif
Diff not rendered.
File renamed without changes
Binary file removed media/mod_languages/images/uk_ua.gif
Diff not rendered.
Binary file removed media/mod_languages/images/ur_pk.gif
Diff not rendered.
Binary file removed media/mod_languages/images/uz_uz.gif
Diff not rendered.
Binary file removed media/mod_languages/images/vi_vn.gif
Diff not rendered.
File renamed without changes
File renamed without changes
Binary file removed media/mod_languages/images/zh_cn.gif
Diff not rendered.
Binary file removed media/mod_languages/images/zh_tw.gif
Diff not rendered.