From 41c58c30a573edecf9cd587f952784cec49145f8 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:03:41 +0000 Subject: [PATCH 1/9] Update plugin brand name --- README.md | 2 +- gp-toolbox.php | 2 +- includes/class-toolbox.php | 2 +- phpcs.xml.dist | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f266bab..7a2db3f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Toolbox for GlotPress +# GP Toolbox Set of tools to help you manage your GlotPress. diff --git a/gp-toolbox.php b/gp-toolbox.php index f654e07..89556d5 100644 --- a/gp-toolbox.php +++ b/gp-toolbox.php @@ -1,6 +1,6 @@ ' . esc_html_x( 'Toolbox for GlotPress', 'Plugin name', 'gp-toolbox' ) . '', + '' . esc_html_x( 'GP Toolbox', 'Plugin name', 'gp-toolbox' ) . '', esc_html__( 'GlotPress not found. Please install and activate it.', 'gp-toolbox' ) ); ?> diff --git a/phpcs.xml.dist b/phpcs.xml.dist index aab525b..a1fc8ed 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -1,6 +1,6 @@ - - A custom set of PHPCS rules for Toolbox for GlotPress. + + A custom set of PHPCS rules for GP Toolbox. . From a84c74a74ad3570b5293c0c48be6f0d22c30d510 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:04:03 +0000 Subject: [PATCH 2/9] Add script to build language files --- composer.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/composer.json b/composer.json index b318ab0..bf52748 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,14 @@ "optimize-autoloader": true }, "scripts": { + "i18n": [ + "@i18n:pot", + "@i18n:po", + "@i18n:json" + ], + "i18n:pot": "wp i18n make-pot . languages/gp-toolbox.pot", + "i18n:po": "wp i18n update-po languages/gp-toolbox.pot languages", + "i18n:json": "wp i18n make-json languages --no-purge", "build": [ "@lint", "@compile" From 3b23d4c1815c53b26bd382c3268712778a00c0bd Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:04:18 +0000 Subject: [PATCH 3/9] Build language files --- ...t_PT-221bd724601009ea17a1e33e8a3bb777.json | 1 + ...t_PT-347d8f09879f3ac76270b4c1206d2256.json | 1 + languages/gp-toolbox-pt_PT.mo | Bin 9156 -> 10431 bytes languages/gp-toolbox-pt_PT.po | 409 ++++++++------- languages/gp-toolbox.pot | 480 +++++++++--------- 5 files changed, 481 insertions(+), 410 deletions(-) create mode 100644 languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json create mode 100644 languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json diff --git a/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json b/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json new file mode 100644 index 0000000..a8bb17f --- /dev/null +++ b/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json @@ -0,0 +1 @@ +{"translation-revision-date":"2024-02-07 09:46+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/tools-permissions.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Deleting...":["A eliminar..."],"%s Permission found.":["%s permiss\u00e3o encontrada.","%s permiss\u00f5es encontradas."],"No permissions found.":["Nenhuma permiss\u00e3o encontrada."],"Error: %s":["Erro: %s"]}}} \ No newline at end of file diff --git a/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json b/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json new file mode 100644 index 0000000..95c766e --- /dev/null +++ b/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json @@ -0,0 +1 @@ +{"translation-revision-date":"2024-02-07 09:46+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/project.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Old":["Antigas"],"Rejected":["Rejeitadas"],"Changes requested":[""],"Deleting...":["A eliminar..."]}}} \ No newline at end of file diff --git a/languages/gp-toolbox-pt_PT.mo b/languages/gp-toolbox-pt_PT.mo index 40d4f24050640bac155ecbe4b43945698b081749..dc4fa24ef1794184ee63521b452b3e86fb9b7ecf 100644 GIT binary patch delta 4050 zcmchYe{5A(9l+0P3*B1FW3+`0M&Btb(9)m$*bpet(w2?_{Xsj$GS^++yQP=C-ury_ zKEOz-5!?@_8Mx4_a(a-nY`yPc1 z!V>l5ec$JtbI&>7@A>|?_k910BiY|9D*LjcC6L>Z&Qhg55AU7NAMN-}N@d_fumZjZ zn_$V!N{zr4xCVX(Hp4Tp5&i)2cecf+s3!*HHbSyf)C)IuhzAQP$%*1!f> z4mUx5s++&N;aLmOUd=fqh*MCT<$KmVn+t8^B_TRcdsXoRU%Dzb`7fnHpeszM5 zC^`%K;j?fRyaZd}%BWJe!co`*lTZx(F60vGSt!nWDIC878yLR^Md9D!23W!^OW;N* z>o>zF`c-#0F#=`depm)S4aF0mh1KvYuogZAm%^9eV)$!F)YL^tbkuuL6sud5+6gM4 zxPAnV!W3+S=V7*)&P6))Ft$jk<**xWhZ7Lv)z_gYej4I!^)eL2uR?z6ZT`fde?l>M zG1kiSW+74R!T*vBWn51l)Q4OTWn&){0|uZ0_d&_# z??cIrx8PIwK8p1j#xL9!Pz*Q?rAnTGV)zfC z&A0=KL2p8-vUi|VS?Oy0FAtW{k%Lx45?ZxDS+E02l8wVgn1OP@ z6OcSp=b#w;b0{}@1AYqr4oa0I*d$5)MHqonnv!G9$VU+DmHP)ugdauZRV$^^gX}^! zA(C*r5oy~I3751OB8s-jfF^k&O)jw)Ie>^~wjv1xyHqzK`7$5bC;BBxB<|9B5s8ts zu>k60upQxDlP}E)D7O|5kXxz?`8dMoBL5Bnc`pgekzr(~3}}*1;z@Z2NGn5svBir$ zrFf61_2GB`jw2G=tJ|7zLh@rBaxffA_@v#BNK!T+JCH5Nhmn3nT6RBwgNVeb6xoby zK%`0C%ZH**1~kbPiSs?k9;5`3HX0ybHTQ=70_M@V3Ar25NC#4Al(9H1_}t3dP37J# zKUq@RKdk+;6%S{P_>>+>TZb&$Na`uW)rL+PY18&}XWU7c+fr%guo?FztVCyfexgn9 zn$+HunKrfMYTGF+9}X63%a*4)VR*(t!!`9$%bUv2xW=@pclEZ&AXtOmY@nEvoOEi+ zu+2o9>JyvB(uVCO4bO6HJ!*RYE7P*qvh8a9*SGL}9Or~iy}swN;_0IQKY;J%+V_EN z^NP;R+7qsM1JRwUPQvkDvDEg`rIzXXMy1Y8R6Y^$S5!6lomE}Y-L`YoF1p3_AFO($ zb11q@Whj|Y1^*R0u76;`irn~u#Swonx@?upvLj~th-Dtt&ZIVyNo~YE z>xiihJE5I}u9Gx9(_b51?x&*bYm*t0Qro0!8C5doILU*~vF|O+Mf_K8X>M}W*e6q_ zy2pMXZ)D@HUVX>PL{o91V2qnvvgpo8#pM%xqk6ahuWH+Wu;#$P&{%6v+RUeSYp>y% zn{~zTQ0qSPh~<*;;ncd0bsJhc*0pwQ)E%2PZ@8}I5KAf>VM-v)$qtNe)m37^Ko!2!pcYf&~ugK}y+hh5vZCT!56FP&pQQWbo z%(z8H`03@d<%9VwGW`0w+G?Xsb=#hG$Z(6*>UY)E`roQskULQ~9`Sd^su#*<$PMj2 zJ#)_VkH=Q74rr&UhV-s9q}*Lw{I&r_?$@@ bTPa8Nnr_ipU99EHH%ZKS?&j`WF&X&}u)0yt delta 2847 zcmajgeP~s69LMqB-KLwH%{lkrY`L>Xo%8B8pSGFlnr`OQ-MM8sO`CO<3-g|F@13bx zSF$3oBsjDnA|Va@BP+cql7ZkuNu?&mG@?>Tl(2||vWV*ax%VsxH~g{heVude@1Ebo z_j}Hcx1VZ>ewUr{nxU;F3W?Fl#zgV25q!{YryA3Te_%S=X~tCIHf+azI0b*hDl8sl z%w$}KMYtKKVn0sAllUfHMTUr)D0fxI7cdLoL5+O`bMPZ%Y;yrK@M~O**N}UdX^?bJ&6dSfQm(9Bqu33yW|(hOr4>Mor`kWGpj)Bk_uRegn%m zzvVjq9%E*5J`a;HgzDetx*gSjC#K+j%+XdK;9wk{z+4=_33wC9hDps#tSAFZInTvr ztVeC>4(z}^I1O)M6_$)49k?9%GrfH1{yUJxn|_RzbMQ6?d3Xl(gYPjLJ>)|Z$w8%J zI;!77)K;!W(r%tWt+WT#FO2u%OQ`<)FdvVhR{kaG_m{HRe~W|5?gh_SCd2tC)YiX? zy5S*YPUaJ&tGS3%@CNFJdpX&Hhj2;9D+uF`Ybo z#-7(45F(07;5WJV>_O6&n@=-KF%w#23t`5wxS;K=TJL$ z1!rS)H2b9=G@**B8#TawRIwaFP3#P+XwIXG>l@SxQu*;*^rEUhfbm*z4WkCyhDyOf zUaR~)E{e?e{G7*3RERK_nMbT4lzTNzKuty2 zLOeh$AhZK&npicVogHj#9B91dL>;k8`B&p1h!=?pX^}3_8VOPxe=}-VRONb7)S8He zLfK=xdPG$#BQ$;&2ZK%9RY8;y&F;mAFqv3EP^15A z%6qGOg|}|}|Hoj5P7bCJkGdCXUA6UtZL-!slUPX<5oE&D6AgskXfp`qaxtN%O4ehi zwk&~}jt>%#5Gr6Fp*m2_km`7`sqoekj}c1=~v0(565*9I%7#WQMx^`Ru}p8v{Wr*uBZ0 zq7LirE!GA*Wc@eu*!Ap~C;QGNIj`qTE3-QMk>T$iHl160{jr~OW_falytm`cYxVis zI=xLHe|LnLdKY#_{0&xZb?r=Vb&YpMwN*2_p?XeLH7(uO=3U|69MFn}?pGJ@=RB2X zJ0Ikwr8Zc-k#)XK=UU#H*em&SlRUQbX+eFe9olemuN`*I7gRcbre(zDPk1(|D!!%7 z{!oa02u8Z^NMDD&KIFITcmhup_Qy^Y{WRQ~jujUbCGt7!{hYJKHBMT|Jg2MV+699a+a+ObuWHhBI8GLN*v diff --git a/languages/gp-toolbox-pt_PT.po b/languages/gp-toolbox-pt_PT.po index 855ebc8..0c871fb 100644 --- a/languages/gp-toolbox-pt_PT.po +++ b/languages/gp-toolbox-pt_PT.po @@ -1,15 +1,15 @@ msgid "" msgstr "" -"Project-Id-Version: Toolbox for GlotPress\n" +"Project-Id-Version: GP Toolbox\n" "Report-Msgid-Bugs-To: https://github.com/pedro-mendonca/GP-Toolbox/issues\n" -"POT-Creation-Date: 2024-01-30 16:07+0000\n" -"PO-Revision-Date: 2024-01-30 16:08+0000\n" "Last-Translator: Pedro Mendonça \n" "Language-Team: Pedro Mendonça \n" -"Language: pt_PT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2024-02-07 09:46+0000\n" +"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.0.4\n" "X-Poedit-SourceCharset: UTF-8\n" @@ -22,140 +22,140 @@ msgstr "" "X-Poedit-SearchPathExcluded-0: node_modules\n" "X-Poedit-SearchPathExcluded-1: vendor\n" -#: assets/js/project.js:38 assets/js/project.min.js:1 #: includes/class-toolbox.php:472 +#: assets/js/project.js:38 msgid "Old" msgstr "Antigas" -#: assets/js/project.js:44 assets/js/project.min.js:1 #: includes/class-toolbox.php:473 +#: assets/js/project.js:44 msgid "Rejected" msgstr "Rejeitadas" -#: assets/js/project.js:50 assets/js/project.min.js:1 +#: assets/js/project.js:50 msgid "Changes requested" msgstr "" -#: assets/js/project.js:216 assets/js/project.min.js:1 -#: assets/js/tools-permissions.js:92 assets/js/tools-permissions.min.js:1 +#: assets/js/project.js:216 +#: assets/js/tools-permissions.js:92 msgid "Deleting..." msgstr "A eliminar..." -#: assets/js/tools-permissions.js:117 assets/js/tools-permissions.min.js:1 -#: gp-templates/gptoolbox-permissions.php:99 -#: gp-templates/gptoolbox-permissions.php:210 -#, php-format, javascript-format +#. translators: %s: Permissions count. +#: gp-templates/gptoolbox-permissions.php:118 +#: gp-templates/gptoolbox-permissions.php:229 +#: assets/js/tools-permissions.js:116 +#, php-format,javascript-format msgid "%s Permission found." msgid_plural "%s Permissions found." msgstr[0] "%s permissão encontrada." msgstr[1] "%s permissões encontradas." -#: assets/js/tools-permissions.js:127 assets/js/tools-permissions.min.js:1 -#: gp-templates/gptoolbox-permissions.php:89 -#: gp-templates/gptoolbox-permissions.php:192 +#: gp-templates/gptoolbox-permissions.php:109 +#: gp-templates/gptoolbox-permissions.php:212 +#: assets/js/tools-permissions.js:127 msgid "No permissions found." msgstr "Nenhuma permissão encontrada." #. translators: %s Error message. -#: assets/js/tools-permissions.js:142 assets/js/tools-permissions.min.js:1 +#: assets/js/tools-permissions.js:142 #, javascript-format msgid "Error: %s" msgstr "Erro: %s" -#: gp-templates/gptoolbox-about.php:13 -msgid "About < Tools < GlotPress" -msgstr "Sobre < Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-about.php:18 gp-templates/gptoolbox-glossaries.php:20 -#: gp-templates/gptoolbox-originals.php:20 -#: gp-templates/gptoolbox-permissions.php:20 -#: gp-templates/gptoolbox-tools.php:18 gp-templates/gptoolbox-tools.php:26 -#: gp-templates/gptoolbox-translation-sets.php:21 includes/class-toolbox.php:90 +#: gp-templates/gptoolbox-about.php:14 +#: gp-templates/gptoolbox-glossaries.php:16 +#: gp-templates/gptoolbox-originals.php:16 +#: gp-templates/gptoolbox-permissions.php:16 +#: gp-templates/gptoolbox-tools.php:14 +#: gp-templates/gptoolbox-tools.php:27 +#: gp-templates/gptoolbox-translation-sets.php:17 +#: gp-templates/gptoolbox-translations.php:16 +#: includes/class-toolbox.php:90 msgid "Tools" msgstr "Ferramentas" -#: gp-templates/gptoolbox-about.php:19 includes/class-toolbox.php:598 +#: gp-templates/gptoolbox-about.php:15 +#: includes/class-toolbox.php:596 msgid "About" msgstr "Sobre" -#: gp-templates/gptoolbox-about.php:27 -msgid "About GP-Toolbox" -msgstr "Sobre o GP-Toolbox" +#: gp-templates/gptoolbox-about.php:28 +msgid "About GP Toolbox" +msgstr "Sobre o GP Toolbox" -#. Description of the plugin/theme -#: gp-templates/gptoolbox-about.php:37 +#. Description of the plugin +#: gp-templates/gptoolbox-about.php:38 msgid "This set of tools extends the functionality of GlotPress, bringing to light any potential problems hidden under the hood, keeping it clean, fast and trouble-free." msgstr "Este conjunto de ferramentas amplia as funcionalidades do GlotPress, trazendo à luz quaisquer potenciais problemas escondidos, mantendo-o limpo, rápido e livre de problemas." -#: gp-templates/gptoolbox-about.php:42 +#: gp-templates/gptoolbox-about.php:43 msgid "Support" msgstr "Suporte" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:49 +#: gp-templates/gptoolbox-about.php:50 #, php-format msgid "For Support, please use the %1$sSupport Forum%2$s on WordPress.org." msgstr "Para obter suporte, use o %1$sfórum de suporte %2$s em WordPress.org." -#: gp-templates/gptoolbox-about.php:60 +#: gp-templates/gptoolbox-about.php:61 msgid "Feature requests and bug reports" msgstr "Pedidos de funcionalidades e relatórios de erros" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:67 +#: gp-templates/gptoolbox-about.php:68 #, php-format msgid "You are welcome to report any issues or add feature suggestions on the %1$sGitHub repository%2$s." msgstr "O seu contributo é bem-vindo, pode reportar erros ou fazer sugestões de funcionalidades no %1$srepositório do GitHub%2$s." -#: gp-templates/gptoolbox-about.php:78 +#: gp-templates/gptoolbox-about.php:79 msgid "Sponsor" msgstr "Patrocinador" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:85 +#: gp-templates/gptoolbox-about.php:86 #, php-format msgid "Do you like %1$s? Support its development by becoming a %2$sSponsor%3$s!" msgstr "Gosta do %1$s? Apoie o seu desenvolvimento tornando-se %2$sPatrocinador%3$s!" -#: gp-templates/gptoolbox-about.php:86 +#: gp-templates/gptoolbox-about.php:87 +#: includes/class-toolbox.php:181 msgctxt "Plugin name" msgid "GP Toolbox" msgstr "GP Toolbox" -#: gp-templates/gptoolbox-glossaries.php:15 -msgid "Glossaries < Tools < GlotPress" -msgstr "Glossários < Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-glossaries.php:21 -#: gp-templates/gptoolbox-glossaries.php:29 includes/class-toolbox.php:578 +#: gp-templates/gptoolbox-glossaries.php:17 +#: gp-templates/gptoolbox-glossaries.php:30 +#: includes/class-toolbox.php:576 msgid "Glossaries" msgstr "Glossários" -#: gp-templates/gptoolbox-glossaries.php:39 +#: gp-templates/gptoolbox-glossaries.php:40 #: gp-templates/gptoolbox-tools-glossaries.php:14 msgid "Overview of all Global and Project Glossaries." msgstr "Visão geral de todos os glossários globais e de projectos." -#: gp-templates/gptoolbox-glossaries.php:41 -msgid "The scope of Glossaries can be either global or project." +#: gp-templates/gptoolbox-glossaries.php:44 +msgid "The type of Glossaries can be global or project." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:43 +#: gp-templates/gptoolbox-glossaries.php:46 msgid "Each Glossary belongs to a Translation Set, identified by translation_set_id. If there is no Translation Set in the database with the same ID, then the Glossary is orphaned." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:71 +#: gp-templates/gptoolbox-glossaries.php:94 msgid "No glossaries found." msgstr "Nenhum glossário encontrado." -#. translators: 1: Glossaries total. 2: Global glossaries. 3: Project glossaries. 4: Unkown type glossaries. 5: Unkown glossaries with orphaned entries. -#: gp-templates/gptoolbox-glossaries.php:99 +#. translators: 1: Glossaries total. 2: Global glossaries. 3: Project glossaries. 4: Unknown type glossaries. 5: Unknown glossaries with orphaned entries. +#: gp-templates/gptoolbox-glossaries.php:123 #, php-format msgid "Glossaries: %1$s %2$s %3$s %4$s %5$s" msgstr "Glossários: %1$s %2$s %3$s %4$s %5$s" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:102 +#: gp-templates/gptoolbox-glossaries.php:126 #, php-format msgid "%s glossary." msgid_plural "All %s glossaries." @@ -163,7 +163,7 @@ msgstr[0] "%s glossário." msgstr[1] "Todos os %s glossários." #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:107 +#: gp-templates/gptoolbox-glossaries.php:131 #, php-format msgid "%s Global glossary." msgid_plural "%s Global glossaries." @@ -171,7 +171,7 @@ msgstr[0] "%s glossário global." msgstr[1] "%s glossários globais." #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:112 +#: gp-templates/gptoolbox-glossaries.php:136 #, php-format msgid "%s Project glossary." msgid_plural "%s Project glossaries." @@ -179,7 +179,7 @@ msgstr[0] "%s glossário de projecto." msgstr[1] "%s glossários de projectos." #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:117 +#: gp-templates/gptoolbox-glossaries.php:141 #, php-format msgid "%s Glossary of unknown translation set." msgid_plural "%s Glossaries of unknown translation set." @@ -187,112 +187,122 @@ msgstr[0] "%s glossário de conjunto de tradução desconhecido." msgstr[1] "%s glossários de conjuntos de tradução desconhecidos." #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:122 +#: gp-templates/gptoolbox-glossaries.php:146 #, php-format msgid "Entries from %s unknown glossary." msgid_plural "Entries from %s unknown glossaries." msgstr[0] "Registos de %s glossário desconhecido." msgstr[1] "Registos de %s glossários desconhecidos." -#: gp-templates/gptoolbox-glossaries.php:138 -#: gp-templates/gptoolbox-originals.php:140 -#: gp-templates/gptoolbox-permissions.php:111 -#: gp-templates/gptoolbox-permissions.php:222 -#: gp-templates/gptoolbox-translation-sets.php:76 +#: gp-templates/gptoolbox-glossaries.php:162 +#: gp-templates/gptoolbox-originals.php:162 +#: gp-templates/gptoolbox-permissions.php:131 +#: gp-templates/gptoolbox-permissions.php:242 +#: gp-templates/gptoolbox-translation-sets.php:89 +#: gp-templates/gptoolbox-translations.php:104 +#: gp-templates/gptoolbox-translations.php:287 msgid "Filter:" msgstr "Filtrar:" -#: gp-templates/gptoolbox-glossaries.php:138 -#: gp-templates/gptoolbox-originals.php:140 -#: gp-templates/gptoolbox-permissions.php:111 -#: gp-templates/gptoolbox-permissions.php:222 -#: gp-templates/gptoolbox-translation-sets.php:76 +#: gp-templates/gptoolbox-glossaries.php:162 +#: gp-templates/gptoolbox-originals.php:162 +#: gp-templates/gptoolbox-permissions.php:131 +#: gp-templates/gptoolbox-permissions.php:242 +#: gp-templates/gptoolbox-translation-sets.php:89 +#: gp-templates/gptoolbox-translations.php:104 +#: gp-templates/gptoolbox-translations.php:287 msgid "Search" msgstr "Pesquisar" -#: gp-templates/gptoolbox-glossaries.php:139 -#: gp-templates/gptoolbox-originals.php:141 -#: gp-templates/gptoolbox-permissions.php:112 -#: gp-templates/gptoolbox-permissions.php:223 -#: gp-templates/gptoolbox-translation-sets.php:77 +#: gp-templates/gptoolbox-glossaries.php:163 +#: gp-templates/gptoolbox-originals.php:163 +#: gp-templates/gptoolbox-permissions.php:132 +#: gp-templates/gptoolbox-permissions.php:243 +#: gp-templates/gptoolbox-translation-sets.php:90 +#: gp-templates/gptoolbox-translations.php:105 msgid "Clear search filter." msgstr "Limpar filtro de pesquisa." -#: gp-templates/gptoolbox-glossaries.php:139 -#: gp-templates/gptoolbox-originals.php:141 -#: gp-templates/gptoolbox-permissions.php:112 -#: gp-templates/gptoolbox-permissions.php:223 -#: gp-templates/gptoolbox-translation-sets.php:77 +#: gp-templates/gptoolbox-glossaries.php:163 +#: gp-templates/gptoolbox-originals.php:163 +#: gp-templates/gptoolbox-permissions.php:132 +#: gp-templates/gptoolbox-permissions.php:243 +#: gp-templates/gptoolbox-translation-sets.php:90 +#: gp-templates/gptoolbox-translations.php:105 msgid "Clear" msgstr "Limpar" -#: gp-templates/gptoolbox-glossaries.php:145 -#: gp-templates/gptoolbox-permissions.php:118 -#: gp-templates/gptoolbox-permissions.php:229 -#: gp-templates/gptoolbox-translation-sets.php:83 +#: gp-templates/gptoolbox-glossaries.php:169 +#: gp-templates/gptoolbox-permissions.php:138 +#: gp-templates/gptoolbox-permissions.php:249 +#: gp-templates/gptoolbox-translation-sets.php:96 msgid "ID" msgstr "ID" -#: gp-templates/gptoolbox-glossaries.php:146 +#: gp-templates/gptoolbox-glossaries.php:170 msgid "Type" msgstr "Tipo" -#: gp-templates/gptoolbox-glossaries.php:147 -#: gp-templates/gptoolbox-translation-sets.php:87 +#: gp-templates/gptoolbox-glossaries.php:171 +#: gp-templates/gptoolbox-translation-sets.php:100 msgid "Locale" msgstr "Locale" -#: gp-templates/gptoolbox-glossaries.php:148 -#: gp-templates/gptoolbox-glossaries.php:228 -#: gp-templates/gptoolbox-originals.php:147 -#: gp-templates/gptoolbox-permissions.php:231 -#: gp-templates/gptoolbox-translation-sets.php:86 +#: gp-templates/gptoolbox-glossaries.php:172 +#: gp-templates/gptoolbox-glossaries.php:257 +#: gp-templates/gptoolbox-originals.php:169 +#: gp-templates/gptoolbox-permissions.php:251 +#: gp-templates/gptoolbox-translation-sets.php:99 +#: gp-templates/gptoolbox-translations.php:112 msgid "Project" msgstr "Projecto" -#: gp-templates/gptoolbox-glossaries.php:149 +#: gp-templates/gptoolbox-glossaries.php:173 msgid "Entries" msgstr "Registos" #. translators: Known identifier data. -#: gp-templates/gptoolbox-glossaries.php:178 -#: gp-templates/gptoolbox-permissions.php:346 +#: gp-templates/gptoolbox-glossaries.php:203 +#: gp-templates/gptoolbox-permissions.php:366 #, php-format msgid "Unknown translation set (%s)" msgstr "Conjunto de tradução desconhecido (%s)" #. translators: %d ID number. -#: gp-templates/gptoolbox-glossaries.php:181 -#: gp-templates/gptoolbox-glossaries.php:253 -#: gp-templates/gptoolbox-glossaries.php:319 -#: gp-templates/gptoolbox-originals.php:175 -#: gp-templates/gptoolbox-permissions.php:152 -#: gp-templates/gptoolbox-permissions.php:282 -#: gp-templates/gptoolbox-permissions.php:314 -#: gp-templates/gptoolbox-translation-sets.php:123 +#: gp-templates/gptoolbox-glossaries.php:206 +#: gp-templates/gptoolbox-glossaries.php:282 +#: gp-templates/gptoolbox-glossaries.php:352 +#: gp-templates/gptoolbox-originals.php:197 +#: gp-templates/gptoolbox-permissions.php:172 +#: gp-templates/gptoolbox-permissions.php:302 +#: gp-templates/gptoolbox-permissions.php:334 +#: gp-templates/gptoolbox-translation-sets.php:136 +#: gp-templates/gptoolbox-translations.php:151 #, php-format msgid "ID #%d" msgstr "ID #%d" -#: gp-templates/gptoolbox-glossaries.php:204 +#: gp-templates/gptoolbox-glossaries.php:232 msgid "Global" msgstr "Global" #. translators: Known identifier data. -#: gp-templates/gptoolbox-glossaries.php:250 -#: gp-templates/gptoolbox-originals.php:172 -#: gp-templates/gptoolbox-permissions.php:311 -#: gp-templates/gptoolbox-translation-sets.php:120 +#: gp-templates/gptoolbox-glossaries.php:279 +#: gp-templates/gptoolbox-originals.php:194 +#: gp-templates/gptoolbox-permissions.php:331 +#: gp-templates/gptoolbox-translation-sets.php:133 +#: gp-templates/gptoolbox-translations.php:148 #, php-format msgid "Unknown project (%s)" msgstr "Projecto desconhecido (%s)" -#: gp-templates/gptoolbox-glossaries.php:311 +#. translators: 1: Glossary entries count. 2: Known identifier data. +#: gp-templates/gptoolbox-glossaries.php:343 #, php-format msgid "%1$d orphaned glossary entry from unknown glossary (%2$s)" msgid_plural "%1$d orphaned glossary entries from unknown glossary (%2$s)" -msgstr[0] "%1$d registo orfão de um glossário desconhecido (%2$s)" -msgstr[1] "%1$d registos orfãos de um glossário desconhecido (%2$s)" +msgstr[0] "%1$d registo órfão de um glossário desconhecido (%2$s)" +msgstr[1] "%1$d registos órfãos de um glossário desconhecido (%2$s)" #. translators: 1: Link opening tag. 2: Link closing tag. #: gp-templates/gptoolbox-header.php:55 @@ -300,59 +310,57 @@ msgstr[1] "%1$d registos orfãos de um glossário desconhecido (%2$s)" msgid "Attention: Before cleaning any data, please make sure you %1$sbackup your database%2$s first, as any deletion of data will be irreversible." msgstr "Atenção: Antes de limpar quaisquer dados, primeiro certifique-se de %1$sfazer uma cópia de segurança da sua base de dados%2$s, uma vez que qualquer limpeza será irreversível." -#: gp-templates/gptoolbox-originals.php:15 -msgid "Originals < Tools < GlotPress" -msgstr "Originais < Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-originals.php:21 -#: gp-templates/gptoolbox-originals.php:29 includes/class-toolbox.php:558 +#: gp-templates/gptoolbox-originals.php:17 +#: gp-templates/gptoolbox-originals.php:30 +#: includes/class-toolbox.php:558 msgid "Originals" msgstr "Originais" -#: gp-templates/gptoolbox-originals.php:39 +#: gp-templates/gptoolbox-originals.php:40 msgid "Overview of all Originals for each Project." msgstr "Visão geral de todos os originais, por projecto." -#: gp-templates/gptoolbox-originals.php:41 -msgid "The Originals status can be either +active or -obsolete." -msgstr "" +#: gp-templates/gptoolbox-originals.php:44 +msgid "Each Original has a parent project_id. If there is no parent Project in the database with the same ID, then the Original is orphaned." +msgstr "Cada Original tem um project_id. Se não existir nenhum Projecto com o mesmo ID na base de dados, então o Original é órfão." -#: gp-templates/gptoolbox-originals.php:43 -msgid "Each Original belongs to a Project, identified by project_id. If there is no Project in the database with the same ID, then the Original is orphaned." +#. translators: %l: List of originals statuses. +#: gp-templates/gptoolbox-originals.php:50 +msgid "The Originals can have one of the following statuses: %l." msgstr "" -#: gp-templates/gptoolbox-originals.php:56 +#: gp-templates/gptoolbox-originals.php:79 msgctxt "Singular noun" msgid "Active" msgstr "Activo" -#: gp-templates/gptoolbox-originals.php:57 +#: gp-templates/gptoolbox-originals.php:80 msgctxt "Plural noun" msgid "Active" msgstr "Activos" -#: gp-templates/gptoolbox-originals.php:60 +#: gp-templates/gptoolbox-originals.php:83 msgctxt "Singular noun" msgid "Obsolete" msgstr "Obsoleto" -#: gp-templates/gptoolbox-originals.php:61 +#: gp-templates/gptoolbox-originals.php:84 msgctxt "Plural noun" msgid "Obsolete" msgstr "Obsoletos" -#: gp-templates/gptoolbox-originals.php:101 +#: gp-templates/gptoolbox-originals.php:123 msgid "No originals found." msgstr "Nenhum original encontrado." #. translators: 1: Originals total. 2: Active originals. 3: Obsolete originals. 4: Unknown projects with originals. -#: gp-templates/gptoolbox-originals.php:112 +#: gp-templates/gptoolbox-originals.php:134 #, php-format msgid "Originals: %1$s %2$s %3$s %4$s" msgstr "Originais: %1$s %2$s %3$s %4$s" #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:115 +#: gp-templates/gptoolbox-originals.php:137 #, php-format msgid "%s original." msgid_plural "All %s originals." @@ -360,7 +368,7 @@ msgstr[0] "%s original." msgstr[1] "Todos os %s originais." #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:120 +#: gp-templates/gptoolbox-originals.php:142 #, php-format msgid "%s active original." msgid_plural "%s active originals." @@ -368,7 +376,7 @@ msgstr[0] "%s original activo." msgstr[1] "%s originais activos." #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:125 +#: gp-templates/gptoolbox-originals.php:147 #, php-format msgid "%s obsolete original." msgid_plural "%s obsolete originals." @@ -376,82 +384,81 @@ msgstr[0] "%s original obsoleto." msgstr[1] "%s originais obsoletos." #. translators: %s: Number of Projects. -#: gp-templates/gptoolbox-originals.php:130 +#: gp-templates/gptoolbox-originals.php:152 #, php-format msgid "Originals from %s unknown project." msgid_plural "Originals from %s unknown projects." msgstr[0] "Originais de %s projecto desconhecido." msgstr[1] "Originais de %s projectos desconhecidos." -#: gp-templates/gptoolbox-permissions.php:15 -msgid "Permissions < Tools < GlotPress" -msgstr "Permissões < Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-permissions.php:21 -#: gp-templates/gptoolbox-permissions.php:29 includes/class-toolbox.php:544 +#: gp-templates/gptoolbox-permissions.php:17 +#: gp-templates/gptoolbox-permissions.php:30 +#: includes/class-toolbox.php:544 msgid "Permissions" msgstr "Permissões" -#: gp-templates/gptoolbox-permissions.php:39 +#: gp-templates/gptoolbox-permissions.php:40 #: gp-templates/gptoolbox-tools-permissions.php:14 msgid "Overview of all Administrators and Validators for each Project and Translation Set." msgstr "Visão geral de todos os administradores e validadores de cada projecto e conjunto de tradução." -#: gp-templates/gptoolbox-permissions.php:41 +#: gp-templates/gptoolbox-permissions.php:42 msgid "The Permissions can be either Admin or Validator. Admins can administer GlotPress, and Validators can create, edit and approve translations for the specified Translation Sets." msgstr "" -#: gp-templates/gptoolbox-permissions.php:43 +#: gp-templates/gptoolbox-permissions.php:44 msgid "Each Permission belongs to a User, identified by user_id. If there is no User in the WordPress database with the same ID, then the Permission is orphaned." msgstr "" -#: gp-templates/gptoolbox-permissions.php:45 +#: gp-templates/gptoolbox-permissions.php:46 msgid "Each Validator Permission has a specified project|locale|set-slug. If there is no Project or Translation Set in the database with the same IDs, then the Permission is orphaned." msgstr "" -#: gp-templates/gptoolbox-permissions.php:55 +#: gp-templates/gptoolbox-permissions.php:75 msgctxt "Singular noun" msgid "Administrator" msgstr "Administrador" -#: gp-templates/gptoolbox-permissions.php:56 +#: gp-templates/gptoolbox-permissions.php:76 msgctxt "Plural noun" msgid "Administrators" msgstr "Administradores" -#: gp-templates/gptoolbox-permissions.php:59 +#: gp-templates/gptoolbox-permissions.php:79 msgctxt "Singular noun" msgid "Validator" msgstr "Validador" -#: gp-templates/gptoolbox-permissions.php:60 +#: gp-templates/gptoolbox-permissions.php:80 msgctxt "Plural noun" msgid "Validators" msgstr "Validadores" -#: gp-templates/gptoolbox-permissions.php:119 -#: gp-templates/gptoolbox-permissions.php:230 +#: gp-templates/gptoolbox-permissions.php:139 +#: gp-templates/gptoolbox-permissions.php:250 msgid "User" msgstr "Utilizador" #. translators: Known identifier data. -#: gp-templates/gptoolbox-permissions.php:149 -#: gp-templates/gptoolbox-permissions.php:279 +#: gp-templates/gptoolbox-permissions.php:169 +#: gp-templates/gptoolbox-permissions.php:299 #, php-format msgid "Unknown user (%s)" msgstr "Utilizador desconhecido (%s)" -#: gp-templates/gptoolbox-permissions.php:232 +#: gp-templates/gptoolbox-permissions.php:252 +#: gp-templates/gptoolbox-translations.php:111 +#: gp-templates/gptoolbox-translations.php:315 msgid "Translation Set" msgstr "Conjunto de tradução" #. translators: Known identifier data. -#: gp-templates/gptoolbox-permissions.php:367 +#: gp-templates/gptoolbox-permissions.php:387 #, php-format msgid "Unknown type (%s)" msgstr "Tipo desconhecido (%s)" -#: gp-templates/gptoolbox-permissions.php:386 +#: gp-templates/gptoolbox-permissions.php:406 msgid "Duplicate" msgstr "Duplicado" @@ -465,7 +472,7 @@ msgstr "" #: gp-templates/gptoolbox-tools-originals.php:14 msgid "Overview of all active and obsolete Originals for each Project." -msgstr "" +msgstr "Visão geral de todos os originais activos e obsoletos para cada projecto." #: gp-templates/gptoolbox-tools-originals.php:17 msgid "Find Originals for unknown Projects. (e.g. Related Project was deleted)" @@ -492,7 +499,7 @@ msgid "Find and delete Permissions of unknown types." msgstr "Encontre e elimine permissões de tipos desconhecidos." #: gp-templates/gptoolbox-tools-translation-sets.php:14 -#: gp-templates/gptoolbox-translation-sets.php:40 +#: gp-templates/gptoolbox-translation-sets.php:41 msgid "Overview of all Translation Sets." msgstr "Visão geral de todos os conjuntos de tradução." @@ -500,36 +507,81 @@ msgstr "Visão geral de todos os conjuntos de tradução." msgid "Find Translation Sets of unknown Projects. (e.g. Related Project was deleted)" msgstr "" -#: gp-templates/gptoolbox-tools.php:13 -msgid "Tools < GlotPress" -msgstr "Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-translation-sets.php:16 -msgid "Translation Sets < Tools < GlotPress" -msgstr "Conjuntos de tradução < Ferramentas < GlotPress" - -#: gp-templates/gptoolbox-translation-sets.php:22 -#: gp-templates/gptoolbox-translation-sets.php:30 +#: gp-templates/gptoolbox-translation-sets.php:18 +#: gp-templates/gptoolbox-translation-sets.php:31 #: includes/class-toolbox.php:564 msgid "Translation Sets" msgstr "Conjuntos de tradução" -#: gp-templates/gptoolbox-translation-sets.php:42 -msgid "Each Translation Set belongs to a Project, identified by project_id. If there is no Project in the database with the same ID, then the Translation Set is orphaned." -msgstr "" +#: gp-templates/gptoolbox-translation-sets.php:46 +msgid "Each Translation Set has a parent project_id. If there is no parent Project in the database with the same ID, then the Translation Set is orphaned." +msgstr "Cada Conjunto de tradução tem um project_id. Se não existir nenhum Projecto com o mesmo ID na base de dados, então o Conjunto de tradução é órfão" -#: gp-templates/gptoolbox-translation-sets.php:67 +#: gp-templates/gptoolbox-translation-sets.php:80 msgid "No translation sets found." msgstr "Nenhum conjunto de tradução encontrado." -#: gp-templates/gptoolbox-translation-sets.php:84 +#: gp-templates/gptoolbox-translation-sets.php:97 msgid "Name" msgstr "Nome" -#: gp-templates/gptoolbox-translation-sets.php:85 +#: gp-templates/gptoolbox-translation-sets.php:98 msgid "Slug" msgstr "Slug" +#: gp-templates/gptoolbox-translations.php:17 +#: gp-templates/gptoolbox-translations.php:30 +#: gp-templates/gptoolbox-translations.php:115 +#: gp-templates/gptoolbox-translations.php:322 +#: includes/class-toolbox.php:570 +msgid "Translations" +msgstr "Traduções" + +#: gp-templates/gptoolbox-translations.php:40 +msgid "Overview of all Translations." +msgstr "Visão geral de todas as traduções." + +#: gp-templates/gptoolbox-translations.php:45 +msgid "Each Translation has a parent original_id. If there is no parent Original in the database with the same ID, then the Translation is orphaned." +msgstr "Cada Tradução tem um original_id. Se não existir nenhum Original com o mesmo ID na base de dados, então a Tradução é órfã." + +#: gp-templates/gptoolbox-translations.php:49 +msgid "Each Translation has a parent translation_set_id. If there is no parent Translation Set in the database with the same ID, then the Translation is orphaned." +msgstr "Cada Tradução tem um translation_set_id. Se não existir nenhum Conjunto de tradução com o mesmo ID na base de dados, então a Tradução é órfã." + +#. translators: %l: List of translation statuses. +#: gp-templates/gptoolbox-translations.php:64 +msgid "The Translations can have one of the following statuses: %l." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:95 +msgid "No translations found." +msgstr "Nenhuma tradução encontrada." + +#: gp-templates/gptoolbox-translations.php:113 +msgid "Known Originals" +msgstr "Originais conhecidos" + +#: gp-templates/gptoolbox-translations.php:114 +msgid "Unknown Originals" +msgstr "Originais desconhecidos" + +#. translators: 1: Active status; 2: Obsolete status. +#: gp-templates/gptoolbox-translations.php:228 +#, php-format +msgid "Translations can be from a known Original (%1$s or %2$s), or from an Original that don't exist anymore in the database." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:320 +msgid "Original" +msgstr "Original" + +#. translators: Known identifier data. +#: gp-templates/gptoolbox-translations.php:389 +#, php-format +msgid "Unknown (ID #%d)" +msgstr "Desconhecido (ID #%d)" + #: includes/class-rest-api.php:179 msgid "Permission not found." msgstr "Permissão não encontrada." @@ -548,11 +600,6 @@ msgstr "Falha ao eliminar permissão." msgid "%1$s: %2$s" msgstr "%1$s: %2$s" -#: includes/class-toolbox.php:181 -msgctxt "Plugin name" -msgid "Toolbox for GlotPress" -msgstr "Toolbox for GlotPress" - #: includes/class-toolbox.php:182 msgid "GlotPress not found. Please install and activate it." msgstr "GlotPress não encontrado. Por favor, instale-o e active-o." @@ -569,18 +616,22 @@ msgstr "Imprecisa" msgid "Waiting" msgstr "Pendentes" -#. Plugin Name of the plugin/theme +#: includes/class-toolbox.php:629 +msgid "GlotPress" +msgstr "GlotPress" + +#. Plugin Name of the plugin msgid "GP Toolbox" -msgstr "Toolbox for GlotPress" +msgstr "GP Toolbox" -#. Plugin URI of the plugin/theme +#. Plugin URI of the plugin msgid "https://github.com/pedro-mendonca/GP-Toolbox" msgstr "https://github.com/pedro-mendonca/GP-Toolbox" -#. Author of the plugin/theme +#. Author of the plugin msgid "Pedro Mendonça" msgstr "Pedro Mendonça" -#. Author URI of the plugin/theme +#. Author URI of the plugin msgid "https://profiles.wordpress.org/pedromendonca/" msgstr "https://profiles.wordpress.org/pedromendonca/" diff --git a/languages/gp-toolbox.pot b/languages/gp-toolbox.pot index bd47520..4aede5e 100644 --- a/languages/gp-toolbox.pot +++ b/languages/gp-toolbox.pot @@ -1,293 +1,258 @@ -#, fuzzy +# Copyright (C) 2024 Pedro Mendonça +# This file is distributed under the GPL v2 or later. msgid "" msgstr "" -"Project-Id-Version: Toolbox for GlotPress\n" -"Report-Msgid-Bugs-To: https://github.com/pedro-mendonca/GP-Toolbox/issues\n" -"POT-Creation-Date: \n" -"PO-Revision-Date: \n" -"Last-Translator: \n" -"Language-Team: Pedro Mendonça \n" +"Project-Id-Version: GP Toolbox 1.0.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gp-toolbox\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.4\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" -"X-Textdomain-Support: yes\n" -"X-Poedit-Basepath: ..\n" -"X-Poedit-WPHeader: gp-toolbox.php\n" -"X-Poedit-Flags-xgettext: --add-comments=translators:\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-SearchPathExcluded-0: node_modules\n" -"X-Poedit-SearchPathExcluded-1: vendor\n" - -#: assets/js/project.js:38 assets/js/project.min.js:1 -#: includes/class-toolbox.php:472 -msgid "Old" -msgstr "" - -#: assets/js/project.js:44 assets/js/project.min.js:1 -#: includes/class-toolbox.php:473 -msgid "Rejected" -msgstr "" +"POT-Creation-Date: 2024-02-07T09:47:12+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.7.1\n" +"X-Domain: gp-toolbox\n" -#: assets/js/project.js:50 assets/js/project.min.js:1 -msgid "Changes requested" +#. Plugin Name of the plugin +msgid "GP Toolbox" msgstr "" -#: assets/js/project.js:216 assets/js/project.min.js:1 -#: assets/js/tools-permissions.js:92 assets/js/tools-permissions.min.js:1 -msgid "Deleting..." +#. Plugin URI of the plugin +msgid "https://github.com/pedro-mendonca/GP-Toolbox" msgstr "" -#: assets/js/tools-permissions.js:117 assets/js/tools-permissions.min.js:1 -#: gp-templates/gptoolbox-permissions.php:99 -#: gp-templates/gptoolbox-permissions.php:210 -#, php-format, javascript-format -msgid "%s Permission found." -msgid_plural "%s Permissions found." -msgstr[0] "" -msgstr[1] "" - -#: assets/js/tools-permissions.js:127 assets/js/tools-permissions.min.js:1 -#: gp-templates/gptoolbox-permissions.php:89 -#: gp-templates/gptoolbox-permissions.php:192 -msgid "No permissions found." +#. Description of the plugin +#: gp-templates/gptoolbox-about.php:38 +msgid "This set of tools extends the functionality of GlotPress, bringing to light any potential problems hidden under the hood, keeping it clean, fast and trouble-free." msgstr "" -#. translators: %s Error message. -#: assets/js/tools-permissions.js:142 assets/js/tools-permissions.min.js:1 -#, javascript-format -msgid "Error: %s" +#. Author of the plugin +msgid "Pedro Mendonça" msgstr "" -#: gp-templates/gptoolbox-about.php:13 -msgid "About < Tools < GlotPress" +#. Author URI of the plugin +msgid "https://profiles.wordpress.org/pedromendonca/" msgstr "" -#: gp-templates/gptoolbox-about.php:18 gp-templates/gptoolbox-glossaries.php:20 -#: gp-templates/gptoolbox-originals.php:20 -#: gp-templates/gptoolbox-permissions.php:20 -#: gp-templates/gptoolbox-tools.php:18 gp-templates/gptoolbox-tools.php:26 -#: gp-templates/gptoolbox-translation-sets.php:21 includes/class-toolbox.php:90 +#: gp-templates/gptoolbox-about.php:14 +#: gp-templates/gptoolbox-glossaries.php:16 +#: gp-templates/gptoolbox-originals.php:16 +#: gp-templates/gptoolbox-permissions.php:16 +#: gp-templates/gptoolbox-tools.php:14 +#: gp-templates/gptoolbox-tools.php:27 +#: gp-templates/gptoolbox-translation-sets.php:17 +#: gp-templates/gptoolbox-translations.php:16 +#: includes/class-toolbox.php:90 msgid "Tools" msgstr "" -#: gp-templates/gptoolbox-about.php:19 includes/class-toolbox.php:598 +#: gp-templates/gptoolbox-about.php:15 +#: includes/class-toolbox.php:596 msgid "About" msgstr "" -#: gp-templates/gptoolbox-about.php:27 -msgid "About GP-Toolbox" -msgstr "" - -#. Description of the plugin/theme -#: gp-templates/gptoolbox-about.php:37 -msgid "This set of tools extends the functionality of GlotPress, bringing to light any potential problems hidden under the hood, keeping it clean, fast and trouble-free." +#: gp-templates/gptoolbox-about.php:28 +msgid "About GP Toolbox" msgstr "" -#: gp-templates/gptoolbox-about.php:42 +#: gp-templates/gptoolbox-about.php:43 msgid "Support" msgstr "" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:49 -#, php-format +#: gp-templates/gptoolbox-about.php:50 msgid "For Support, please use the %1$sSupport Forum%2$s on WordPress.org." msgstr "" -#: gp-templates/gptoolbox-about.php:60 +#: gp-templates/gptoolbox-about.php:61 msgid "Feature requests and bug reports" msgstr "" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:67 -#, php-format +#: gp-templates/gptoolbox-about.php:68 msgid "You are welcome to report any issues or add feature suggestions on the %1$sGitHub repository%2$s." msgstr "" -#: gp-templates/gptoolbox-about.php:78 +#: gp-templates/gptoolbox-about.php:79 msgid "Sponsor" msgstr "" #. translators: 1: Link opening tag. 2: Link closing tag. -#: gp-templates/gptoolbox-about.php:85 -#, php-format +#: gp-templates/gptoolbox-about.php:86 msgid "Do you like %1$s? Support its development by becoming a %2$sSponsor%3$s!" msgstr "" -#: gp-templates/gptoolbox-about.php:86 +#: gp-templates/gptoolbox-about.php:87 +#: includes/class-toolbox.php:181 msgctxt "Plugin name" msgid "GP Toolbox" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:15 -msgid "Glossaries < Tools < GlotPress" -msgstr "" - -#: gp-templates/gptoolbox-glossaries.php:21 -#: gp-templates/gptoolbox-glossaries.php:29 includes/class-toolbox.php:578 +#: gp-templates/gptoolbox-glossaries.php:17 +#: gp-templates/gptoolbox-glossaries.php:30 +#: includes/class-toolbox.php:576 msgid "Glossaries" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:39 +#: gp-templates/gptoolbox-glossaries.php:40 #: gp-templates/gptoolbox-tools-glossaries.php:14 msgid "Overview of all Global and Project Glossaries." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:41 -msgid "The scope of Glossaries can be either global or project." +#: gp-templates/gptoolbox-glossaries.php:44 +msgid "The type of Glossaries can be global or project." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:43 +#: gp-templates/gptoolbox-glossaries.php:46 msgid "Each Glossary belongs to a Translation Set, identified by translation_set_id. If there is no Translation Set in the database with the same ID, then the Glossary is orphaned." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:71 +#: gp-templates/gptoolbox-glossaries.php:94 msgid "No glossaries found." msgstr "" -#. translators: 1: Glossaries total. 2: Global glossaries. 3: Project glossaries. 4: Unkown type glossaries. 5: Unkown glossaries with orphaned entries. -#: gp-templates/gptoolbox-glossaries.php:99 -#, php-format +#. translators: 1: Glossaries total. 2: Global glossaries. 3: Project glossaries. 4: Unknown type glossaries. 5: Unknown glossaries with orphaned entries. +#: gp-templates/gptoolbox-glossaries.php:123 msgid "Glossaries: %1$s %2$s %3$s %4$s %5$s" msgstr "" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:102 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:126 msgid "%s glossary." msgid_plural "All %s glossaries." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:107 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:131 msgid "%s Global glossary." msgid_plural "%s Global glossaries." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:112 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:136 msgid "%s Project glossary." msgid_plural "%s Project glossaries." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:117 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:141 msgid "%s Glossary of unknown translation set." msgid_plural "%s Glossaries of unknown translation set." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Glossaries. -#: gp-templates/gptoolbox-glossaries.php:122 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:146 msgid "Entries from %s unknown glossary." msgid_plural "Entries from %s unknown glossaries." msgstr[0] "" msgstr[1] "" -#: gp-templates/gptoolbox-glossaries.php:138 -#: gp-templates/gptoolbox-originals.php:140 -#: gp-templates/gptoolbox-permissions.php:111 -#: gp-templates/gptoolbox-permissions.php:222 -#: gp-templates/gptoolbox-translation-sets.php:76 +#: gp-templates/gptoolbox-glossaries.php:162 +#: gp-templates/gptoolbox-originals.php:162 +#: gp-templates/gptoolbox-permissions.php:131 +#: gp-templates/gptoolbox-permissions.php:242 +#: gp-templates/gptoolbox-translation-sets.php:89 +#: gp-templates/gptoolbox-translations.php:104 +#: gp-templates/gptoolbox-translations.php:287 msgid "Filter:" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:138 -#: gp-templates/gptoolbox-originals.php:140 -#: gp-templates/gptoolbox-permissions.php:111 -#: gp-templates/gptoolbox-permissions.php:222 -#: gp-templates/gptoolbox-translation-sets.php:76 +#: gp-templates/gptoolbox-glossaries.php:162 +#: gp-templates/gptoolbox-originals.php:162 +#: gp-templates/gptoolbox-permissions.php:131 +#: gp-templates/gptoolbox-permissions.php:242 +#: gp-templates/gptoolbox-translation-sets.php:89 +#: gp-templates/gptoolbox-translations.php:104 +#: gp-templates/gptoolbox-translations.php:287 msgid "Search" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:139 -#: gp-templates/gptoolbox-originals.php:141 -#: gp-templates/gptoolbox-permissions.php:112 -#: gp-templates/gptoolbox-permissions.php:223 -#: gp-templates/gptoolbox-translation-sets.php:77 +#: gp-templates/gptoolbox-glossaries.php:163 +#: gp-templates/gptoolbox-originals.php:163 +#: gp-templates/gptoolbox-permissions.php:132 +#: gp-templates/gptoolbox-permissions.php:243 +#: gp-templates/gptoolbox-translation-sets.php:90 +#: gp-templates/gptoolbox-translations.php:105 msgid "Clear search filter." msgstr "" -#: gp-templates/gptoolbox-glossaries.php:139 -#: gp-templates/gptoolbox-originals.php:141 -#: gp-templates/gptoolbox-permissions.php:112 -#: gp-templates/gptoolbox-permissions.php:223 -#: gp-templates/gptoolbox-translation-sets.php:77 +#: gp-templates/gptoolbox-glossaries.php:163 +#: gp-templates/gptoolbox-originals.php:163 +#: gp-templates/gptoolbox-permissions.php:132 +#: gp-templates/gptoolbox-permissions.php:243 +#: gp-templates/gptoolbox-translation-sets.php:90 +#: gp-templates/gptoolbox-translations.php:105 msgid "Clear" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:145 -#: gp-templates/gptoolbox-permissions.php:118 -#: gp-templates/gptoolbox-permissions.php:229 -#: gp-templates/gptoolbox-translation-sets.php:83 +#: gp-templates/gptoolbox-glossaries.php:169 +#: gp-templates/gptoolbox-permissions.php:138 +#: gp-templates/gptoolbox-permissions.php:249 +#: gp-templates/gptoolbox-translation-sets.php:96 msgid "ID" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:146 +#: gp-templates/gptoolbox-glossaries.php:170 msgid "Type" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:147 -#: gp-templates/gptoolbox-translation-sets.php:87 +#: gp-templates/gptoolbox-glossaries.php:171 +#: gp-templates/gptoolbox-translation-sets.php:100 msgid "Locale" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:148 -#: gp-templates/gptoolbox-glossaries.php:228 -#: gp-templates/gptoolbox-originals.php:147 -#: gp-templates/gptoolbox-permissions.php:231 -#: gp-templates/gptoolbox-translation-sets.php:86 +#: gp-templates/gptoolbox-glossaries.php:172 +#: gp-templates/gptoolbox-glossaries.php:257 +#: gp-templates/gptoolbox-originals.php:169 +#: gp-templates/gptoolbox-permissions.php:251 +#: gp-templates/gptoolbox-translation-sets.php:99 +#: gp-templates/gptoolbox-translations.php:112 msgid "Project" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:149 +#: gp-templates/gptoolbox-glossaries.php:173 msgid "Entries" msgstr "" #. translators: Known identifier data. -#: gp-templates/gptoolbox-glossaries.php:178 -#: gp-templates/gptoolbox-permissions.php:346 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:203 +#: gp-templates/gptoolbox-permissions.php:366 msgid "Unknown translation set (%s)" msgstr "" #. translators: %d ID number. -#: gp-templates/gptoolbox-glossaries.php:181 -#: gp-templates/gptoolbox-glossaries.php:253 -#: gp-templates/gptoolbox-glossaries.php:319 -#: gp-templates/gptoolbox-originals.php:175 -#: gp-templates/gptoolbox-permissions.php:152 -#: gp-templates/gptoolbox-permissions.php:282 -#: gp-templates/gptoolbox-permissions.php:314 -#: gp-templates/gptoolbox-translation-sets.php:123 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:206 +#: gp-templates/gptoolbox-glossaries.php:282 +#: gp-templates/gptoolbox-glossaries.php:352 +#: gp-templates/gptoolbox-originals.php:197 +#: gp-templates/gptoolbox-permissions.php:172 +#: gp-templates/gptoolbox-permissions.php:302 +#: gp-templates/gptoolbox-permissions.php:334 +#: gp-templates/gptoolbox-translation-sets.php:136 +#: gp-templates/gptoolbox-translations.php:151 msgid "ID #%d" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:204 +#: gp-templates/gptoolbox-glossaries.php:232 msgid "Global" msgstr "" #. translators: Known identifier data. -#: gp-templates/gptoolbox-glossaries.php:250 -#: gp-templates/gptoolbox-originals.php:172 -#: gp-templates/gptoolbox-permissions.php:311 -#: gp-templates/gptoolbox-translation-sets.php:120 -#, php-format +#: gp-templates/gptoolbox-glossaries.php:279 +#: gp-templates/gptoolbox-originals.php:194 +#: gp-templates/gptoolbox-permissions.php:331 +#: gp-templates/gptoolbox-translation-sets.php:133 +#: gp-templates/gptoolbox-translations.php:148 msgid "Unknown project (%s)" msgstr "" -#: gp-templates/gptoolbox-glossaries.php:311 -#, php-format +#. translators: 1: Glossary entries count. 2: Known identifier data. +#: gp-templates/gptoolbox-glossaries.php:343 msgid "%1$d orphaned glossary entry from unknown glossary (%2$s)" msgid_plural "%1$d orphaned glossary entries from unknown glossary (%2$s)" msgstr[0] "" @@ -295,162 +260,166 @@ msgstr[1] "" #. translators: 1: Link opening tag. 2: Link closing tag. #: gp-templates/gptoolbox-header.php:55 -#, php-format msgid "Attention: Before cleaning any data, please make sure you %1$sbackup your database%2$s first, as any deletion of data will be irreversible." msgstr "" -#: gp-templates/gptoolbox-originals.php:15 -msgid "Originals < Tools < GlotPress" -msgstr "" - -#: gp-templates/gptoolbox-originals.php:21 -#: gp-templates/gptoolbox-originals.php:29 includes/class-toolbox.php:558 +#: gp-templates/gptoolbox-originals.php:17 +#: gp-templates/gptoolbox-originals.php:30 +#: includes/class-toolbox.php:558 msgid "Originals" msgstr "" -#: gp-templates/gptoolbox-originals.php:39 +#: gp-templates/gptoolbox-originals.php:40 msgid "Overview of all Originals for each Project." msgstr "" -#: gp-templates/gptoolbox-originals.php:41 -msgid "The Originals status can be either +active or -obsolete." +#: gp-templates/gptoolbox-originals.php:44 +msgid "Each Original has a parent project_id. If there is no parent Project in the database with the same ID, then the Original is orphaned." msgstr "" -#: gp-templates/gptoolbox-originals.php:43 -msgid "Each Original belongs to a Project, identified by project_id. If there is no Project in the database with the same ID, then the Original is orphaned." +#. translators: %l: List of originals statuses. +#: gp-templates/gptoolbox-originals.php:50 +msgid "The Originals can have one of the following statuses: %l." msgstr "" -#: gp-templates/gptoolbox-originals.php:56 +#: gp-templates/gptoolbox-originals.php:79 msgctxt "Singular noun" msgid "Active" msgstr "" -#: gp-templates/gptoolbox-originals.php:57 +#: gp-templates/gptoolbox-originals.php:80 msgctxt "Plural noun" msgid "Active" msgstr "" -#: gp-templates/gptoolbox-originals.php:60 +#: gp-templates/gptoolbox-originals.php:83 msgctxt "Singular noun" msgid "Obsolete" msgstr "" -#: gp-templates/gptoolbox-originals.php:61 +#: gp-templates/gptoolbox-originals.php:84 msgctxt "Plural noun" msgid "Obsolete" msgstr "" -#: gp-templates/gptoolbox-originals.php:101 +#: gp-templates/gptoolbox-originals.php:123 msgid "No originals found." msgstr "" #. translators: 1: Originals total. 2: Active originals. 3: Obsolete originals. 4: Unknown projects with originals. -#: gp-templates/gptoolbox-originals.php:112 -#, php-format +#: gp-templates/gptoolbox-originals.php:134 msgid "Originals: %1$s %2$s %3$s %4$s" msgstr "" #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:115 -#, php-format +#: gp-templates/gptoolbox-originals.php:137 msgid "%s original." msgid_plural "All %s originals." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:120 -#, php-format +#: gp-templates/gptoolbox-originals.php:142 msgid "%s active original." msgid_plural "%s active originals." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Originals. -#: gp-templates/gptoolbox-originals.php:125 -#, php-format +#: gp-templates/gptoolbox-originals.php:147 msgid "%s obsolete original." msgid_plural "%s obsolete originals." msgstr[0] "" msgstr[1] "" #. translators: %s: Number of Projects. -#: gp-templates/gptoolbox-originals.php:130 -#, php-format +#: gp-templates/gptoolbox-originals.php:152 msgid "Originals from %s unknown project." msgid_plural "Originals from %s unknown projects." msgstr[0] "" msgstr[1] "" -#: gp-templates/gptoolbox-permissions.php:15 -msgid "Permissions < Tools < GlotPress" -msgstr "" - -#: gp-templates/gptoolbox-permissions.php:21 -#: gp-templates/gptoolbox-permissions.php:29 includes/class-toolbox.php:544 +#: gp-templates/gptoolbox-permissions.php:17 +#: gp-templates/gptoolbox-permissions.php:30 +#: includes/class-toolbox.php:544 msgid "Permissions" msgstr "" -#: gp-templates/gptoolbox-permissions.php:39 +#: gp-templates/gptoolbox-permissions.php:40 #: gp-templates/gptoolbox-tools-permissions.php:14 msgid "Overview of all Administrators and Validators for each Project and Translation Set." msgstr "" -#: gp-templates/gptoolbox-permissions.php:41 +#: gp-templates/gptoolbox-permissions.php:42 msgid "The Permissions can be either Admin or Validator. Admins can administer GlotPress, and Validators can create, edit and approve translations for the specified Translation Sets." msgstr "" -#: gp-templates/gptoolbox-permissions.php:43 +#: gp-templates/gptoolbox-permissions.php:44 msgid "Each Permission belongs to a User, identified by user_id. If there is no User in the WordPress database with the same ID, then the Permission is orphaned." msgstr "" -#: gp-templates/gptoolbox-permissions.php:45 +#: gp-templates/gptoolbox-permissions.php:46 msgid "Each Validator Permission has a specified project|locale|set-slug. If there is no Project or Translation Set in the database with the same IDs, then the Permission is orphaned." msgstr "" -#: gp-templates/gptoolbox-permissions.php:55 +#: gp-templates/gptoolbox-permissions.php:75 msgctxt "Singular noun" msgid "Administrator" msgstr "" -#: gp-templates/gptoolbox-permissions.php:56 +#: gp-templates/gptoolbox-permissions.php:76 msgctxt "Plural noun" msgid "Administrators" msgstr "" -#: gp-templates/gptoolbox-permissions.php:59 +#: gp-templates/gptoolbox-permissions.php:79 msgctxt "Singular noun" msgid "Validator" msgstr "" -#: gp-templates/gptoolbox-permissions.php:60 +#: gp-templates/gptoolbox-permissions.php:80 msgctxt "Plural noun" msgid "Validators" msgstr "" -#: gp-templates/gptoolbox-permissions.php:119 -#: gp-templates/gptoolbox-permissions.php:230 +#: gp-templates/gptoolbox-permissions.php:109 +#: gp-templates/gptoolbox-permissions.php:212 +#: assets/js/tools-permissions.js:127 +msgid "No permissions found." +msgstr "" + +#. translators: %s: Permissions count. +#: gp-templates/gptoolbox-permissions.php:118 +#: gp-templates/gptoolbox-permissions.php:229 +#: assets/js/tools-permissions.js:116 +msgid "%s Permission found." +msgid_plural "%s Permissions found." +msgstr[0] "" +msgstr[1] "" + +#: gp-templates/gptoolbox-permissions.php:139 +#: gp-templates/gptoolbox-permissions.php:250 msgid "User" msgstr "" #. translators: Known identifier data. -#: gp-templates/gptoolbox-permissions.php:149 -#: gp-templates/gptoolbox-permissions.php:279 -#, php-format +#: gp-templates/gptoolbox-permissions.php:169 +#: gp-templates/gptoolbox-permissions.php:299 msgid "Unknown user (%s)" msgstr "" -#: gp-templates/gptoolbox-permissions.php:232 +#: gp-templates/gptoolbox-permissions.php:252 +#: gp-templates/gptoolbox-translations.php:111 +#: gp-templates/gptoolbox-translations.php:315 msgid "Translation Set" msgstr "" #. translators: Known identifier data. -#: gp-templates/gptoolbox-permissions.php:367 -#, php-format +#: gp-templates/gptoolbox-permissions.php:387 msgid "Unknown type (%s)" msgstr "" -#: gp-templates/gptoolbox-permissions.php:386 +#: gp-templates/gptoolbox-permissions.php:406 msgid "Duplicate" msgstr "" @@ -491,7 +460,7 @@ msgid "Find and delete Permissions of unknown types." msgstr "" #: gp-templates/gptoolbox-tools-translation-sets.php:14 -#: gp-templates/gptoolbox-translation-sets.php:40 +#: gp-templates/gptoolbox-translation-sets.php:41 msgid "Overview of all Translation Sets." msgstr "" @@ -499,36 +468,79 @@ msgstr "" msgid "Find Translation Sets of unknown Projects. (e.g. Related Project was deleted)" msgstr "" -#: gp-templates/gptoolbox-tools.php:13 -msgid "Tools < GlotPress" -msgstr "" - -#: gp-templates/gptoolbox-translation-sets.php:16 -msgid "Translation Sets < Tools < GlotPress" -msgstr "" - -#: gp-templates/gptoolbox-translation-sets.php:22 -#: gp-templates/gptoolbox-translation-sets.php:30 +#: gp-templates/gptoolbox-translation-sets.php:18 +#: gp-templates/gptoolbox-translation-sets.php:31 #: includes/class-toolbox.php:564 msgid "Translation Sets" msgstr "" -#: gp-templates/gptoolbox-translation-sets.php:42 -msgid "Each Translation Set belongs to a Project, identified by project_id. If there is no Project in the database with the same ID, then the Translation Set is orphaned." +#: gp-templates/gptoolbox-translation-sets.php:46 +msgid "Each Translation Set has a parent project_id. If there is no parent Project in the database with the same ID, then the Translation Set is orphaned." msgstr "" -#: gp-templates/gptoolbox-translation-sets.php:67 +#: gp-templates/gptoolbox-translation-sets.php:80 msgid "No translation sets found." msgstr "" -#: gp-templates/gptoolbox-translation-sets.php:84 +#: gp-templates/gptoolbox-translation-sets.php:97 msgid "Name" msgstr "" -#: gp-templates/gptoolbox-translation-sets.php:85 +#: gp-templates/gptoolbox-translation-sets.php:98 msgid "Slug" msgstr "" +#: gp-templates/gptoolbox-translations.php:17 +#: gp-templates/gptoolbox-translations.php:30 +#: gp-templates/gptoolbox-translations.php:115 +#: gp-templates/gptoolbox-translations.php:322 +#: includes/class-toolbox.php:570 +msgid "Translations" +msgstr "" + +#: gp-templates/gptoolbox-translations.php:40 +msgid "Overview of all Translations." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:45 +msgid "Each Translation has a parent original_id. If there is no parent Original in the database with the same ID, then the Translation is orphaned." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:49 +msgid "Each Translation has a parent translation_set_id. If there is no parent Translation Set in the database with the same ID, then the Translation is orphaned." +msgstr "" + +#. translators: %l: List of translation statuses. +#: gp-templates/gptoolbox-translations.php:64 +msgid "The Translations can have one of the following statuses: %l." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:95 +msgid "No translations found." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:113 +msgid "Known Originals" +msgstr "" + +#: gp-templates/gptoolbox-translations.php:114 +msgid "Unknown Originals" +msgstr "" + +#. translators: 1: Active status; 2: Obsolete status. +#: gp-templates/gptoolbox-translations.php:228 +msgid "Translations can be from a known Original (%1$s or %2$s), or from an Original that don't exist anymore in the database." +msgstr "" + +#: gp-templates/gptoolbox-translations.php:320 +msgid "Original" +msgstr "" + +#. translators: Known identifier data. +#: gp-templates/gptoolbox-translations.php:389 +msgid "Unknown (ID #%d)" +msgstr "" + #: includes/class-rest-api.php:179 msgid "Permission not found." msgstr "" @@ -543,15 +555,9 @@ msgstr "" #. translators: 1: Plugin name. 2: Error message. #: includes/class-toolbox.php:180 -#, php-format msgid "%1$s: %2$s" msgstr "" -#: includes/class-toolbox.php:181 -msgctxt "Plugin name" -msgid "Toolbox for GlotPress" -msgstr "" - #: includes/class-toolbox.php:182 msgid "GlotPress not found. Please install and activate it." msgstr "" @@ -568,18 +574,30 @@ msgstr "" msgid "Waiting" msgstr "" -#. Plugin Name of the plugin/theme -msgid "GP Toolbox" +#: includes/class-toolbox.php:472 +#: assets/js/project.js:38 +msgid "Old" msgstr "" -#. Plugin URI of the plugin/theme -msgid "https://github.com/pedro-mendonca/GP-Toolbox" +#: includes/class-toolbox.php:473 +#: assets/js/project.js:44 +msgid "Rejected" msgstr "" -#. Author of the plugin/theme -msgid "Pedro Mendonça" +#: includes/class-toolbox.php:629 +msgid "GlotPress" msgstr "" -#. Author URI of the plugin/theme -msgid "https://profiles.wordpress.org/pedromendonca/" +#: assets/js/project.js:50 +msgid "Changes requested" +msgstr "" + +#: assets/js/project.js:216 +#: assets/js/tools-permissions.js:92 +msgid "Deleting..." +msgstr "" + +#. translators: %s Error message. +#: assets/js/tools-permissions.js:142 +msgid "Error: %s" msgstr "" From 903dd6b59099e523dee95ff283ee2cd2fdd4fe1d Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:04:43 +0000 Subject: [PATCH 4/9] Add GlotPress SVG icon --- assets/img/glotpress-logo-inverted.svg | 28 ++++++++++++++++++++++++++ assets/img/glotpress-logo.svg | 28 ++++++++++++++++++++++++++ assets/img/index.php | 10 +++++++++ 3 files changed, 66 insertions(+) create mode 100644 assets/img/glotpress-logo-inverted.svg create mode 100644 assets/img/glotpress-logo.svg create mode 100644 assets/img/index.php diff --git a/assets/img/glotpress-logo-inverted.svg b/assets/img/glotpress-logo-inverted.svg new file mode 100644 index 0000000..3ea69e6 --- /dev/null +++ b/assets/img/glotpress-logo-inverted.svg @@ -0,0 +1,28 @@ + + + + + + + diff --git a/assets/img/glotpress-logo.svg b/assets/img/glotpress-logo.svg new file mode 100644 index 0000000..358a331 --- /dev/null +++ b/assets/img/glotpress-logo.svg @@ -0,0 +1,28 @@ + + + + + + + diff --git a/assets/img/index.php b/assets/img/index.php new file mode 100644 index 0000000..6b71dde --- /dev/null +++ b/assets/img/index.php @@ -0,0 +1,10 @@ + Date: Wed, 7 Feb 2024 16:06:52 +0000 Subject: [PATCH 5/9] Add admin menu items --- includes/class-toolbox.php | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/includes/class-toolbox.php b/includes/class-toolbox.php index 33605c2..2969f77 100644 --- a/includes/class-toolbox.php +++ b/includes/class-toolbox.php @@ -53,6 +53,9 @@ public function __construct() { // Load things after templates. add_action( 'gp_post_tmpl_load', array( self::class, 'post_template_load' ), 10, 2 ); + // Add GlotPress and Toolbox items do admin menu. + add_action( 'admin_menu', array( self::class, 'admin_menu' ), 10 ); + // Add Tools menu item. add_filter( 'gp_nav_menu_items', array( self::class, 'nav_menu_items' ), 10, 2 ); @@ -67,6 +70,70 @@ public function __construct() { } + /** + * Add GlotPress and Tools items do admin menu. + * + * @since 1.0.0 + * + * @return void + */ + public static function admin_menu() { + + // GlotPress icon. + $svg = ' + + + + + + '; + + $menu_icon = 'data:image/svg+xml;base64,' . base64_encode( $svg ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode + + // Add the new menu item to the admin menu. + add_menu_page( + esc_html__( 'GlotPress', 'gp-toolbox' ), // Page title. + esc_html__( 'GlotPress', 'gp-toolbox' ), // Menu title. + 'read', // Capability required to access this menu item. + gp_url_public_root(), // URL. + '', // Callback. @phpstan-ignore-line. + $menu_icon, // Menu icon. + 3 // Menu position. + ); + + if ( self::current_user_is_glotpress_admin() ) { + add_submenu_page( + gp_url_public_root(), // Parent slug. + esc_html__( 'Tools', 'gp-toolbox' ), // Page title. + esc_html__( 'Tools', 'gp-toolbox' ), // Menu title. + 'manage_options', // Capability required to access this menu item. + gp_url_join( gp_url_public_root() . '/tools/' ) // URL. + ); + } + } + + /** * Add Tools menu item. * From 083137694305d08c71586887a0cf914f5e4ebd3b Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:07:34 +0000 Subject: [PATCH 6/9] Add side menu link to Dashboard --- includes/class-toolbox.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/includes/class-toolbox.php b/includes/class-toolbox.php index 2969f77..1fda583 100644 --- a/includes/class-toolbox.php +++ b/includes/class-toolbox.php @@ -135,7 +135,7 @@ public static function admin_menu() { /** - * Add Tools menu item. + * Add Tools and Dashboard items do side menu. * * @since 1.0.0 * @@ -155,6 +155,12 @@ public static function nav_menu_items( $items, $location ) { if ( self::current_user_is_glotpress_admin() ) { // Add Tools item to admin bar side menu. $new_item[ strval( gp_url( '/tools/' ) ) ] = esc_html__( 'Tools', 'gp-toolbox' ); + + // Check if exist a link to Dashboard from another plugin. + if ( ! isset( $new_item[ admin_url() ] ) ) { + // Add link to WP Dashboard. + $new_item[ admin_url() ] = esc_html__( 'Dashboard', 'gp-toolbox' ); + } } } @@ -411,7 +417,12 @@ public static function register_plugin_styles() { GP_TOOLBOX_VERSION ); - gp_enqueue_styles( array( 'gp-toolbox', 'dashicons' ) ); + gp_enqueue_styles( + array( + 'gp-toolbox', + 'dashicons', + ) + ); } From 204e21f42accca734ee164731109ff267420a09e Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:11:30 +0000 Subject: [PATCH 7/9] Add i18n to build script --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf52748..8622051 100644 --- a/composer.json +++ b/composer.json @@ -60,7 +60,8 @@ "i18n:json": "wp i18n make-json languages --no-purge", "build": [ "@lint", - "@compile" + "@compile", + "@i18n" ], "build:css": "npm run build:css", "compat:php": "phpcs -v --standard=phpcompat.xml.dist", From 463b442aacf69b8b3d8fdbc21770d84cb5838591 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:11:47 +0000 Subject: [PATCH 8/9] Build language files --- ...t_PT-221bd724601009ea17a1e33e8a3bb777.json | 2 +- ...t_PT-347d8f09879f3ac76270b4c1206d2256.json | 2 +- languages/gp-toolbox-pt_PT.mo | Bin 10431 -> 9362 bytes languages/gp-toolbox-pt_PT.po | 105 ++++------------- languages/gp-toolbox.pot | 109 +++++------------- 5 files changed, 53 insertions(+), 165 deletions(-) diff --git a/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json b/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json index a8bb17f..1027656 100644 --- a/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json +++ b/languages/gp-toolbox-pt_PT-221bd724601009ea17a1e33e8a3bb777.json @@ -1 +1 @@ -{"translation-revision-date":"2024-02-07 09:46+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/tools-permissions.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Deleting...":["A eliminar..."],"%s Permission found.":["%s permiss\u00e3o encontrada.","%s permiss\u00f5es encontradas."],"No permissions found.":["Nenhuma permiss\u00e3o encontrada."],"Error: %s":["Erro: %s"]}}} \ No newline at end of file +{"translation-revision-date":"2024-02-07 16:11+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/tools-permissions.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Deleting...":["A eliminar..."],"%s Permission found.":["%s permiss\u00e3o encontrada.","%s permiss\u00f5es encontradas."],"No permissions found.":["Nenhuma permiss\u00e3o encontrada."],"Error: %s":["Erro: %s"]}}} \ No newline at end of file diff --git a/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json b/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json index 95c766e..c39c22b 100644 --- a/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json +++ b/languages/gp-toolbox-pt_PT-347d8f09879f3ac76270b4c1206d2256.json @@ -1 +1 @@ -{"translation-revision-date":"2024-02-07 09:46+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/project.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Old":["Antigas"],"Rejected":["Rejeitadas"],"Changes requested":[""],"Deleting...":["A eliminar..."]}}} \ No newline at end of file +{"translation-revision-date":"2024-02-07 16:11+0000","generator":"WP-CLI\/2.7.1","source":"assets\/js\/project.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Old":["Antigas"],"Rejected":["Rejeitadas"],"Changes requested":[""],"Deleting...":["A eliminar..."]}}} \ No newline at end of file diff --git a/languages/gp-toolbox-pt_PT.mo b/languages/gp-toolbox-pt_PT.mo index dc4fa24ef1794184ee63521b452b3e86fb9b7ecf..459d086471471719d6ca20f5fb1c2d36a888efef 100644 GIT binary patch delta 2138 zcmYk-du&ui6vy$iyYwLi>;qfDY8P6dlvXU1B51o{1xl@MmzU6zlGPThF6c=G!i2TzWxvmiA}08)<{ynzujrVB&VObv$H#Q z&YXMuQRMjg_>cKh5=Prj6ce}nW^ufp!5`Z9S!OTbHJpm!Y_o;fiV-}F75E)4Lf;)` zaQwwg&4_-#?7n;L8}q5zNw7zo4^@fvY$li>Gt<*noFq4>sTt)D3=xtZ7#< z6Mu5oH?WNBG1P*EGt6o*h$PiEqvmgQ?!YpodMBMJ*pJ%zF)YAgybIsM*?0v5coVh2 zD6YkERBA(anr*~(ydTe_j^r1dgVRZK2p1zm7Q?s}h|^JO6Ih6^V?JI)E&Ms^#%{RJ z|3jrXKhKO~x7nzjm7?ZV;5`^Z{azau;U3gRkD$Ikm`DDDbWXT|i}(iDAEQ$JGfN62ZC0abY$x2d!J z1~uV2cH>kEVHx(}a!lev{0$di-mLWe6E4GcJk zkovJx*o<$Z&iZd0zzKW{2gt8dU&HnzSckeE#C!21R^z*F{C8~UdJHSDg-Nv--$zGZ zIL{vy)7Pj4i>N4NVh-w#D^WGF6z5?GHLnvN!WgQ`M^N+Mab7?z^dag<{z9!cj_e_B zg(d0gU4lw!1a)TnPzxNwFdjv|V?UtI@)kaf?ZNa;PdmTFCdMaFwbMlDs~B5R8|X!C z>_tpH|3~R)Vgj|`Flu5FmC_GTU%2Exzk=G~HPli4jG8y<=ud0DzB zJJ84V?M)lj6Q%X-0sW!15~})ULN}nrmJp8;Az~Gw9joaEw20mxYMY5Lv6y&*NL4$k zsSx$l)Dde4wbevW>+4OYbgStZR%;-%;|+vTJK6kn>fMEQtisynt{-%g#8e$EMLl|3 z-MCP;^tjF^))H;n|9UzBLXS}iaeLD_KjsEhL^_Vi_Bb8hytc&+)HwC(oop3!^xoJ+ zs0Q@ptRz&pdVyI7p{j1w1x=5}WK%7utsovD^q8rDS_s}d#=9l;4~OGU720-OM>G*? z8`Ib#??Cote|B{5Gf%~$dpf*TISHRPYeu<$D3aSB2tU{1P2_Iyd9nOvf1q!7r#CwD zkUyikc4c+7*IRTTBcmnS)!pfh6`%2Wmr4%$hg#=;mbJS3`L12jy55L{eQ2+n{ delta 2742 zcmZ|Qe@xVM9LMnwC%^O*5Px8v!WTj1SN;f7QPe;YML`iPBNM-Ir<~axajibJN`UW79Tg=%{9EX0Ekm(?43SbhWIkwXElh`*OHepYguO_w&8)=lA=2 z>|A`dw&R=h_}2`@ON=2(2N?4bu1@5GvN_q9cHDx4@DApqYoIZ;ScC=m0v6&S%)={~ zg?F(CGijWOOYjZcfCXP8M*1|na3}7=eONr$ zm@fPR-^JjNX!}tq##B(ZQ0>;C7TSUqNY<0jNjbmB049Y^3{ z9F6C2Bz}#Ynz@afj=6&x*bFshAq+xoeJ$2u3r@oG*ip#EZ7#AgE8Uo}Scdbk5t+Ps z3pMajWVg)))WDaJKXZc*P3TY5ghw)4eP4*$*>cpxs!%JhLp|3pjQ#g;5#)v%yo?#R zAGHIgQ5~E`3wxaU4ct%tC)81d=}i;egDl=0LejvTM)lL<+`ovd)m%mX%#Xv_eV{k6{rbRp^Yn0*?b(88`tqLd!Nee+o_+qFPalm*$#bQiUHh!58_ui15;Ub zK2~;cF_DX>Q4RKB4))*$`~kJXW6V-peG0XOpCEmiOHTbJ4xxSU`J+F^lZ*!EjK=O>RDDa7xHi__ZOnh@L61gTd)AH;dFG9K=f_OQAxKJ zHGzYux8xXV;vb-Ls2j)Y{r`*$J@_lm#=lXo$?S2_26ItoRpHbdPy^biBifA`_)TQ9 z%o$X+e~J0{n^U*gRvqO$)Iut8px*!GTrA^81FGSBXyeCNiiNq+9cXs!LS}9*Vio?3 zO1?SV)C8(gEA*pQ-i{i0GwQjms0HsvH{+ZATxdo|Pz_Ew4}6H)vWuv*y^MP9y7T?_ z7*G8dRJQ+tY@SJ+5FIcNk5Zq4n$R`WTXqxmmJOK5{_6`57wTvtlF+6I^*}i)$r>;Z z+fg0tMe@v?Ku!2_)QYa+^Y|U=E%DMwN&PCup7Rpt|m zi4sByw}eocN9edzvIq?{R~3r#L`93JCLSZSGjj+p!Mscvp?pasR%m=BiOyYR0iiQe zsgGhF#mNM}HNCH9BWl&!0dmVcL_ALL@1plN1bTN#CK1btg{n}LPufZS2B^d{eylXb zu8iS##1uRADr_Khw*M{#&JE?q1H=9}F~xeBpd|PD*|MEvwEKzUeNBC_IN$c#R(*J{CnGtw$ZSte|00)q@-um&)%Lb`AM8F5 zw7L&j-I3OH-3KO_{>CZyOjirGJh|cYF&W`%PhQ6Vw2l;y>2wWursoe?O~F93ugUKX zhQh})dnVWT0?qAD+1iJ`k$nN4QQe+o$^vcv^>)bgEiclUwIgn*PA(K{a>5si{ACrn i<~UtYH}(FOpjqGx#YVGYJJvrH?>*m#B1Jjt;{E{&H-bn2 diff --git a/languages/gp-toolbox-pt_PT.po b/languages/gp-toolbox-pt_PT.po index 0c871fb..2bb6f42 100644 --- a/languages/gp-toolbox-pt_PT.po +++ b/languages/gp-toolbox-pt_PT.po @@ -8,7 +8,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2024-02-07 09:46+0000\n" +"PO-Revision-Date: 2024-02-07 16:11+0000\n" "Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.0.4\n" @@ -22,12 +22,12 @@ msgstr "" "X-Poedit-SearchPathExcluded-0: node_modules\n" "X-Poedit-SearchPathExcluded-1: vendor\n" -#: includes/class-toolbox.php:472 +#: includes/class-toolbox.php:550 #: assets/js/project.js:38 msgid "Old" msgstr "Antigas" -#: includes/class-toolbox.php:473 +#: includes/class-toolbox.php:551 #: assets/js/project.js:44 msgid "Rejected" msgstr "Rejeitadas" @@ -70,13 +70,14 @@ msgstr "Erro: %s" #: gp-templates/gptoolbox-tools.php:14 #: gp-templates/gptoolbox-tools.php:27 #: gp-templates/gptoolbox-translation-sets.php:17 -#: gp-templates/gptoolbox-translations.php:16 -#: includes/class-toolbox.php:90 +#: includes/class-toolbox.php:128 +#: includes/class-toolbox.php:129 +#: includes/class-toolbox.php:157 msgid "Tools" msgstr "Ferramentas" #: gp-templates/gptoolbox-about.php:15 -#: includes/class-toolbox.php:596 +#: includes/class-toolbox.php:676 msgid "About" msgstr "Sobre" @@ -120,14 +121,14 @@ msgid "Do you like %1$s? Support its development by becoming a %2$sSponsor%3$s!" msgstr "Gosta do %1$s? Apoie o seu desenvolvimento tornando-se %2$sPatrocinador%3$s!" #: gp-templates/gptoolbox-about.php:87 -#: includes/class-toolbox.php:181 +#: includes/class-toolbox.php:254 msgctxt "Plugin name" msgid "GP Toolbox" msgstr "GP Toolbox" #: gp-templates/gptoolbox-glossaries.php:17 #: gp-templates/gptoolbox-glossaries.php:30 -#: includes/class-toolbox.php:576 +#: includes/class-toolbox.php:656 msgid "Glossaries" msgstr "Glossários" @@ -199,8 +200,6 @@ msgstr[1] "Registos de %s glossários desconhecidos." #: gp-templates/gptoolbox-permissions.php:131 #: gp-templates/gptoolbox-permissions.php:242 #: gp-templates/gptoolbox-translation-sets.php:89 -#: gp-templates/gptoolbox-translations.php:104 -#: gp-templates/gptoolbox-translations.php:287 msgid "Filter:" msgstr "Filtrar:" @@ -209,8 +208,6 @@ msgstr "Filtrar:" #: gp-templates/gptoolbox-permissions.php:131 #: gp-templates/gptoolbox-permissions.php:242 #: gp-templates/gptoolbox-translation-sets.php:89 -#: gp-templates/gptoolbox-translations.php:104 -#: gp-templates/gptoolbox-translations.php:287 msgid "Search" msgstr "Pesquisar" @@ -219,7 +216,6 @@ msgstr "Pesquisar" #: gp-templates/gptoolbox-permissions.php:132 #: gp-templates/gptoolbox-permissions.php:243 #: gp-templates/gptoolbox-translation-sets.php:90 -#: gp-templates/gptoolbox-translations.php:105 msgid "Clear search filter." msgstr "Limpar filtro de pesquisa." @@ -228,7 +224,6 @@ msgstr "Limpar filtro de pesquisa." #: gp-templates/gptoolbox-permissions.php:132 #: gp-templates/gptoolbox-permissions.php:243 #: gp-templates/gptoolbox-translation-sets.php:90 -#: gp-templates/gptoolbox-translations.php:105 msgid "Clear" msgstr "Limpar" @@ -253,7 +248,6 @@ msgstr "Locale" #: gp-templates/gptoolbox-originals.php:169 #: gp-templates/gptoolbox-permissions.php:251 #: gp-templates/gptoolbox-translation-sets.php:99 -#: gp-templates/gptoolbox-translations.php:112 msgid "Project" msgstr "Projecto" @@ -277,7 +271,6 @@ msgstr "Conjunto de tradução desconhecido (%s)" #: gp-templates/gptoolbox-permissions.php:302 #: gp-templates/gptoolbox-permissions.php:334 #: gp-templates/gptoolbox-translation-sets.php:136 -#: gp-templates/gptoolbox-translations.php:151 #, php-format msgid "ID #%d" msgstr "ID #%d" @@ -291,7 +284,6 @@ msgstr "Global" #: gp-templates/gptoolbox-originals.php:194 #: gp-templates/gptoolbox-permissions.php:331 #: gp-templates/gptoolbox-translation-sets.php:133 -#: gp-templates/gptoolbox-translations.php:148 #, php-format msgid "Unknown project (%s)" msgstr "Projecto desconhecido (%s)" @@ -312,7 +304,7 @@ msgstr "Atenção: Antes de limpar quaisquer dados, primeiro ce #: gp-templates/gptoolbox-originals.php:17 #: gp-templates/gptoolbox-originals.php:30 -#: includes/class-toolbox.php:558 +#: includes/class-toolbox.php:636 msgid "Originals" msgstr "Originais" @@ -393,7 +385,7 @@ msgstr[1] "Originais de %s projectos desconhecidos." #: gp-templates/gptoolbox-permissions.php:17 #: gp-templates/gptoolbox-permissions.php:30 -#: includes/class-toolbox.php:544 +#: includes/class-toolbox.php:622 msgid "Permissions" msgstr "Permissões" @@ -447,8 +439,6 @@ msgid "Unknown user (%s)" msgstr "Utilizador desconhecido (%s)" #: gp-templates/gptoolbox-permissions.php:252 -#: gp-templates/gptoolbox-translations.php:111 -#: gp-templates/gptoolbox-translations.php:315 msgid "Translation Set" msgstr "Conjunto de tradução" @@ -509,7 +499,7 @@ msgstr "" #: gp-templates/gptoolbox-translation-sets.php:18 #: gp-templates/gptoolbox-translation-sets.php:31 -#: includes/class-toolbox.php:564 +#: includes/class-toolbox.php:642 msgid "Translation Sets" msgstr "Conjuntos de tradução" @@ -529,59 +519,6 @@ msgstr "Nome" msgid "Slug" msgstr "Slug" -#: gp-templates/gptoolbox-translations.php:17 -#: gp-templates/gptoolbox-translations.php:30 -#: gp-templates/gptoolbox-translations.php:115 -#: gp-templates/gptoolbox-translations.php:322 -#: includes/class-toolbox.php:570 -msgid "Translations" -msgstr "Traduções" - -#: gp-templates/gptoolbox-translations.php:40 -msgid "Overview of all Translations." -msgstr "Visão geral de todas as traduções." - -#: gp-templates/gptoolbox-translations.php:45 -msgid "Each Translation has a parent original_id. If there is no parent Original in the database with the same ID, then the Translation is orphaned." -msgstr "Cada Tradução tem um original_id. Se não existir nenhum Original com o mesmo ID na base de dados, então a Tradução é órfã." - -#: gp-templates/gptoolbox-translations.php:49 -msgid "Each Translation has a parent translation_set_id. If there is no parent Translation Set in the database with the same ID, then the Translation is orphaned." -msgstr "Cada Tradução tem um translation_set_id. Se não existir nenhum Conjunto de tradução com o mesmo ID na base de dados, então a Tradução é órfã." - -#. translators: %l: List of translation statuses. -#: gp-templates/gptoolbox-translations.php:64 -msgid "The Translations can have one of the following statuses: %l." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:95 -msgid "No translations found." -msgstr "Nenhuma tradução encontrada." - -#: gp-templates/gptoolbox-translations.php:113 -msgid "Known Originals" -msgstr "Originais conhecidos" - -#: gp-templates/gptoolbox-translations.php:114 -msgid "Unknown Originals" -msgstr "Originais desconhecidos" - -#. translators: 1: Active status; 2: Obsolete status. -#: gp-templates/gptoolbox-translations.php:228 -#, php-format -msgid "Translations can be from a known Original (%1$s or %2$s), or from an Original that don't exist anymore in the database." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:320 -msgid "Original" -msgstr "Original" - -#. translators: Known identifier data. -#: gp-templates/gptoolbox-translations.php:389 -#, php-format -msgid "Unknown (ID #%d)" -msgstr "Desconhecido (ID #%d)" - #: includes/class-rest-api.php:179 msgid "Permission not found." msgstr "Permissão não encontrada." @@ -595,28 +532,30 @@ msgid "Failed to delete permission." msgstr "Falha ao eliminar permissão." #. translators: 1: Plugin name. 2: Error message. -#: includes/class-toolbox.php:180 +#: includes/class-toolbox.php:253 #, php-format msgid "%1$s: %2$s" msgstr "%1$s: %2$s" -#: includes/class-toolbox.php:182 +#: includes/class-toolbox.php:255 msgid "GlotPress not found. Please install and activate it." msgstr "GlotPress não encontrado. Por favor, instale-o e active-o." -#: includes/class-toolbox.php:469 +#: includes/class-toolbox.php:547 msgid "Current" msgstr "Actual" -#: includes/class-toolbox.php:470 +#: includes/class-toolbox.php:548 msgid "Fuzzy" msgstr "Imprecisa" -#: includes/class-toolbox.php:471 +#: includes/class-toolbox.php:549 msgid "Waiting" msgstr "Pendentes" -#: includes/class-toolbox.php:629 +#: includes/class-toolbox.php:116 +#: includes/class-toolbox.php:117 +#: includes/class-toolbox.php:709 msgid "GlotPress" msgstr "GlotPress" @@ -635,3 +574,7 @@ msgstr "Pedro Mendonça" #. Author URI of the plugin msgid "https://profiles.wordpress.org/pedromendonca/" msgstr "https://profiles.wordpress.org/pedromendonca/" + +#: includes/class-toolbox.php:162 +msgid "Dashboard" +msgstr "Painel" diff --git a/languages/gp-toolbox.pot b/languages/gp-toolbox.pot index 4aede5e..5731008 100644 --- a/languages/gp-toolbox.pot +++ b/languages/gp-toolbox.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-02-07T09:47:12+00:00\n" +"POT-Creation-Date: 2024-02-07T16:11:13+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: gp-toolbox\n" @@ -42,13 +42,14 @@ msgstr "" #: gp-templates/gptoolbox-tools.php:14 #: gp-templates/gptoolbox-tools.php:27 #: gp-templates/gptoolbox-translation-sets.php:17 -#: gp-templates/gptoolbox-translations.php:16 -#: includes/class-toolbox.php:90 +#: includes/class-toolbox.php:128 +#: includes/class-toolbox.php:129 +#: includes/class-toolbox.php:157 msgid "Tools" msgstr "" #: gp-templates/gptoolbox-about.php:15 -#: includes/class-toolbox.php:596 +#: includes/class-toolbox.php:676 msgid "About" msgstr "" @@ -84,14 +85,14 @@ msgid "Do you like %1$s? Support its development by becoming a %2$sSponsor%3$s!" msgstr "" #: gp-templates/gptoolbox-about.php:87 -#: includes/class-toolbox.php:181 +#: includes/class-toolbox.php:254 msgctxt "Plugin name" msgid "GP Toolbox" msgstr "" #: gp-templates/gptoolbox-glossaries.php:17 #: gp-templates/gptoolbox-glossaries.php:30 -#: includes/class-toolbox.php:576 +#: includes/class-toolbox.php:656 msgid "Glossaries" msgstr "" @@ -157,8 +158,6 @@ msgstr[1] "" #: gp-templates/gptoolbox-permissions.php:131 #: gp-templates/gptoolbox-permissions.php:242 #: gp-templates/gptoolbox-translation-sets.php:89 -#: gp-templates/gptoolbox-translations.php:104 -#: gp-templates/gptoolbox-translations.php:287 msgid "Filter:" msgstr "" @@ -167,8 +166,6 @@ msgstr "" #: gp-templates/gptoolbox-permissions.php:131 #: gp-templates/gptoolbox-permissions.php:242 #: gp-templates/gptoolbox-translation-sets.php:89 -#: gp-templates/gptoolbox-translations.php:104 -#: gp-templates/gptoolbox-translations.php:287 msgid "Search" msgstr "" @@ -177,7 +174,6 @@ msgstr "" #: gp-templates/gptoolbox-permissions.php:132 #: gp-templates/gptoolbox-permissions.php:243 #: gp-templates/gptoolbox-translation-sets.php:90 -#: gp-templates/gptoolbox-translations.php:105 msgid "Clear search filter." msgstr "" @@ -186,7 +182,6 @@ msgstr "" #: gp-templates/gptoolbox-permissions.php:132 #: gp-templates/gptoolbox-permissions.php:243 #: gp-templates/gptoolbox-translation-sets.php:90 -#: gp-templates/gptoolbox-translations.php:105 msgid "Clear" msgstr "" @@ -211,7 +206,6 @@ msgstr "" #: gp-templates/gptoolbox-originals.php:169 #: gp-templates/gptoolbox-permissions.php:251 #: gp-templates/gptoolbox-translation-sets.php:99 -#: gp-templates/gptoolbox-translations.php:112 msgid "Project" msgstr "" @@ -234,7 +228,6 @@ msgstr "" #: gp-templates/gptoolbox-permissions.php:302 #: gp-templates/gptoolbox-permissions.php:334 #: gp-templates/gptoolbox-translation-sets.php:136 -#: gp-templates/gptoolbox-translations.php:151 msgid "ID #%d" msgstr "" @@ -247,7 +240,6 @@ msgstr "" #: gp-templates/gptoolbox-originals.php:194 #: gp-templates/gptoolbox-permissions.php:331 #: gp-templates/gptoolbox-translation-sets.php:133 -#: gp-templates/gptoolbox-translations.php:148 msgid "Unknown project (%s)" msgstr "" @@ -265,7 +257,7 @@ msgstr "" #: gp-templates/gptoolbox-originals.php:17 #: gp-templates/gptoolbox-originals.php:30 -#: includes/class-toolbox.php:558 +#: includes/class-toolbox.php:636 msgid "Originals" msgstr "" @@ -341,7 +333,7 @@ msgstr[1] "" #: gp-templates/gptoolbox-permissions.php:17 #: gp-templates/gptoolbox-permissions.php:30 -#: includes/class-toolbox.php:544 +#: includes/class-toolbox.php:622 msgid "Permissions" msgstr "" @@ -409,8 +401,6 @@ msgid "Unknown user (%s)" msgstr "" #: gp-templates/gptoolbox-permissions.php:252 -#: gp-templates/gptoolbox-translations.php:111 -#: gp-templates/gptoolbox-translations.php:315 msgid "Translation Set" msgstr "" @@ -470,7 +460,7 @@ msgstr "" #: gp-templates/gptoolbox-translation-sets.php:18 #: gp-templates/gptoolbox-translation-sets.php:31 -#: includes/class-toolbox.php:564 +#: includes/class-toolbox.php:642 msgid "Translation Sets" msgstr "" @@ -490,57 +480,6 @@ msgstr "" msgid "Slug" msgstr "" -#: gp-templates/gptoolbox-translations.php:17 -#: gp-templates/gptoolbox-translations.php:30 -#: gp-templates/gptoolbox-translations.php:115 -#: gp-templates/gptoolbox-translations.php:322 -#: includes/class-toolbox.php:570 -msgid "Translations" -msgstr "" - -#: gp-templates/gptoolbox-translations.php:40 -msgid "Overview of all Translations." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:45 -msgid "Each Translation has a parent original_id. If there is no parent Original in the database with the same ID, then the Translation is orphaned." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:49 -msgid "Each Translation has a parent translation_set_id. If there is no parent Translation Set in the database with the same ID, then the Translation is orphaned." -msgstr "" - -#. translators: %l: List of translation statuses. -#: gp-templates/gptoolbox-translations.php:64 -msgid "The Translations can have one of the following statuses: %l." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:95 -msgid "No translations found." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:113 -msgid "Known Originals" -msgstr "" - -#: gp-templates/gptoolbox-translations.php:114 -msgid "Unknown Originals" -msgstr "" - -#. translators: 1: Active status; 2: Obsolete status. -#: gp-templates/gptoolbox-translations.php:228 -msgid "Translations can be from a known Original (%1$s or %2$s), or from an Original that don't exist anymore in the database." -msgstr "" - -#: gp-templates/gptoolbox-translations.php:320 -msgid "Original" -msgstr "" - -#. translators: Known identifier data. -#: gp-templates/gptoolbox-translations.php:389 -msgid "Unknown (ID #%d)" -msgstr "" - #: includes/class-rest-api.php:179 msgid "Permission not found." msgstr "" @@ -553,41 +492,47 @@ msgstr "" msgid "Failed to delete permission." msgstr "" +#: includes/class-toolbox.php:116 +#: includes/class-toolbox.php:117 +#: includes/class-toolbox.php:709 +msgid "GlotPress" +msgstr "" + +#: includes/class-toolbox.php:162 +msgid "Dashboard" +msgstr "" + #. translators: 1: Plugin name. 2: Error message. -#: includes/class-toolbox.php:180 +#: includes/class-toolbox.php:253 msgid "%1$s: %2$s" msgstr "" -#: includes/class-toolbox.php:182 +#: includes/class-toolbox.php:255 msgid "GlotPress not found. Please install and activate it." msgstr "" -#: includes/class-toolbox.php:469 +#: includes/class-toolbox.php:547 msgid "Current" msgstr "" -#: includes/class-toolbox.php:470 +#: includes/class-toolbox.php:548 msgid "Fuzzy" msgstr "" -#: includes/class-toolbox.php:471 +#: includes/class-toolbox.php:549 msgid "Waiting" msgstr "" -#: includes/class-toolbox.php:472 +#: includes/class-toolbox.php:550 #: assets/js/project.js:38 msgid "Old" msgstr "" -#: includes/class-toolbox.php:473 +#: includes/class-toolbox.php:551 #: assets/js/project.js:44 msgid "Rejected" msgstr "" -#: includes/class-toolbox.php:629 -msgid "GlotPress" -msgstr "" - #: assets/js/project.js:50 msgid "Changes requested" msgstr "" From ddac966114c774b832bd02c71287360198c71620 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Wed, 7 Feb 2024 16:18:56 +0000 Subject: [PATCH 9/9] Update readme --- README.md | 8 ++++++++ readme.txt | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 7a2db3f..6931fcb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ This set of tools extends the functionality of GlotPress, bringing to light any ## Features +* WordPress dashboard: + * Admin menu link to GlotPress menu item. + * Admin menu link to the Tools page. +* GlotPress menu: + * Menu item for GlotPress Tools. + * Menu item for WordPress dashboard. * GlotPress project page: * Adds 'Old' and 'Rejected' columns to the project table of Translation Sets. * Button to quickly and permanently delete 'Old' and 'Rejected' translations. @@ -49,3 +55,5 @@ Sure! You are welcome to report any issues or add feature suggestions on the [Gi * Originals tools page. * Glossary tools page. * Translation Sets tools page. +* WordPress dashboard menu items. +* GlotPress menu items. diff --git a/readme.txt b/readme.txt index 131b658..2842485 100644 --- a/readme.txt +++ b/readme.txt @@ -17,6 +17,12 @@ This set of tools extends the functionality of GlotPress, bringing to light any == Features == +* WordPress dashboard: + * Admin menu link to GlotPress menu item. + * Admin menu link to the Tools page. +* GlotPress menu: + * Menu item for GlotPress Tools. + * Menu item for WordPress dashboard. * GlotPress project page: * Adds 'Old' and 'Rejected' columns to the project table of Translation Sets. * Button to quickly and permanently delete 'Old' and 'Rejected' translations. @@ -47,3 +53,5 @@ Sure! You are welcome to report any issues or add feature suggestions on the [Gi * Originals tools page. * Glossary tools page. * Translation Sets tools page. +* WordPress dashboard menu items. +* GlotPress menu items.