浏览代码

Fix missing string internationalization

Miraty 2 年之前
父节点
当前提交
edcad22a84
共有 3 个文件被更改,包括 37 次插入27 次删除
  1. 18 13
      locales/fr/C/LC_MESSAGES/messages.po
  2. 18 13
      locales/messages.pot
  3. 1 1
      pg-view/ht/del.php

+ 18 - 13
locales/fr/C/LC_MESSAGES/messages.po

@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-06-15 01:33+0200\n"
+"POT-Creation-Date: 2023-06-20 00:38+0200\n"
 "Language: fr\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 
@@ -321,11 +321,11 @@ msgstr "%sCode source%s disponible sous %s."
 msgid "Your account can't be deleted because the %s service is currently unavailable."
 msgstr "Votre compte ne peut pas être supprimé car le service %s est actuellement indisponible."
 
-#: fn/auth.php:143
+#: fn/auth.php:161
 msgid "Account rate limit reached, try again later."
 msgstr "Limite de taux pour ce compte atteinte, réessayez plus tard."
 
-#: fn/auth.php:168
+#: fn/auth.php:186
 msgid "Global rate limit reached, try again later."
 msgstr "Limite de taux globale atteinte, réessayez plus tard."
 
@@ -341,15 +341,15 @@ msgstr "<strong>Erreur de l'utilisataire</strong>&nbsp;: "
 msgid "<strong>Server error</strong>: "
 msgstr "<strong>Erreur du serveur</strong>&nbsp;: "
 
-#: fn/common.php:132
+#: fn/common.php:137
 msgid "Wrong proof."
 msgstr "Preuve incorrecte."
 
-#: fn/dns.php:64
+#: fn/dns.php:74
 msgid "IP address malformed."
 msgstr "Adresse IP malformée."
 
-#: fn/dns.php:69 fn/ht.php:31
+#: fn/dns.php:79 fn/ht.php:48
 msgid "Domain malformed."
 msgstr "Domaine malformé."
 
@@ -434,13 +434,13 @@ msgstr "Ce domaine doit avoir %2$s pour unique enregistrement %1$s."
 msgid "No TXT record with the expected format has been found."
 msgstr "Aucun enregistrement TXT avec le format attendu n'a été trouvé."
 
-#: pg-act/ht/add-dns.php:41 pg-act/ht/add-onion.php:37
+#: pg-act/ht/add-dns.php:48 pg-act/ht/add-onion.php:50
 #: pg-act/ht/add-subdomain.php:19 pg-act/ht/add-subpath.php:19
 #, php-format
 msgid "%s added on this directory."
 msgstr "%s ajouté sur ce dossier."
 
-#: pg-act/ht/add-onion.php:37
+#: pg-act/ht/add-onion.php:50
 #, php-format
 msgid "Its address is: %s"
 msgstr "Son adresse est&nbsp;: %s"
@@ -476,7 +476,7 @@ msgstr "Clés SSH mises à jour."
 #: pg-act/ns/caa.php:25 pg-act/ns/cname.php:16 pg-act/ns/dname.php:16
 #: pg-act/ns/ip.php:16 pg-act/ns/loc.php:72 pg-act/ns/mx.php:20
 #: pg-act/ns/ns.php:16 pg-act/ns/srv.php:28 pg-act/ns/sshfp.php:25
-#: pg-act/ns/tlsa.php:29 pg-act/ns/txt.php:17 pg-act/reg/ds.php:32
+#: pg-act/ns/tlsa.php:29 pg-act/ns/txt.php:17 pg-act/reg/ds.php:30
 #: pg-act/reg/glue.php:14 pg-act/reg/ns.php:14
 msgid "Modification done."
 msgstr "Modification effectuée."
@@ -503,15 +503,15 @@ msgstr "Le contenu de zone envoyé n'est pas correct (selon <code>kzonecheck</co
 msgid "This zone already exists on the service."
 msgstr "Cette zone existe déjà sur ce service."
 
-#: pg-act/ns/zone-add.php:12
+#: pg-act/ns/zone-add.php:18
 msgid "Parent zone's name servers not found."
 msgstr "Serveurs de nom de la zone parente introuvables."
 
-#: pg-act/ns/zone-add.php:18 pg-act/reg/transfer.php:18
+#: pg-act/ns/zone-add.php:30 pg-act/reg/transfer.php:24
 msgid "NS authentication record not found."
 msgstr "Enregistrement d'authentification NS introuvable."
 
-#: pg-act/ns/zone-add.php:54
+#: pg-act/ns/zone-add.php:66
 msgid "Zone created."
 msgstr "Zone créée."
 
@@ -559,7 +559,7 @@ msgstr "Domaine enregistré."
 msgid "The current account already owns this domain."
 msgstr "Le compte actuel possède déjà ce domaine."
 
-#: pg-act/reg/transfer.php:33
+#: pg-act/reg/transfer.php:39
 msgid "The domain has been transferred to the current account ; the NS authentication record has been automatically deleted."
 msgstr "Le domaine a été transféré vers le compte actuel ; l'enregistrement d'authentification NS a été automatiquement supprimé."
 
@@ -731,6 +731,11 @@ msgstr "Chemin"
 msgid "Access to delete"
 msgstr "Accès à retirer"
 
+#: pg-view/ht/del.php:13
+#, php-format
+msgid "%1$s to %2$s"
+msgstr "%1$s vers %2$s"
+
 #: pg-view/ht/index.php:2
 msgid "This service allows you to send files on the server using SFTP, and to make them publicly available with HTTP."
 msgstr "Ce service permet d'envoyer des fichiers sur le serveur par SFTP, et de les rendre publiquement accessibles par HTTP."

+ 18 - 13
locales/messages.pot

@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-06-15 01:33+0200\n"
+"POT-Creation-Date: 2023-06-20 00:38+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -333,11 +333,11 @@ msgstr ""
 msgid "Your account can't be deleted because the %s service is currently unavailable."
 msgstr ""
 
-#: fn/auth.php:143
+#: fn/auth.php:161
 msgid "Account rate limit reached, try again later."
 msgstr ""
 
-#: fn/auth.php:168
+#: fn/auth.php:186
 msgid "Global rate limit reached, try again later."
 msgstr ""
 
@@ -353,15 +353,15 @@ msgstr ""
 msgid "<strong>Server error</strong>: "
 msgstr ""
 
-#: fn/common.php:132
+#: fn/common.php:137
 msgid "Wrong proof."
 msgstr ""
 
-#: fn/dns.php:64
+#: fn/dns.php:74
 msgid "IP address malformed."
 msgstr ""
 
-#: fn/dns.php:69 fn/ht.php:31
+#: fn/dns.php:79 fn/ht.php:48
 msgid "Domain malformed."
 msgstr ""
 
@@ -446,13 +446,13 @@ msgstr ""
 msgid "No TXT record with the expected format has been found."
 msgstr ""
 
-#: pg-act/ht/add-dns.php:41 pg-act/ht/add-onion.php:37
+#: pg-act/ht/add-dns.php:48 pg-act/ht/add-onion.php:50
 #: pg-act/ht/add-subdomain.php:19 pg-act/ht/add-subpath.php:19
 #, php-format
 msgid "%s added on this directory."
 msgstr ""
 
-#: pg-act/ht/add-onion.php:37
+#: pg-act/ht/add-onion.php:50
 #, php-format
 msgid "Its address is: %s"
 msgstr ""
@@ -488,7 +488,7 @@ msgstr ""
 #: pg-act/ns/caa.php:25 pg-act/ns/cname.php:16 pg-act/ns/dname.php:16
 #: pg-act/ns/ip.php:16 pg-act/ns/loc.php:72 pg-act/ns/mx.php:20
 #: pg-act/ns/ns.php:16 pg-act/ns/srv.php:28 pg-act/ns/sshfp.php:25
-#: pg-act/ns/tlsa.php:29 pg-act/ns/txt.php:17 pg-act/reg/ds.php:32
+#: pg-act/ns/tlsa.php:29 pg-act/ns/txt.php:17 pg-act/reg/ds.php:30
 #: pg-act/reg/glue.php:14 pg-act/reg/ns.php:14
 msgid "Modification done."
 msgstr ""
@@ -515,15 +515,15 @@ msgstr ""
 msgid "This zone already exists on the service."
 msgstr ""
 
-#: pg-act/ns/zone-add.php:12
+#: pg-act/ns/zone-add.php:18
 msgid "Parent zone's name servers not found."
 msgstr ""
 
-#: pg-act/ns/zone-add.php:18 pg-act/reg/transfer.php:18
+#: pg-act/ns/zone-add.php:30 pg-act/reg/transfer.php:24
 msgid "NS authentication record not found."
 msgstr ""
 
-#: pg-act/ns/zone-add.php:54
+#: pg-act/ns/zone-add.php:66
 msgid "Zone created."
 msgstr ""
 
@@ -571,7 +571,7 @@ msgstr ""
 msgid "The current account already owns this domain."
 msgstr ""
 
-#: pg-act/reg/transfer.php:33
+#: pg-act/reg/transfer.php:39
 msgid "The domain has been transferred to the current account ; the NS authentication record has been automatically deleted."
 msgstr ""
 
@@ -743,6 +743,11 @@ msgstr ""
 msgid "Access to delete"
 msgstr ""
 
+#: pg-view/ht/del.php:13
+#, php-format
+msgid "%1$s to %2$s"
+msgstr ""
+
 #: pg-view/ht/index.php:2
 msgid "This service allows you to send files on the server using SFTP, and to make them publicly available with HTTP."
 msgstr ""

+ 1 - 1
pg-view/ht/del.php

@@ -10,7 +10,7 @@ foreach (query('select', 'sites', ['username' => $_SESSION['id'] ?? '']) as $sit
 		'onion' => 'http://' . $site['address'] . '/',
 		'dns' => 'https://' . $site['address'] . '/',
 	};
-	echo '		<option value="' . $site['type'] . ':' . $site['address'] . '">' . $url . ' vers /' . $site['site_dir'] . '</option>' . LF;
+	echo '		<option value="' . $site['type'] . ':' . $site['address'] . '">' . ' ' . sprintf(_('%1$s to %2$s'), $url, '/' . $site['site_dir']) . '</option>' . LF;
 }
 ?>
 	</select>