diff --git a/README.md b/README.md index 9c21a400d..f2f7c72a9 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ Current translations:   | Language | Code | Last translator | Percent done ---|---|---|---|--- -![](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/.png) | Basque | eu | | 89% +![](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/es/basque_country.png) | Basque | eu | | 89% ![](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/hr.png) | Croatian | hr_HR | Hrvoje Mandić | 72% ![](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/de.png) | Deutsch | de_DE | Tobias Strobel | 91% ![](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/gb.png) | English | en_GB | | 100% diff --git a/Tools/build-translation.js b/Tools/build-translation.js index 8a6b05b2d..9938bb418 100644 --- a/Tools/build-translation.js +++ b/Tools/build-translation.js @@ -138,13 +138,21 @@ async function translationStatus(isDefault, poFile) { }; } +function flagImageUrl(locale) { + if (locale === 'eu') { + return 'https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/es/basque_country.png'; + } else { + return 'https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/' + countryCodeOnly(locale).toLowerCase() + '.png' + } +} + function translationStatusToMdTable(status) { let output = []; output.push([' ', 'Language', 'Code', 'Last translator', 'Percent done'].join(' | ')); output.push(['---', '---', '---', '---', '---'].join('|')); for (let i = 0; i < status.length; i++) { const stat = status[i]; - const flagUrl = 'https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/' + countryCodeOnly(stat.locale).toLowerCase() + '.png'; + const flagUrl = flagImageUrl(stat.locale); //'https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/' + countryCodeOnly(stat.locale).toLowerCase() + '.png'; output.push(['![](' + flagUrl + ')', stat.languageName, stat.locale, stat.translatorName, stat.percentDone + '%'].join(' | ')); } return output.join('\n'); diff --git a/docs/index.html b/docs/index.html index 6445bb4a8..187e56bd3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -375,7 +375,7 @@ $$ - + Basque eu @@ -385,14 +385,14 @@ $$ Croatian hr_HR -Hrvoje Mandić trbuhom@net.hr +Hrvoje Mandić trbuhom@net.hr 72% Deutsch de_DE -Tobias Strobel git@strobeltobias.de +Tobias Strobel git@strobeltobias.de 91% @@ -448,14 +448,14 @@ $$ Русский ru_RU -Artyom Karlov artyom.karlov@gmail.com +Artyom Karlov artyom.karlov@gmail.com 94% 中文 (简体) zh_CN -RCJacH RCJacH@outlook.com +RCJacH RCJacH@outlook.com 75%