Skip to content

Commit

Permalink
Merge pull request #337 from lloc/refactoring-version-2-8
Browse files Browse the repository at this point in the history
Version 2.8.0
  • Loading branch information
lloc authored Jun 12, 2024
2 parents d17a292 + 8dd9aa5 commit 7e564f5
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 257 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.8.0

- lots of bugfixes, testing & refactoring
- Plugin Check issues addressed

## 2.7.1

- flags/labels in the adminbar works now for every user-role
Expand Down
4 changes: 2 additions & 2 deletions MultisiteLanguageSwitcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @wordpress-plugin
*
* Plugin Name: Multisite Language Switcher
* Version: 2.7.1
* Version: 2.8.0
* Plugin URI: http://msls.co/
* Description: A simple but powerful plugin that will help you to manage the relations of your contents in a multilingual multisite-installation.
* Author: Dennis Ploetner
Expand Down Expand Up @@ -40,7 +40,7 @@
* @author Dennis Ploetner <[email protected]>
*/
if ( ! defined( 'MSLS_PLUGIN_VERSION' ) ) {
define( 'MSLS_PLUGIN_VERSION', '2.7.1' );
define( 'MSLS_PLUGIN_VERSION', '2.8.0' );
define( 'MSLS_PLUGIN_PATH', plugin_basename( __FILE__ ) );
define( 'MSLS_PLUGIN__FILE__', __FILE__ );

Expand Down
2 changes: 1 addition & 1 deletion build/translations.json

Large diffs are not rendered by default.

250 changes: 125 additions & 125 deletions css/flags.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* File is auto-generated
*
* 131 translations-teams for WordPress found
*
* 131 translations-teams for WordPress found
*/
// Unhandled language: am (Amharic)
// Unhandled language: arg (Aragonese)
Expand All @@ -15,132 +15,132 @@
// Unhandled language: kir (Kyrgyz)
// Unhandled language: snd (Sindhi)
// Unhandled language: sw (Swahili)
return $className = [
'af' => 'flag-icon-za',
'ary' => 'flag-icon-ma',
'as' => 'flag-icon-in',
'azb' => 'flag-icon-az',
'az' => 'flag-icon-az',
'bel' => 'flag-icon-by',
'bg_BG' => 'flag-icon-bg',
'bn_BD' => 'flag-icon-bd',
'bo' => 'flag-icon-cn',
'bs_BA' => 'flag-icon-ba',
'ca' => 'flag-icon-es-ca',
'ceb' => 'flag-icon-ph',
'cs_CZ' => 'flag-icon-cz',
'cy' => 'flag-icon-gb-ls',
'da_DK' => 'flag-icon-dk',
'de_CH' => 'flag-icon-ch',
'de_DE_formal' => 'flag-icon-de',
'de_DE' => 'flag-icon-de',
'de_AT' => 'flag-icon-at',
'de_CH_informal' => 'flag-icon-ch',
'dzo' => 'flag-icon-bt',
'el' => 'flag-icon-gr',
'en_NZ' => 'flag-icon-nz',
'en_AU' => 'flag-icon-au',
'en_CA' => 'flag-icon-ca',
'en_GB' => 'flag-icon-gb',
'en_ZA' => 'flag-icon-za',
'eo' => 'flag-icon-eu',
'es_MX' => 'flag-icon-mx',
'es_ES' => 'flag-icon-es',
'es_CO' => 'flag-icon-co',
'es_CL' => 'flag-icon-cl',
'es_CR' => 'flag-icon-cr',
'es_VE' => 'flag-icon-ve',
'es_EC' => 'flag-icon-ec',
'es_DO' => 'flag-icon-do',
'es_PE' => 'flag-icon-pe',
'es_UY' => 'flag-icon-uy',
'es_PR' => 'flag-icon-pr',
'es_GT' => 'flag-icon-gt',
'es_AR' => 'flag-icon-ar',
'et' => 'flag-icon-ee',
'eu' => 'flag-icon-es',
'fa_AF' => 'flag-icon-af',
'fa_IR' => 'flag-icon-ir',
'fi' => 'flag-icon-fi',
'fr_BE' => 'flag-icon-be',
'fr_FR' => 'flag-icon-fr',
'fr_CA' => 'flag-icon-ca',
'fur' => 'flag-icon-it',
'gd' => 'flag-icon-gb-sct',
'gl_ES' => 'flag-icon-es',
'gu' => 'flag-icon-in',
'haz' => 'flag-icon-af',
'he_IL' => 'flag-icon-il',
'hi_IN' => 'flag-icon-in',
'hr' => 'flag-icon-hr',
'hu_HU' => 'flag-icon-hu',
'hy' => 'flag-icon-am',
'id_ID' => 'flag-icon-id',
'is_IS' => 'flag-icon-is',
'it_IT' => 'flag-icon-it',
'ja' => 'flag-icon-jp',
'jv_ID' => 'flag-icon-id',
'ka_GE' => 'flag-icon-ge',
'kab' => 'flag-icon-dz',
'kk' => 'flag-icon-kz',
'km' => 'flag-icon-kh',
'ko_KR' => 'flag-icon-kr',
'ckb' => 'flag-icon-iq',
'lo' => 'flag-icon-la',
'lt_LT' => 'flag-icon-lt',
'lv' => 'flag-icon-lv',
'mk_MK' => 'flag-icon-mk',
'ml_IN' => 'flag-icon-in',
'mn' => 'flag-icon-mn',
'mr' => 'flag-icon-in',
'ms_MY' => 'flag-icon-my',
'my_MM' => 'flag-icon-mm',
'nb_NO' => 'flag-icon-no',
'ne_NP' => 'flag-icon-np',
'nl_NL' => 'flag-icon-nl',
'nl_BE' => 'flag-icon-be',
'nl_NL_formal' => 'flag-icon-nl',
'nn_NO' => 'flag-icon-no',
'oci' => 'flag-icon-es-ca',
'pa_IN' => 'flag-icon-in',
'pl_PL' => 'flag-icon-pl',
'ps' => 'flag-icon-af',
'pt_PT_ao90' => 'flag-icon-90',
'pt_BR' => 'flag-icon-br',
'pt_PT' => 'flag-icon-pt',
'pt_AO' => 'flag-icon-ao',
'ro_RO' => 'flag-icon-ro',
'ru_RU' => 'flag-icon-ru',
'sah' => 'flag-icon-ru',
'si_LK' => 'flag-icon-lk',
'sk_SK' => 'flag-icon-sk',
'skr' => 'flag-icon-pk',
'sl_SI' => 'flag-icon-si',
'sq' => 'flag-icon-al',
'sr_RS' => 'flag-icon-rs',
'sv_SE' => 'flag-icon-se',
'szl' => 'flag-icon-pl',
'ta_IN' => 'flag-icon-in',
'ta_LK' => 'flag-icon-lk',
'te' => 'flag-icon-in',
'th' => 'flag-icon-th',
'tl' => 'flag-icon-ph',
'tr_TR' => 'flag-icon-tr',
'tt_RU' => 'flag-icon-ru',
'tah' => 'flag-icon-pf',
'ug_CN' => 'flag-icon-cn',
'uk' => 'flag-icon-ua',
'ur' => 'flag-icon-pk',
'uz_UZ' => 'flag-icon-uz',
'vi' => 'flag-icon-vn',
'zh_CN' => 'flag-icon-cn',
'zh_HK' => 'flag-icon-hk',
'zh_TW' => 'flag-icon-tw',
];
return $className = array(
'af' => 'flag-icon-za',
'ary' => 'flag-icon-ma',
'as' => 'flag-icon-in',
'azb' => 'flag-icon-az',
'az' => 'flag-icon-az',
'bel' => 'flag-icon-by',
'bg_BG' => 'flag-icon-bg',
'bn_BD' => 'flag-icon-bd',
'bo' => 'flag-icon-cn',
'bs_BA' => 'flag-icon-ba',
'ca' => 'flag-icon-es-ca',
'ceb' => 'flag-icon-ph',
'cs_CZ' => 'flag-icon-cz',
'cy' => 'flag-icon-gb-ls',
'da_DK' => 'flag-icon-dk',
'de_CH' => 'flag-icon-ch',
'de_AT' => 'flag-icon-at',
'de_DE_formal' => 'flag-icon-de',
'de_CH_informal' => 'flag-icon-ch',
'de_DE' => 'flag-icon-de',
'dzo' => 'flag-icon-bt',
'el' => 'flag-icon-gr',
'en_ZA' => 'flag-icon-za',
'en_AU' => 'flag-icon-au',
'en_GB' => 'flag-icon-gb',
'en_NZ' => 'flag-icon-nz',
'en_CA' => 'flag-icon-ca',
'eo' => 'flag-icon-eu',
'es_AR' => 'flag-icon-ar',
'es_ES' => 'flag-icon-es',
'es_MX' => 'flag-icon-mx',
'es_CO' => 'flag-icon-co',
'es_VE' => 'flag-icon-ve',
'es_CR' => 'flag-icon-cr',
'es_EC' => 'flag-icon-ec',
'es_DO' => 'flag-icon-do',
'es_PE' => 'flag-icon-pe',
'es_UY' => 'flag-icon-uy',
'es_PR' => 'flag-icon-pr',
'es_GT' => 'flag-icon-gt',
'es_CL' => 'flag-icon-cl',
'et' => 'flag-icon-ee',
'eu' => 'flag-icon-es',
'fa_AF' => 'flag-icon-af',
'fa_IR' => 'flag-icon-ir',
'fi' => 'flag-icon-fi',
'fr_CA' => 'flag-icon-ca',
'fr_FR' => 'flag-icon-fr',
'fr_BE' => 'flag-icon-be',
'fur' => 'flag-icon-it',
'gd' => 'flag-icon-gb-sct',
'gl_ES' => 'flag-icon-es',
'gu' => 'flag-icon-in',
'haz' => 'flag-icon-af',
'he_IL' => 'flag-icon-il',
'hi_IN' => 'flag-icon-in',
'hr' => 'flag-icon-hr',
'hu_HU' => 'flag-icon-hu',
'hy' => 'flag-icon-am',
'id_ID' => 'flag-icon-id',
'is_IS' => 'flag-icon-is',
'it_IT' => 'flag-icon-it',
'ja' => 'flag-icon-jp',
'jv_ID' => 'flag-icon-id',
'ka_GE' => 'flag-icon-ge',
'kab' => 'flag-icon-dz',
'kk' => 'flag-icon-kz',
'km' => 'flag-icon-kh',
'ko_KR' => 'flag-icon-kr',
'ckb' => 'flag-icon-iq',
'lo' => 'flag-icon-la',
'lt_LT' => 'flag-icon-lt',
'lv' => 'flag-icon-lv',
'mk_MK' => 'flag-icon-mk',
'ml_IN' => 'flag-icon-in',
'mn' => 'flag-icon-mn',
'mr' => 'flag-icon-in',
'ms_MY' => 'flag-icon-my',
'my_MM' => 'flag-icon-mm',
'nb_NO' => 'flag-icon-no',
'ne_NP' => 'flag-icon-np',
'nl_NL_formal' => 'flag-icon-nl',
'nl_BE' => 'flag-icon-be',
'nl_NL' => 'flag-icon-nl',
'nn_NO' => 'flag-icon-no',
'oci' => 'flag-icon-es-ca',
'pa_IN' => 'flag-icon-in',
'pl_PL' => 'flag-icon-pl',
'ps' => 'flag-icon-af',
'pt_PT' => 'flag-icon-pt',
'pt_BR' => 'flag-icon-br',
'pt_PT_ao90' => 'flag-icon-90',
'pt_AO' => 'flag-icon-ao',
'ro_RO' => 'flag-icon-ro',
'ru_RU' => 'flag-icon-ru',
'sah' => 'flag-icon-ru',
'si_LK' => 'flag-icon-lk',
'sk_SK' => 'flag-icon-sk',
'skr' => 'flag-icon-pk',
'sl_SI' => 'flag-icon-si',
'sq' => 'flag-icon-al',
'sr_RS' => 'flag-icon-rs',
'sv_SE' => 'flag-icon-se',
'szl' => 'flag-icon-pl',
'ta_IN' => 'flag-icon-in',
'ta_LK' => 'flag-icon-lk',
'te' => 'flag-icon-in',
'th' => 'flag-icon-th',
'tl' => 'flag-icon-ph',
'tr_TR' => 'flag-icon-tr',
'tt_RU' => 'flag-icon-ru',
'tah' => 'flag-icon-pf',
'ug_CN' => 'flag-icon-cn',
'uk' => 'flag-icon-ua',
'ur' => 'flag-icon-pk',
'uz_UZ' => 'flag-icon-uz',
'vi' => 'flag-icon-vn',
'zh_CN' => 'flag-icon-cn',
'zh_HK' => 'flag-icon-hk',
'zh_TW' => 'flag-icon-tw',
);

/**
* 169 unused icons in css-flags/flags/4x3/
*
*
* ags/flags/4x3/ad.svg, ags/flags/4x3/ae.svg, ags/flags/4x3/ag.svg, ags/flags/4x3/ai.svg, ags/flags/4x3/aq.svg, ags/flags/4x3/as.svg, ags/flags/4x3/aw.svg, ags/flags/4x3/ax.svg, ags/flags/4x3/bb.svg, ags/flags/4x3/bf.svg, ags/flags/4x3/bh.svg, ags/flags/4x3/bi.svg, ags/flags/4x3/bj.svg, ags/flags/4x3/bl.svg, ags/flags/4x3/bm.svg
* ags/flags/4x3/bn.svg, ags/flags/4x3/bo.svg, ags/flags/4x3/bq.svg, ags/flags/4x3/bs.svg, ags/flags/4x3/bv.svg, ags/flags/4x3/bw.svg, ags/flags/4x3/bz.svg, ags/flags/4x3/cc.svg, ags/flags/4x3/cd.svg, ags/flags/4x3/cf.svg, ags/flags/4x3/cg.svg, ags/flags/4x3/ci.svg, ags/flags/4x3/ck.svg, ags/flags/4x3/cm.svg, ags/flags/4x3/cu.svg
* ags/flags/4x3/cv.svg, ags/flags/4x3/cw.svg, ags/flags/4x3/cx.svg, ags/flags/4x3/cy.svg, ags/flags/4x3/dj.svg, ags/flags/4x3/dm.svg, ags/flags/4x3/eg.svg, ags/flags/4x3/eh.svg, ags/flags/4x3/er.svg, ags/flags/4x3/et.svg, ags/flags/4x3/fj.svg, ags/flags/4x3/fk.svg, ags/flags/4x3/fm.svg, ags/flags/4x3/fo.svg, ags/flags/4x3/ga.svg
Expand Down
Loading

0 comments on commit 7e564f5

Please sign in to comment.