From 3228dd04d36a2ea42b8e21761d7f79031b86a677 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 21 Sep 2014 12:25:02 +0200 Subject: [PATCH] cleanup and normalize logging --- po/de.po | 39 +++++++++++++++++++++------------------ po/es.po | 39 +++++++++++++++++++++------------------ po/fr.po | 39 +++++++++++++++++++++------------------ po/hr.po | 39 +++++++++++++++++++++------------------ po/hu.po | 39 +++++++++++++++++++++------------------ po/it.po | 39 +++++++++++++++++++++------------------ po/lv.po | 39 +++++++++++++++++++++------------------ po/nl.po | 39 +++++++++++++++++++++------------------ po/psensor.pot | 27 +++++++++++++++------------ po/pt_BR.po | 39 +++++++++++++++++++++------------------ po/ru.po | 39 +++++++++++++++++++++------------------ po/sl.po | 27 +++++++++++++++------------ po/sr.po | 27 +++++++++++++++------------ po/sv.po | 39 +++++++++++++++++++++------------------ po/tr.po | 39 +++++++++++++++++++++------------------ po/uk.po | 39 +++++++++++++++++++++------------------ po/zh_CN.po | 39 +++++++++++++++++++++------------------ src/lib/nvidia.c | 22 +++++++++++++++------- 18 files changed, 354 insertions(+), 295 deletions(-) diff --git a/po/de.po b/po/de.po index 82e74ba..0e86219 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor 0.7.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:25+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: German\n" @@ -480,32 +480,35 @@ msgid "Cannot open log file: %s" msgstr "Protokolldatei kann nicht geöffnet werden: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Ermittlung der NVIDIA-Informationen gescheitert." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Ermittlung der NVIDIA-Informationen gescheitert." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Ermittlung der NVIDIA-Informationen gescheitert." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Verbindung zum X11-Server konnte nicht hergestellt werden." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Verbindung zum X11-Server konnte nicht hergestellt werden." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Ermittlung der NVIDIA-Informationen gescheitert." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Ermittlung der NVIDIA-Informationen gescheitert." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "U/min" diff --git a/po/es.po b/po/es.po index c1a0ba2..ec6daa5 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:26+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Spanish \n" @@ -482,32 +482,35 @@ msgid "Cannot open log file: %s" msgstr "Imposible abrir el archivo de registro: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Error al obtener la información de NVIDIA" + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Error al obtener la información de NVIDIA" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Error al obtener la información de NVIDIA" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Imposible establecer conexión con el servidor X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Imposible establecer conexión con el servidor X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Error al obtener la información de NVIDIA" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Error al obtener la información de NVIDIA" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/fr.po b/po/fr.po index a2eec4b..d74ac12 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-21 09:39+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: French <>\n" @@ -480,32 +480,35 @@ msgid "Cannot open log file: %s" msgstr "Impossible d'ouvrir le journal: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Échec de la récupération des information NVIDIA." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Échec de la récupération des information NVIDIA." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Échec de la récupération des information NVIDIA." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s : Impossible d'ouvrir la connexion au serveur X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Impossible d'ouvrir la connexion au serveur X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s : Échec de la récupération des information NVIDIA." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Échec de la récupération des information NVIDIA." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "Tr/mn" diff --git a/po/hr.po b/po/hr.po index 794c2ac..c011f67 100644 --- a/po/hr.po +++ b/po/hr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-21 06:25+0000\n" "Last-Translator: gogo \n" "Language-Team: Croatian \n" @@ -481,30 +481,33 @@ msgstr "Nemoguće otvaranje datoteke: %s" #: src/lib/nvidia.c:58 #, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "Nepoznat naziv NVIDIA proizvoda za GPU %d" +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "%s: Nepoznat naziv NVIDIA proizvoda za GPU %d" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:63 #, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" -msgstr "Neuspjelo čitanje naziva NVIDIA proizvoda za GPU %d" +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "%s: Neuspjelo čitanje naziva NVIDIA proizvoda za GPU %d" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:226 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "Neuspjelo čitanje mjernih jedinica %x za NVIDIA GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" +msgstr "%s: Neuspjelo čitanje mjernih jedinica %x za NVIDIA GPU %d" -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Nemoguće povezivanje s X11 poslužiteljem." +#: src/lib/nvidia.c:293 +#, c-format +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Nemoguće povezivanje s X11 poslužiteljem." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." -msgstr "Neuspjelo primanje NVIDIA informacija." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Neuspjelo primanje NVIDIA informacija." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "NVIDIA: nuespjelo očitavanje broja ventilatora." +#: src/lib/nvidia.c:370 +#, c-format +msgid "%s: Failed to retrieve number of fans." +msgstr "%s: NVIDIA: nuespjelo očitavanje broja ventilatora." #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" diff --git a/po/hu.po b/po/hu.po index 81e90fd..94b8f9b 100644 --- a/po/hu.po +++ b/po/hu.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:26+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Hungarian \n" @@ -481,32 +481,35 @@ msgid "Cannot open log file: %s" msgstr "A naplófájl megnyitása sikertelen: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "NVIDIA információinak lekérése meghiúsult." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "NVIDIA információinak lekérése meghiúsult." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "NVIDIA információinak lekérése meghiúsult." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Nem lehet létrehozni a kapcsolatot az X11 kiszolgálóval." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Nem lehet létrehozni a kapcsolatot az X11 kiszolgálóval." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: NVIDIA információinak lekérése meghiúsult." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "NVIDIA információinak lekérése meghiúsult." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/it.po b/po/it.po index 6122bbf..4f7c89f 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor 0.7.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:24+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Italian\n" @@ -481,32 +481,35 @@ msgid "Cannot open log file: %s" msgstr "Impossibile aprire il file di log: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Impossibile recuperare informazioni da NVIDIA" + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Impossibile recuperare informazioni da NVIDIA" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Impossibile recuperare informazioni da NVIDIA" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Impossibile connettersi al server X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Impossibile connettersi al server X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Impossibile recuperare informazioni da NVIDIA" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Impossibile recuperare informazioni da NVIDIA" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/lv.po b/po/lv.po index c63d25c..03733fa 100644 --- a/po/lv.po +++ b/po/lv.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:26+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Latvian \n" @@ -482,32 +482,35 @@ msgid "Cannot open log file: %s" msgstr "Nevar atvērt žurnāla failu: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Neizdevās saņemt NVIDIA informāciju." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Neizdevās saņemt NVIDIA informāciju." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Neizdevās saņemt NVIDIA informāciju." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Nevar atvērt savienojumu ar X11 server." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Nevar atvērt savienojumu ar X11 server." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Neizdevās saņemt NVIDIA informāciju." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Neizdevās saņemt NVIDIA informāciju." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/nl.po b/po/nl.po index 67aef1a..ea449b3 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:25+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Dutch \n" @@ -483,32 +483,35 @@ msgid "Cannot open log file: %s" msgstr "Kan logboekbestand niet openen: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Kon Nvidia-informatie niet ophalen." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Kon Nvidia-informatie niet ophalen." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Kon Nvidia-informatie niet ophalen." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Kan verbinding met X11-server niet openen." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Kan verbinding met X11-server niet openen." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Kon Nvidia-informatie niet ophalen." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Kon Nvidia-informatie niet ophalen." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/psensor.pot b/po/psensor.pot index 0450ede..ed72766 100644 --- a/po/psensor.pot +++ b/po/psensor.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -480,29 +480,32 @@ msgstr "" #: src/lib/nvidia.c:58 #, c-format -msgid "Unknown NVIDIA product name for GPU %d" +msgid "%s: Unknown NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:63 #, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:226 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "" -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." +#: src/lib/nvidia.c:293 +#, c-format +msgid "%s: Cannot open connection to X11 server." msgstr "" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." msgstr "" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." +#: src/lib/nvidia.c:370 +#, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "" #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 diff --git a/po/pt_BR.po b/po/pt_BR.po index a4dbff6..4c69409 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor 0.7.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:22+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Brazilian Portuguese\n" @@ -480,32 +480,35 @@ msgid "Cannot open log file: %s" msgstr "Não é possível abrir arquivo de log: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Falha ao recuperar informações de NVIDIA." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Falha ao recuperar informações de NVIDIA." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Falha ao recuperar informações de NVIDIA." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Não é possível abrir conexão com o servidor X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Não é possível abrir conexão com o servidor X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Falha ao recuperar informações de NVIDIA." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Falha ao recuperar informações de NVIDIA." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/ru.po b/po/ru.po index dc692f5..eab4934 100644 --- a/po/ru.po +++ b/po/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor 0.7.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:23+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Russian\n" @@ -482,32 +482,35 @@ msgid "Cannot open log file: %s" msgstr "Ошибка открытия файла журнала: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Не удалось получить информацию NVIDIA." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Не удалось получить информацию NVIDIA." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Не удалось получить информацию NVIDIA." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Ошибка открытия соединения к серверу X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Ошибка открытия соединения к серверу X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Не удалось получить информацию NVIDIA." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Не удалось получить информацию NVIDIA." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "об/мин" diff --git a/po/sl.po b/po/sl.po index 4f1ad9d..18d3906 100644 --- a/po/sl.po +++ b/po/sl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:22+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Slovenian \n" @@ -481,29 +481,32 @@ msgstr "" #: src/lib/nvidia.c:58 #, c-format -msgid "Unknown NVIDIA product name for GPU %d" +msgid "%s: Unknown NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:63 #, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:226 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "" -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." +#: src/lib/nvidia.c:293 +#, c-format +msgid "%s: Cannot open connection to X11 server." msgstr "" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." msgstr "" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." +#: src/lib/nvidia.c:370 +#, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "" #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 diff --git a/po/sr.po b/po/sr.po index cdd3406..99e4c09 100644 --- a/po/sr.po +++ b/po/sr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:25+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Serbian \n" @@ -481,29 +481,32 @@ msgstr "" #: src/lib/nvidia.c:58 #, c-format -msgid "Unknown NVIDIA product name for GPU %d" +msgid "%s: Unknown NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:63 #, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" msgstr "" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:226 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "" -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." +#: src/lib/nvidia.c:293 +#, c-format +msgid "%s: Cannot open connection to X11 server." msgstr "" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." msgstr "" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." +#: src/lib/nvidia.c:370 +#, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "" #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 diff --git a/po/sv.po b/po/sv.po index 6ebca2c..6f692e1 100644 --- a/po/sv.po +++ b/po/sv.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor 1.0.0.0\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:26+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Swedish\n" @@ -484,32 +484,35 @@ msgid "Cannot open log file: %s" msgstr "Kan inte öppna loggfil: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Misslyckades med att hämta NVIDIA-information." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Misslyckades med att hämta NVIDIA-information." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Misslyckades med att hämta NVIDIA-information." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Kan inte öppna anslutning till X11-server." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Kan inte öppna anslutning till X11-server." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Misslyckades med att hämta NVIDIA-information." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Misslyckades med att hämta NVIDIA-information." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/tr.po b/po/tr.po index 7cfb843..78da27b 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-20 11:27+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Turkish \n" @@ -482,32 +482,35 @@ msgid "Cannot open log file: %s" msgstr "Günlükleme dosyası açılamadı: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "NVIDIA bilgisi alınamıyor." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "NVIDIA bilgisi alınamıyor." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "NVIDIA bilgisi alınamıyor." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: X11 sunucusu bağlantısı açılamıyor." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "X11 sunucusu bağlantısı açılamıyor." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: NVIDIA bilgisi alınamıyor." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "NVIDIA bilgisi alınamıyor." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "RPM" diff --git a/po/uk.po b/po/uk.po index d3ae3d9..bb5179f 100644 --- a/po/uk.po +++ b/po/uk.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:23+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Ukrainian \n" @@ -480,32 +480,35 @@ msgid "Cannot open log file: %s" msgstr "Не вдалося відкрити лог-файл: %s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "Не вдалося отримати інформацію NVIDIA." + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "Не вдалося отримати інформацію NVIDIA." -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "Не вдалося отримати інформацію NVIDIA." -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: Не вдалося встановити з'єднання до сервера X11." -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "Не вдалося встановити з'єднання до сервера X11." +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: Не вдалося отримати інформацію NVIDIA." -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "Не вдалося отримати інформацію NVIDIA." -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "об/хв" diff --git a/po/zh_CN.po b/po/zh_CN.po index 3558821..6107b52 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: psensor\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-09-21 00:49+0200\n" +"POT-Creation-Date: 2014-09-21 12:14+0200\n" "PO-Revision-Date: 2014-09-11 21:24+0000\n" "Last-Translator: Jean-Philippe Orsini \n" "Language-Team: Chinese (simplified)\n" @@ -481,32 +481,35 @@ msgid "Cannot open log file: %s" msgstr "无法打开日志文件:%s" #: src/lib/nvidia.c:58 -#, c-format -msgid "Unknown NVIDIA product name for GPU %d" -msgstr "" +#, fuzzy, c-format +msgid "%s: Unknown NVIDIA product name for GPU %d" +msgstr "无法获取 NVIDIA 信息。" + +#: src/lib/nvidia.c:63 +#, fuzzy, c-format +msgid "%s: Failed to retrieve NVIDIA product name for GPU %d" +msgstr "无法获取 NVIDIA 信息。" -#: src/lib/nvidia.c:61 +#: src/lib/nvidia.c:226 #, fuzzy, c-format -msgid "Failed to retrieve NVIDIA product name for GPU %d" +msgid "%s: Failed to retrieve measure of type %x for NVIDIA GPU %d" msgstr "无法获取 NVIDIA 信息。" -#: src/lib/nvidia.c:222 +#: src/lib/nvidia.c:293 #, c-format -msgid "Failed to retrieve measure of type %x for NVIDIA GPU %d" -msgstr "" +msgid "%s: Cannot open connection to X11 server." +msgstr "%s: 无法打开到 X11 服务器的连接。" -#: src/lib/nvidia.c:288 -msgid "Cannot open connection to X11 server." -msgstr "无法打开到 X11 服务器的连接。" +#: src/lib/nvidia.c:301 +#, c-format +msgid "%s: Failed to retrieve NVIDIA information." +msgstr "%s: 无法获取 NVIDIA 信息。" -#: src/lib/nvidia.c:295 -msgid "Failed to retrieve NVIDIA information." +#: src/lib/nvidia.c:370 +#, fuzzy, c-format +msgid "%s: Failed to retrieve number of fans." msgstr "无法获取 NVIDIA 信息。" -#: src/lib/nvidia.c:364 -msgid "NVIDIA: failed to retrieve number of fans." -msgstr "" - #: src/lib/psensor.c:470 tests/test_psensor_type_to_unit_str.c:62 msgid "RPM" msgstr "转速" diff --git a/src/lib/nvidia.c b/src/lib/nvidia.c index 32a44b0..b77517b 100644 --- a/src/lib/nvidia.c +++ b/src/lib/nvidia.c @@ -55,10 +55,14 @@ static char *get_product_name(int id, int type) if (strcmp(name, "Unknown")) return name; - log_err(_("Unknown NVIDIA product name for GPU %d"), id); + log_err(_("%s: Unknown NVIDIA product name for GPU %d"), + PROVIDER_NAME, + id); free(name); } else { - log_err(_("Failed to retrieve NVIDIA product name for GPU %d"), + log_err(_("%s: " + "Failed to retrieve NVIDIA product name for GPU %d"), + PROVIDER_NAME, id); } @@ -219,8 +223,9 @@ static void update(struct psensor *sensor) v = get_value(sensor->nvidia_id, sensor->type); if (v == UNKNOWN_DBL_VALUE) - log_err(_("Failed to retrieve measure of type %x " + log_err(_("%s: Failed to retrieve measure of type %x " "for NVIDIA GPU %d"), + PROVIDER_NAME, sensor->type, sensor->nvidia_id); psensor_set_current_value(sensor, v); @@ -285,14 +290,16 @@ static int init() display = XOpenDisplay(NULL); if (!display) { - log_err(_("Cannot open connection to X11 server.")); + log_err(_("%s: Cannot open connection to X11 server."), + PROVIDER_NAME); return 0; } if (XNVCTRLQueryExtension(display, &evt, &err)) return 1; - log_err(_("Failed to retrieve NVIDIA information.")); + log_err(_("%s: Failed to retrieve NVIDIA information."), + PROVIDER_NAME); return 0; } @@ -349,7 +356,7 @@ void nvidia_psensor_list_append(struct psensor ***ss, int values_len) ret = XNVCTRLQueryTargetCount(display, NV_CTRL_TARGET_TYPE_COOLER, &n); if (ret == True) { - log_debug("NVIDIA: number of fans: %d", n); + log_fct("%s: Number of fans: %d", PROVIDER_NAME, n); for (i = 0; i < n; i++) { utype = SENSOR_TYPE_FAN | SENSOR_TYPE_RPM; if (check_sensor(i, utype)) @@ -360,7 +367,8 @@ void nvidia_psensor_list_append(struct psensor ***ss, int values_len) add(ss, i, utype, values_len); } } else { - log_err(_("NVIDIA: failed to retrieve number of fans.")); + log_err(_("%s: Failed to retrieve number of fans."), + PROVIDER_NAME); } } -- 2.7.4