From 53a10de5cf9b97b3a5fb1bf0726eb697c13e5ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 24 Aug 2014 16:36:10 +0200 Subject: [PATCH 1/3] move json and ical export buttons --- includes/view/User_view.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 8077d0af..b71f99cf 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -134,8 +134,8 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel buttons(array( $admin_user_privilege ? button(page_link_to('admin_user') . '&id=' . $user_source['UID'], ' ' . _("edit")) : '', ! $user_source['Gekommen'] ? button(page_link_to('admin_arrive') . '&arrived=' . $user_source['UID'], _("arrived")) : '', - button(page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], ' ' . _("iCal Export")), - button(page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], ' ' . _("JSON Export")) + $its_me ? button(page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], ' ' . _("iCal Export")) : '', + $its_me ? button(page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], ' ' . _("JSON Export")) : '' )), ($its_me || $admin_user_privilege) ? '

' . _("Shifts") . '

' : '', ($its_me || $admin_user_privilege) ? table(array( @@ -146,13 +146,7 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel 'comment' => _("Comment"), 'actions' => _("Action") ), $myshifts_table) : '', - $its_me && count($shifts) == 0 ? error(sprintf(_("Go to the shifts table to sign yourself up for some shifts."), page_link_to('user_shifts')), true) : '', - ($its_me || $admin_user_privilege) ? '

' . _("Exports") . '

' : '', - $its_me ? (sprintf(_("Export of shown shifts. iCal format or JSON format available (please keep secret, otherwise reset the api key)."), page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], page_link_to('user_myshifts') . '&reset')) : '', - (! $its_me && $admin_user_privilege) ? buttons(array( - button(page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], ' ' . _("iCal Export")), - button(page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], ' ' . _("JSON Export")) - )) : '' + $its_me && count($shifts) == 0 ? error(sprintf(_("Go to the shifts table to sign yourself up for some shifts."), page_link_to('user_shifts')), true) : '' )); } From fbdb8ae472fac193fef06b15d78dfd1c988c6b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 24 Aug 2014 16:46:30 +0200 Subject: [PATCH 2/3] move new messages badge --- includes/pages/user_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/user_messages.php b/includes/pages/user_messages.php index d1c51d56..d6879b5e 100644 --- a/includes/pages/user_messages.php +++ b/includes/pages/user_messages.php @@ -9,7 +9,7 @@ function user_unread_messages() { if (isset($user)) { $new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID'])); if ($new_messages > 0) - return '' . $new_messages . ''; + return '' . $new_messages . ''; } return ''; } From 9adaeaa97a36067ee718b2530d57e90f31eb92e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 24 Aug 2014 16:48:12 +0200 Subject: [PATCH 3/3] shift state text update --- includes/view/User_view.php | 4 +-- locale/de_DE.UTF-8/LC_MESSAGES/default.mo | Bin 27469 -> 27394 bytes locale/de_DE.UTF-8/LC_MESSAGES/default.po | 36 ++++++++++------------ 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index b71f99cf..4c783644 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -36,9 +36,9 @@ function User_shift_state_render($user) { $halfway = ($upcoming_shifts[0]['start'] + $upcoming_shifts[0]['end']) / 2; if (time() < $halfway) - return '' . _("Shift start %c") . ''; + return '' . _("Shift starts %c") . ''; else - return '' . _("Shift end %c") . ''; + return '' . _("Shift ends %c") . ''; } function User_view($user_source, $admin_user_privilege, $freeloader, $user_angeltypes, $user_groups, $shifts, $its_me) { diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo index efd75c752e751da045bc959ba5ab8a1592037031..b643964aeee00326bfc4411ef74c57053c14c101 100644 GIT binary patch delta 7591 zcmYk=3w+P@9>?+TW_GpBE_QR-u+1>G8Dk^cTsC9Oow>}NtdP>lCH-APa;dp>aVaDY zx~$_?(W#_dLm?GO#0d1kc&viSsHRde81u0P z_QOPDTxJ{zRa|CWh5qDUwQj;V^6z3@Jc;pm3!^Y5)|hBa$LiP>xn)XF9h;7RI0yCO z#i-{tpg-?7ACgeT&ruB=LnguefT37{8c`(%p-&v6#t2mXSS-L)R6A2q&(A~`E<%kw zklw4E+Q{UY1oTyf_9Q~E5M!_e)$kNdz~@jed>hs9Zmfp;u_~TGP4O9QjMwb_nyj1J zNkT16CaMGZ=!He-Qld8r^{^PV6k{lv(1{sv}Y4KhjC z9aC_M&2PqJ@+UAGE9)~sq)j#psx=#dX*dftmG9Z|_fb7Ri`pAMqB{I5YJ~T&3I;J< zUKon1ABpZILe)=2&0G$?j$IR&e?54e0*&Y<>cxSH&WplP55%I%lTkB}j(SnH&38bJ zv^%PUGpq|yn{NfG{yJ298?g}Ib&*hmmFSHD4UEaaQ0#{VScI=3vukc3RZTeat0`{H z50#HZJwFe9aWS$D%t{Q$-Kc>c#Wi>WRo^wSp>v!jBZD`qQB(E_Y9wD_F`h?tG_#TO zU`NzQ3egXXtt0IHap+6=BwIcm)q#0f6&E5MaG4iKXmhPXAKZj`@GYl;*=5W3p+DsZ zZ2knQ-dWU0E~2LR7gUF?+5BD94BSVZvarU^X-L2z9nf?V>RCI~i1KWOUe;l#h9}tk zB-H7cWnE#*x1j3nLUrsz^u*6l9r^;*fs?2&=p_u&`S(nAJ~SctDEW9)LoZ+eu0S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IqVc(D_CFT&>#JuA8=!oDCNcj@Fsuj11ju!woNms@{h@nJ#^1F*ajgDxugq)A9S&{S* zLf6m4VB!TrS2yZ>iCu6Y(TEsN{y*;h{Vu6ILf0VfJh*qM1%pC>*h&Jem9+Io-T z8g~i*j$rkrEQ)ko$m!guFi6KsVCfVARvhRroL>9i5G48Xzh-cvD^u=C3WoMDK@_pm)Z0KYTHCAbxTUtSIzYE?J#x1_=!c6 zN^T^U26+vOODrhfl2-SPvuWi$)9M$WZ(YMPEv>}2&7A;Sad^r7%v0t4\n" "Language-Team: \n" "Language: de_DE\n" @@ -555,7 +555,7 @@ msgstr "Jabber" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:81 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:153 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_settings.php:180 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:167 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:161 msgid "E-Mail" msgstr "E-Mail" @@ -598,7 +598,7 @@ msgstr "Privilegien" #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:55 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:32 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftEntry_view.php:32 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:183 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:177 msgid "Save" msgstr "Speichern" @@ -938,12 +938,12 @@ msgstr "T-Shirt Größe" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:159 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:261 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:181 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:175 msgid "Password" msgstr "Passwort" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:162 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:182 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:176 msgid "Confirm password" msgstr "Passwort wiederholen" @@ -1433,7 +1433,6 @@ msgid "iCal export" msgstr "iCal Export" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:747 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:151 #, php-format msgid "" "Export of shown shifts. iCal format or Schicht-Tabelle, um Dich für Schichten " "einzutragen." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:150 -msgid "Exports" -msgstr "Exporte" - -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:165 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:159 msgid "" "We will send you an e-mail with a password recovery link. Please use the " "email address you used for registration." @@ -1732,11 +1725,11 @@ msgstr "" "zurücksetzen kannst. Bitte benutze die Mailadresse, die du bei der Anmeldung " "verwendet hast." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:168 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:162 msgid "Recover" msgstr "Wiederherstellen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:179 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:173 msgid "Please enter a new password." msgstr "Gib bitte ein neues Passwort ein." @@ -1824,6 +1817,9 @@ msgstr "" "Du hast keinen Zugriff auf diese Seite. Registriere Dich und logge Dich " "bitte ein, um Zugriff zu erhalten!" +#~ msgid "Exports" +#~ msgstr "Exporte" + #~ msgid "Current ends in %s min" #~ msgstr "Ende in %s min"