From 1821e15e70ded0c16d2728b26a4d31004a7722d4 Mon Sep 17 00:00:00 2001 From: saevar Date: Tue, 2 Dec 2025 11:24:58 +0000 Subject: [PATCH] First draft --- 1984-hosting-support-ui.php | 2 +- 1984-hosting-support.php | 35 ++++++++----- build-locales.sh | 0 languages/hostingsupport1984-is_IS.mo | Bin 726 -> 1465 bytes languages/hostingsupport1984-is_IS.po | 68 ++++++++++++++++++-------- languages/hostingsupport1984.pot | 57 ++++++++++++++------- 6 files changed, 111 insertions(+), 51 deletions(-) mode change 100644 => 100755 build-locales.sh diff --git a/1984-hosting-support-ui.php b/1984-hosting-support-ui.php index 24ff79d..b730efa 100644 --- a/1984-hosting-support-ui.php +++ b/1984-hosting-support-ui.php @@ -87,7 +87,7 @@ class HostingSupport1984UI * * @return String The path. */ - private function view_path(string $view_file) + private function view_path(string $view_file): string { return plugin_dir_path(__FILE__) . self::VIEWS_DIR . $view_file; } diff --git a/1984-hosting-support.php b/1984-hosting-support.php index 16b43d6..b3c29a7 100644 --- a/1984-hosting-support.php +++ b/1984-hosting-support.php @@ -2,11 +2,13 @@ /* * Plugin Name: 1984 Hosting Support - * Version: 1.0.1 - * Author: 1984 ehf + * Version: 1.1.0 + * Author: 1984 ehf. * Author URI: https://1984.hosting * Description: Support plugin for 1984 Hosting customers. * Update URI: https://git.1984.is/1984/1984-hosting-support/ + * Text Domain: hostingsupport1984 + * Domain Path: /languages */ /** @@ -97,7 +99,7 @@ class HostingSupport1984 * * @return Boolean */ - public function load_textdomain() + public function load_textdomain(): bool { return load_plugin_textdomain( 'hostingsupport1984', @@ -191,25 +193,34 @@ class HostingSupport1984 return $links; } - $warning_text = '1984: Please do not deactivate or delete this plugin - part of your WordPress Service Pack.'; + $warning_text = + __('1984 Hosting: Please do not deactivate or delete this plugin - part of your WordPress Service Pack.', 'hostingsupport1984'); $logo_1984_url = plugins_url('icons/1984-hosting-logo.webp', __FILE__); $logo_patchstack = plugins_url('icons/patchstack-logo.svg', __FILE__); - $warning_icon = - ''; + $title_1984 = __('Visit 1984 Hosting Homepage', 'hostingsupport1984'); + $title_patchstack = __('Visit Patchstack Homepage', 'hostingsupport1984'); - $links[] = - '' . $warning_icon . esc_html($warning_text) . '' . - '' + $container_open = + ''; + + $warning_icon = + ''; + + $text_html = '' . esc_html($warning_text) . ''; + + + $logos_html = + '' . - '' + '' . '1984 Hosting' . '' . - '' + '' . 'Patchstack' . @@ -217,6 +228,8 @@ class HostingSupport1984 . ''; + $links[] = $container_open . $warning_icon . $text_html . $logos_html . ''; + return $links; } diff --git a/build-locales.sh b/build-locales.sh old mode 100644 new mode 100755 diff --git a/languages/hostingsupport1984-is_IS.mo b/languages/hostingsupport1984-is_IS.mo index bc9b2ab60c32883729fbed7c4fd4a36b10a25b29..09ed18491d570b6b6ebac426477e99fdff5b6b00 100644 GIT binary patch literal 1465 zcmZ`&%ZemL6phjGRro*=bm8J|6x7bF2R+cH51gLq*2XC;rpoHUT~uadW^`sn6cLft z)=rp(A0V!r&1@P66bc4rAvl}(4^j7ST)6f`Rd-D{*a0_BJ|fON=iZyYzjpNphV=sC zEkuTR3Gp)`tUnO1BmP9Bh<_2UAiloB*muAq;LE^&fGyyarx<$^_#*H<;M>4^_%;B( zi|4kk z=WxXl#=0NuY}4o3I;jd8HnW*F?!wE22DRW;P^L*~N15QMlXLC_X@jR);LerO(yVR@ zsVJfuH;!~p3*8tx)FvAkVJ!`XnafnrfTvZ=ZfNDew8^;-HY?J`NVnKp6NW@u5vV7% zPAicm^nY@Rs|=(rEiD);O1TO`Cy>0+nmrMl(Qzs3GtIh|=^~_9xe_t^Lh0jLWQCwz zxMuwY4UEolAlwe66LyPk>M57X(mOOB3@tk?+gSl}IJuxRZLHH%VQkF6btF<39c0lM zFJSKyPu;j1cUrea=ttDIh0LPerm)dSCsaB&vq`&sjMC0RX=81Qwp}-`y>3H0D2U2+ zW24h=ty|o>Xk@suHFw%1H1sEPZfIAS0=*haTnizMwW#|?mJ59RG%&@|euC4gXm}x_ zk>Jw=)1XAFf6(7MX9b!=V}(MR#Y`mR#5WF-P_7RtExED6ef-sEKiYY+FUZM-iS|^g zGmK$EI}_#)(Pu&lv-Wg2 zh;H0EpkCbVLC&3M-7S=DU5wLO1XmkJ2_~S$uKOh#<(H%jvaaz<1vMy3dF1b3=qNki z-h{@O1wO4sf$EZ|DoM8XkE&|U2?vE=auSPh^^egkZY0g6Urzi(M}K|$J(d1fMFMH+ z#!2G&xnIUVKJpJ0#;2L_s^Y4dg2Vp;jM+Z8`Ke-dJtzOjEQ&%}f8RQP;+NP9(oITi zErfx&lIIE!m&_fkpZk?Su<}#-lfs2;mpPjTmuj6&k`YA>&jvmXe)X}mRWmV-QYdC9 z9qUV_0$mX%%CND>rP-p|KTxaM``=W?&D=kzxnaYzPS{P=@`aIs9PTSQb9^q9ywISS F{RfGw+x!3k delta 448 zcmZwBJxjwt7zgn5%^|fGMNmQE+Ep%1N)?(?gjy>?!D5RP9ONuV45oMC?y4YSKY%z$ z5M15VscRRP?2dwi&JHeq1D{lI@_`@!dw*`6eoYNO=90G>)D&0-O^^l`AgTv24<11l zJcAkV0(9^W7QrWQVwx5MIT*WfO`C?if}DlCgN*JyK}LPXkZ?4wC1DaZPk{d_e)G1H z-Q-M>or|1S`xL5QpLpC4C!(*V3a*o{+x{8@cjur>(cVfgm1k zaM71GV*X?*tHlcPGm~+Zpj9Uwz_zmGAe$XGIC9Sm qdKX8Vc%O>s@9=G-WWbYWK3+4{gRewBqcy^NM8c6&JRAk})W#3?0c&0W diff --git a/languages/hostingsupport1984-is_IS.po b/languages/hostingsupport1984-is_IS.po index ff32444..3d30707 100644 --- a/languages/hostingsupport1984-is_IS.po +++ b/languages/hostingsupport1984-is_IS.po @@ -1,41 +1,69 @@ +# Copyright (C) 2025 1984 ehf. +# This file is distributed under the same license as the 1984 Hosting Support plugin. msgid "" msgstr "" -"Project-Id-Version: 1984 Big Brother\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-19 10:05+0000\n" -"PO-Revision-Date: 2021-01-19 10:09+0000\n" -"Last-Translator: \n" -"Language-Team: Íslenska\n" -"Language: is_IS\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" +"Project-Id-Version: 1984 Hosting Support 1.1.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/1984-hosting-" +"support\n" +"Last-Translator: Sævar Bergur Sigurgeirsson \n" +"Language-Team: none\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Loco https://localise.biz/\n" -"X-Loco-Version: 2.4.2; wp-5.6" +"POT-Creation-Date: 2025-12-02T11:00:44+00:00\n" +"PO-Revision-Date: 2025-12-02T11:00:44+00:00\n" +"X-Generator: WP-CLI 2.12.0\n" +"X-Domain: hostingsupport1984\n" +"Language: is\n" -#: 1984-hosting-support-ui.php:100 +#. Plugin Name of the plugin +#: 1984-hosting-support.php 1984-hosting-support-ui.php:49 msgid "1984 Hosting Support" -msgstr "Aðstoð og stuðningur hjá 1984" +msgstr "Aðstoð og stuðningur hjá 1984 Hosting" -#. Name of the plugin -msgid "1984-hosting-support.php" +#. Description of the plugin +#: 1984-hosting-support.php +msgid "Support plugin for 1984 Hosting customers." +msgstr "Stuðningsviðbót fyrir viðskiptavini 1984 Hosting." + +#. Author of the plugin +#: 1984-hosting-support.php +msgid "1984 ehf." msgstr "" -#: views/support-dashboard-widget.php:31 +#. Author URI of the plugin +#: 1984-hosting-support.php +msgid "https://1984.hosting" +msgstr "" + +#: 1984-hosting-support.php:194 +msgid "" +"1984 Hosting: Please do not deactivate or delete this plugin - part of your " +"WordPress Service Pack." +msgstr "" +"1984 Hosting: Vinsamlegast ekki slökkva á eða eyða þessari viðbót – hún er " +"hluti af WordPress þjónustupakkanum þínum." + +#: 1984-hosting-support.php:309 +msgid "" +"For security, this action is blocked: 1984 Hosting Support and Patchstack " +"cannot be deactivated or deleted while this policy is active." +msgstr "" +"Af öryggisástæðum er þessari aðgerð hafnað: 1984 Hosting Support og Patchstack " + "er ekki hægt að slökkva á eða eyða meðan þessi regla er virk." + +#: views/support-dashboard-widget.php:21 msgid "My Profile" msgstr "Minn aðgangur" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:34 msgid "My Sites, Domains & VPSs" msgstr "Vefir, lén og sýndarvélar" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:48 msgid "Knowledge Base" msgstr "Viskubrunnur 1984" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:62 msgid "Contact Support" msgstr "Fá aðstoð" - - diff --git a/languages/hostingsupport1984.pot b/languages/hostingsupport1984.pot index 15d27ae..96724f3 100644 --- a/languages/hostingsupport1984.pot +++ b/languages/hostingsupport1984.pot @@ -1,41 +1,60 @@ +# Copyright (C) 2025 1984 ehf. +# This file is distributed under the same license as the 1984 Hosting Support plugin. msgid "" msgstr "" -"Project-Id-Version: 1984 Big Brother\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-19 10:05+0000\n" -"PO-Revision-Date: 2021-01-19 10:09+0000\n" -"Last-Translator: \n" -"Language-Team: Íslenska\n" -"Language: is_IS\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" +"Project-Id-Version: 1984 Hosting Support 1.1.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/1984-hosting-support\n" +"Last-Translator: Sævar Bergur Sigurgeirsson \n" +"Language-Team: none\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Loco https://localise.biz/\n" -"X-Loco-Version: 2.4.2; wp-5.6" +"POT-Creation-Date: 2025-12-02T11:00:44+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.12.0\n" +"X-Domain: hostingsupport1984\n" -#: 1984-hosting-support-ui.php:100 +#. Plugin Name of the plugin +#: 1984-hosting-support.php +#: 1984-hosting-support-ui.php:49 msgid "1984 Hosting Support" msgstr "Aðstoð og stuðningur hjá 1984" -#. Name of the plugin -msgid "1984-hosting-support.php" +#. Description of the plugin +#: 1984-hosting-support.php +msgid "Support plugin for 1984 Hosting customers." msgstr "" -#: views/support-dashboard-widget.php:31 +#. Author of the plugin +#: 1984-hosting-support.php +msgid "1984 ehf." +msgstr "" + +#. Author URI of the plugin +#: 1984-hosting-support.php +msgid "https://1984.hosting" +msgstr "" + +#: 1984-hosting-support.php:194 +msgid "1984 Hosting: Please do not deactivate or delete this plugin - part of your WordPress Service Pack." +msgstr "" + +#: 1984-hosting-support.php:309 +msgid "For security, this action is blocked: 1984 Hosting Support and Patchstack cannot be deactivated or deleted while this policy is active." +msgstr "" + +#: views/support-dashboard-widget.php:21 msgid "My Profile" msgstr "" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:34 msgid "My Sites, Domains & VPSs" msgstr "" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:48 msgid "Knowledge Base" msgstr "" -#: views/support-dashboard-widget.php:15 +#: views/support-dashboard-widget.php:62 msgid "Contact Support" msgstr "" - -