From 567ed9ebd2603a5deb9c171b4d969f7188414794 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 19 Dec 2017 19:17:50 +0100 Subject: [PATCH] remove flags since they do not belong to language selection --- includes/controller/shift_entries_controller.php | 2 +- includes/helper/internationalization_helper.php | 7 ++----- public/pic/flag/de_DE.UTF-8.png | Bin 545 -> 0 bytes public/pic/flag/en_US.UTF-8.png | Bin 599 -> 0 bytes 4 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 public/pic/flag/de_DE.UTF-8.png delete mode 100644 public/pic/flag/en_US.UTF-8.png diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php index d9813ebc..c28a3e9c 100644 --- a/includes/controller/shift_entries_controller.php +++ b/includes/controller/shift_entries_controller.php @@ -123,7 +123,7 @@ function shift_entry_add_controller() 'SELECT `id` FROM `ShiftEntry` WHERE `SID`= ? AND `UID` = ?', [$shift['SID'], $user_id])) ) { - return error('This angel does already have an entry for this shift.', true); + return error(_('This angel does already have an entry for this shift.'), true); } $freeloaded = isset($shift['freeloaded']) ? $shift['freeloaded'] : false; diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php index 7fa6518b..01aca71f 100644 --- a/includes/helper/internationalization_helper.php +++ b/includes/helper/internationalization_helper.php @@ -72,11 +72,8 @@ function make_langselect() $items[] = toolbar_item_link( htmlspecialchars($url), '', - sprintf( - '%s %2$s', - url('pic/flag/' . $locale . '.png'), - $name - ) + $name, + $locale == locale() ); } return $items; diff --git a/public/pic/flag/de_DE.UTF-8.png b/public/pic/flag/de_DE.UTF-8.png deleted file mode 100644 index ac4a977362738ca7daa20784717f10f9617136b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 545 zcmV++0^a?JP)h<6BFn%a z@b8~2SoNP@zd$;E{sbbRuHQd?{QCI=sNwhbA3*&Qe}GP900=;09NYi^fU@pUdVa9*13;+Sd!tjgXKhXQEMobL97(p6<{RLvMGBN!7 j!N9=G@a-1^K!5=NcXWu!7_DDe00000NkvXXu0mjfeQx^H diff --git a/public/pic/flag/en_US.UTF-8.png b/public/pic/flag/en_US.UTF-8.png deleted file mode 100644 index ff701e19f6d2c0658fb23b1d94124cba4ce60851..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 599 zcmV-d0;v6oP)U(k2*|8J(R-+sudaynhucHbwAMTnor{mwqO^w7JHzaBsT z{O^B8RYf5+LvDs&KmRKVd78=o{`1#HTiEo_OolaGleS)G+IQ#sUI`b*pv<`1zCJ=H0jd{{2S>p`ri%{LsXJ%FbMS z$#S`6f|?OG!^Jxczkf6Q`UNF{l0Sd`ad7zm>({^EzyAS6{{CgrkluOb3l1A>ZU2~A zK+FZ=zkmP!`TOVhpFbzBzFaPmD2$N3;+$pK?>zdet`f0002ovPDHLkV1gy;I?Vt8