diff --git a/inc/class.dc.packman.php b/inc/class.dc.packman.php index 103a1c4..82a6b98 100644 --- a/inc/class.dc.packman.php +++ b/inc/class.dc.packman.php @@ -156,7 +156,7 @@ class dcPackman { $root = (string) path::real($root); if (!is_dir($root) || !is_writable($root)) { - throw new Exception('Directory is not writable'); + throw new Exception(__('Directory is not writable')); } return $root; @@ -168,7 +168,7 @@ class dcPackman || !isset($info['id']) || !is_dir($info['root']) ) { - throw new Exception('Failed to get module info'); + throw new Exception(__('Failed to get module info')); } return $info; @@ -231,7 +231,7 @@ class dcPackman @mkdir($c); } if (!is_writable($c)) { - throw new Exception('Failed to get temporary directory'); + throw new Exception(__('Failed to get temporary directory')); } return $c; diff --git a/locales/fr/main.po b/locales/fr/main.po index cbacc8b..afdc2dc 100644 --- a/locales/fr/main.po +++ b/locales/fr/main.po @@ -1,9 +1,9 @@ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: pacKman 2021.10.28\n" +"Project-Id-Version: pacKman 2022.11.20\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2021-11-05T00:45:06+00:00\n" +"PO-Revision-Date: 2022-11-26T21:19:33+00:00\n" "Last-Translator: Jean-Christian Denis\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -52,6 +52,15 @@ msgstr "Retirer les commentaires des fichiers" msgid "Fix newline style from files content" msgstr "Corriger les retour chariot du contenu des fichiers" +msgid "Directory is not writable" +msgstr "Le répertoire n'est pas accessible en écriture" + +msgid "Failed to get module info" +msgstr "Impossible de retrouver les informations du module" + +msgid "Failed to get temporary directory" +msgstr "Impossible de retrouver le répertoire temporaire" + msgid "Cache directory is not writable." msgstr "Le répertoire de cache n'est pas accessible en écriture."