提交 86ebf99a 编写于 作者: N nicolargo

wMerge branch 'master' of github.com:nicolargo/glances

Conflicts:
	src/glances.py
Version 1.3.6
=============
* Add control before libs import
* Change static Python path (issue #20)
Version 1.3.5
=============
......
......@@ -211,6 +211,14 @@ The number of processes in the list is adapted to the screen size.
Glances displays a caption and the current time/date.
## Localisation
To generate french locale execute as root or sudo :
i18n_francais_generate.sh
To generate spanish locale execute as root or sudo :
i18n_espanol_generate.sh
## Todo
You are welcome to contribute to this software.
......
......@@ -236,6 +236,16 @@ Le nombre des processus affichés est adapté à la taille de la fenêtre.
Glances y affiche la légende (rappel des codes des couleurs) ainsi que la
date et l'heure courante.
## Traduction
Pour générer et installer la traduction française executer le script suivant
sous l'utilisateur root ou sudo :
i18n_francais_generate.sh
Pour générer et installer la traduction espagnol executer le script suivant
sous l'utilisateur root ou sudo
i18n_espanol_generate.sh
## A faire...
J'ai besoin de contributeurs pour faire évoluer Glances.
......
# Spanish translations for GLANCES package.
# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the GLANCES package.
# Peter Fontaine <jeanbob@jeanbob.eu>, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: GLANCES 1.3.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-06 15:20+0100\n"
"PO-Revision-Date: 2012-01-12 19:07+0100\n"
"Last-Translator: Peter Fontaine <jeanbob@jeanbob.eu>\n"
"Language-Team: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/glances.py:42
msgid "Textmode GUI initialization failed, Glances cannot start."
msgstr "Inicialización de la interfaz gráfica de usuario en modo texto imposible. Glances no se puede iniciar."
#: src/glances.py:138
msgid "Error: Can not init the libstatgrab library.\n"
msgstr "Error: No se puede inicio la biblioteca libstatgrab.\n"
#: src/glances.py:316
msgid "Error: Can not init the curses library.\n"
msgstr "Error: No se puede inicio la biblioteca curses.\n"
#: src/glances.py:556
msgid "Glances help (press 'h' to hide)"
msgstr "Ayuda de Glances (prensa 'h' para ocultar)"
#: src/glances.py:557
msgid "'h'\tto display|hide this help message"
msgstr "'h'\tpara mostrar/ocultar la ayuda"
#: src/glances.py:558
msgid "'a'\tto sort processes automatically"
msgstr "'a'\tpara ordonar el procesos automáticamente"
#: src/glances.py:559
msgid "'c'\tto sort processes by CPU consumption"
msgstr "'c'\tpara ordonar el procesos para consumo del CPU"
#: src/glances.py:560
msgid "'d'\tto disable|enable the disk IO stats"
msgstr "'d'\tpara (des)activar estad del ES disco."
#: src/glances.py:561
msgid "'f'\tto disable|enable the file system stats"
msgstr "'f'\tpara (des)activar estad del sis de archivos"
#: src/glances.py:562
msgid "'m'\tto sort processes by process size"
msgstr "'m'\tpara ordonar el procesos para tamaña de proceso "
#: src/glances.py:563
msgid "'n'\tto disable|enable the network interfaces stats"
msgstr "'n'\tpara (des)activar estad del interfaces de red."
#: src/glances.py:564
msgid "'q'\tto exit Glances"
msgstr "'q'\tpara salir Glances"
#: src/glances.py:590
msgid "Glances v"
msgstr "Glances v"
#: src/glances.py:590
msgid " running on "
msgstr " que se ejecutan en "
#: src/glances.py:614
msgid "Cpu"
msgstr ""
#: src/glances.py:616
msgid "User:"
msgstr "Usuario:"
#: src/glances.py:617
msgid "Kernel:"
msgstr "Núcleo:"
#: src/glances.py:618
msgid "Nice:"
msgstr ""
#: src/glances.py:619
msgid "Idle:"
msgstr "Ocioso:"
#: src/glances.py:634
msgid "Load"
msgstr "Carga"
#: src/glances.py:635
msgid "-Core"
msgstr "Núcleo"
#: src/glances.py:636
msgid "1 min:"
msgstr ""
#: src/glances.py:637
msgid "5 mins:"
msgstr ""
#: src/glances.py:638
msgid "15 mins:"
msgstr ""
#: src/glances.py:652
msgid "Mem MB"
msgstr "Mem Mb"
#: src/glances.py:653
msgid "Mem"
msgstr ""
#: src/glances.py:654
msgid "Swap"
msgstr ""
#: src/glances.py:655
msgid "Real"
msgstr ""
#: src/glances.py:656
msgid "Total:"
msgstr ""
#: src/glances.py:657
msgid "Used:"
msgstr "Usado:"
#: src/glances.py:658
msgid "Free:"
msgstr "Libre:"
#: src/glances.py:692
msgid "Net rate"
msgstr "Red ratio"
#: src/glances.py:693
msgid "Rx/ps"
msgstr ""
#: src/glances.py:694
msgid "Tx/ps"
msgstr ""
#: src/glances.py:714
msgid "Disk I/O"
msgstr "ES disco"
#: src/glances.py:715
msgid "In/ps"
msgstr ""
#: src/glances.py:716
msgid "Out/ps"
msgstr ""
#: src/glances.py:737
msgid "Mount"
msgstr "Montaje"
#: src/glances.py:738 src/glances.py:767
msgid "Total"
msgstr ""
#: src/glances.py:739
msgid "Used"
msgstr "Usado"
#: src/glances.py:766
msgid "Process"
msgstr "Proceso"
#: src/glances.py:768
msgid "Running"
msgstr "Funcionar"
#: src/glances.py:769
msgid "Sleeping"
msgstr "Sueño"
#: src/glances.py:770
msgid "Other"
msgstr "Otro"
#: src/glances.py:771
msgid "Number:"
msgstr "Número:"
#: src/glances.py:789
msgid "Size MB"
msgstr "Tamaño Mb"
#: src/glances.py:790
msgid "Res MB"
msgstr "Res Mb"
#: src/glances.py:791
msgid "Name"
msgstr "Designación"
#: src/glances.py:812
msgid " OK "
msgstr " BUENO "
#: src/glances.py:813
msgid "CAREFUL "
msgstr " ATENTO "
#: src/glances.py:814
msgid "WARNING "
msgstr " ALARMA "
#: src/glances.py:815
msgid "CRITICAL"
msgstr "CRITICA "
#: src/glances.py:826
msgid "%Y-%m-%d %H:%M:%S"
msgstr "%d.%m.%Y %H:%M:%S"
#: src/glances.py:834
msgid "Glances version "
msgstr ""
#: src/glances.py:839
msgid "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
msgstr "Utilisation: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
#: src/glances.py:841
msgid "\t-h:\tDisplay the syntax and exit"
msgstr "\t-h:\tMuestra la sintaxis y salir"
#: src/glances.py:842
msgid "\t-t sec:\tSet the refresh time in second default is 1"
msgstr "\t-t sec:\tEstablecer el tiempo de actualización en segundos"
#: src/glances.py:843
msgid "\t-v:\tDisplay the version and exit"
msgstr "\t-v:\tMuestra la versión y salir"
#: src/glances.py:845
msgid "When Glances is running, you can press:"
msgstr "Cuando Glances es ejecutando, puede pulsar:"
#: src/glances.py:846
msgid "'a' to set the automatic mode. The processes are sorted automatically"
msgstr "'a' para establecer el modo automático. Los procesos se ordenan automáticamente"
#: src/glances.py:847
msgid "'c' to sort the processes list by CPU consumption"
msgstr "'c' para ordenar la lista de procesos por el consumo de CPU"
#: src/glances.py:848
msgid "'d' to disable or enable the disk IO stats"
msgstr "'d' para (des)activar las estadísticas del ES disco"
#: src/glances.py:849
msgid "'f' to disable or enable the file system stats"
msgstr "'f' para (des)activar las estadísticas del sistemas de archivos"
#: src/glances.py:850
msgid "'h' to hide or show the help message"
msgstr "'h' para ocultar o mostrar el mensaje de ayuda"
#: src/glances.py:851
msgid "'m' to sort the processes list by process size"
msgstr "'m' para ordenar la lista de procesos por tamaño de proceso"
#: src/glances.py:852
msgid "'n' to disable or enable the network interfaces stats"
msgstr "'n' para (des)activar las estadísticas del interfaces de red"
#: src/glances.py:853
msgid "'q' to exit"
msgstr "'q' para salir"
#: src/glances.py:879
msgid "Error: Refresh time should be a positive non-null integer"
msgstr "Error: tiempo de actualización debe ser un entero positivo no nulo"
# Spanish translations for GLANCES package.
# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the GLANCES package.
# Peter Fontaine <jeanbob@jeanbob.eu>, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: GLANCES 1.3.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-06 15:20+0100\n"
"PO-Revision-Date: 2012-01-12 19:07+0100\n"
"Last-Translator: Peter Fontaine <jeanbob@jeanbob.eu>\n"
"Language-Team: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/glances.py:42
msgid "Textmode GUI initialization failed, Glances cannot start."
msgstr "Inicialización de la interfaz gráfica de usuario en modo texto imposible. Glances no se puede iniciar."
#: src/glances.py:138
msgid "Error: Can not init the libstatgrab library.\n"
msgstr "Error: No se puede inicio la biblioteca libstatgrab.\n"
#: src/glances.py:316
msgid "Error: Can not init the curses library.\n"
msgstr "Error: No se puede inicio la biblioteca curses.\n"
#: src/glances.py:556
msgid "Glances help (press 'h' to hide)"
msgstr "Ayuda de Glances (prensa 'h' para ocultar)"
#: src/glances.py:557
msgid "'h'\tto display|hide this help message"
msgstr "'h'\tpara mostrar/ocultar la ayuda"
#: src/glances.py:558
msgid "'a'\tto sort processes automatically"
msgstr "'a'\tpara ordonar el proceses automáticamente"
#: src/glances.py:559
msgid "'c'\tto sort processes by CPU consumption"
msgstr "'c'\tpara ordonar el proceses para consumo del CPU"
#: src/glances.py:560
msgid "'d'\tto disable|enable the disk IO stats"
msgstr "'d'\tpara (des)activar estad del ES disco."
#: src/glances.py:561
msgid "'f'\tto disable|enable the file system stats"
msgstr "'f'\tpara (des)activar estad del sis de archivos"
#: src/glances.py:562
msgid "'m'\tto sort processes by process size"
msgstr "'m'\tpara ordonar el procesos para tamaña de proceso "
#: src/glances.py:563
msgid "'n'\tto disable|enable the network interfaces stats"
msgstr "'n'\tpara (des)activar estad del interfaces de red."
#: src/glances.py:564
msgid "'q'\tto exit Glances"
msgstr "'q'\tpara salir Glances"
#: src/glances.py:590
msgid "Glances v"
msgstr "Glances v"
#: src/glances.py:590
msgid " running on "
msgstr " que se ejecutan en "
#: src/glances.py:614
msgid "Cpu"
msgstr ""
#: src/glances.py:616
msgid "User:"
msgstr "Usuario:"
#: src/glances.py:617
msgid "Kernel:"
msgstr "Núcleo"
#: src/glances.py:618
msgid "Nice:"
msgstr ""
#: src/glances.py:619
msgid "Idle:"
msgstr "Ocioso:"
#: src/glances.py:634
msgid "Load"
msgstr "Carga"
#: src/glances.py:635
msgid "-Core"
msgstr "-Núcleo"
#: src/glances.py:636
msgid "1 min:"
msgstr ""
#: src/glances.py:637
msgid "5 mins:"
msgstr ""
#: src/glances.py:638
msgid "15 mins:"
msgstr ""
#: src/glances.py:652
msgid "Mem MB"
msgstr "Mem Mb"
#: src/glances.py:653
msgid "Mem"
msgstr ""
#: src/glances.py:654
msgid "Swap"
msgstr ""
#: src/glances.py:655
msgid "Real"
msgstr ""
#: src/glances.py:656
msgid "Total:"
msgstr ""
#: src/glances.py:657
msgid "Used:"
msgstr "Usado:"
#: src/glances.py:658
msgid "Free:"
msgstr "Libre:"
#: src/glances.py:692
msgid "Net rate"
msgstr "Red ratio"
#: src/glances.py:693
msgid "Rx/ps"
msgstr ""
#: src/glances.py:694
msgid "Tx/ps"
msgstr ""
#: src/glances.py:714
msgid "Disk I/O"
msgstr "ES disco"
#: src/glances.py:715
msgid "In/ps"
msgstr ""
#: src/glances.py:716
msgid "Out/ps"
msgstr ""
#: src/glances.py:737
msgid "Mount"
msgstr "Montaje"
#: src/glances.py:738 src/glances.py:767
msgid "Total"
msgstr ""
#: src/glances.py:739
msgid "Used"
msgstr "Usado"
#: src/glances.py:766
msgid "Process"
msgstr "Proceso"
#: src/glances.py:768
msgid "Running"
msgstr "Funcionar"
#: src/glances.py:769
msgid "Sleeping"
msgstr "Sueño"
#: src/glances.py:770
msgid "Other"
msgstr "Otro"
#: src/glances.py:771
msgid "Number:"
msgstr "Número:"
#: src/glances.py:789
msgid "Size MB"
msgstr "Tamaño Mb"
#: src/glances.py:790
msgid "Res MB"
msgstr "Res Mb"
#: src/glances.py:791
msgid "Name"
msgstr "Designación"
#: src/glances.py:812
msgid " OK "
msgstr " BUENO "
#: src/glances.py:813
msgid "CAREFUL "
msgstr " ATENTO "
#: src/glances.py:814
msgid "WARNING "
msgstr " ALARMA "
#: src/glances.py:815
msgid "CRITICAL"
msgstr "CRÍTICA "
#: src/glances.py:826
msgid "%Y-%m-%d %H:%M:%S"
msgstr "%d.%m.%Y %H:%M:%S"
#: src/glances.py:834
msgid "Glances version "
msgstr ""
#: src/glances.py:839
msgid "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
msgstr "Utilisation: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
#: src/glances.py:841
msgid "\t-h:\tDisplay the syntax and exit"
msgstr "\t-h:\tMuestra la sintaxis y salir"
#: src/glances.py:842
msgid "\t-t sec:\tSet the refresh time in second default is 1"
msgstr "\t-t sec:\tEstablecer el tiempo de actualización en segundos"
#: src/glances.py:843
msgid "\t-v:\tDisplay the version and exit"
msgstr "\t-v:\tMuestra la versión y salir"
#: src/glances.py:845
msgid "When Glances is running, you can press:"
msgstr "Cuando Glances es ejecutando, puede pulsar:"
#: src/glances.py:846
msgid "'a' to set the automatic mode. The processes are sorted automatically"
msgstr "'a' para establecer el modo automático. Los procesos se ordenan automáticamente"
#: src/glances.py:847
msgid "'c' to sort the processes list by CPU consumption"
msgstr "'c' para ordenar la lista de procesos por el consumo de CPU"
#: src/glances.py:848
msgid "'d' to disable or enable the disk IO stats"
msgstr "'d' para (des)activar las estadísticas del ES disco"
#: src/glances.py:849
msgid "'f' to disable or enable the file system stats"
msgstr "'f' para (des)activar las estadísticas del sistemas de archivos"
#: src/glances.py:850
msgid "'h' to hide or show the help message"
msgstr "'h' para ocultar o mostrar el mensaje de ayuda"
#: src/glances.py:851
msgid "'m' to sort the processes list by process size"
msgstr "'m' para ordenar la lista de procesos por tamaño de proceso"
#: src/glances.py:852
msgid "'n' to disable or enable the network interfaces stats"
msgstr "'n' para (des)activar las estadísticas del interfaces de red"
#: src/glances.py:853
msgid "'q' to exit"
msgstr "'q' para salir"
#: src/glances.py:879
msgid "Error: Refresh time should be a positive non-null integer"
msgstr "Error: tiempo de actualización debe ser un entero positivo no nulo"
# French translations for GLANCES package
# Traductions françaises du paquet GLANCES.
# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the GLANCES package.
# Peter Fontaine <jeanbob@jeanbob.eu>, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: GLANCES 1.3.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-06 15:20+0100\n"
"PO-Revision-Date: 2012-01-06 15:23+0100\n"
"Last-Translator: Peter Fontaine <jeanbob@jeanbob.eu>\n"
"Language-Team: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: src/glances.py:42
msgid "Textmode GUI initialization failed, Glances cannot start."
msgstr "Initialisation de l'interface utilisateur textuel impossible, Glances ne peut être démaré"
#: src/glances.py:138
msgid "Error: Can not init the libstatgrab library.\n"
msgstr "Erreur: Impossible d'initialiser la bibliothèque libstatgrab.\n"
#: src/glances.py:316
msgid "Error: Can not init the curses library.\n"
msgstr "Erreur: Impossible d'initialiser la bibliothèque curses.\n"
#: src/glances.py:556
msgid "Glances help (press 'h' to hide)"
msgstr "Aide Glances (appuyer sur 'h' pour cacher)"
#: src/glances.py:557
msgid "'h'\tto display|hide this help message"
msgstr "'h'\tpour afficher|cacher ce message d'aide"
#: src/glances.py:558
msgid "'a'\tto sort processes automatically"
msgstr "'a'\tpour trier les processus automatiquement"
#: src/glances.py:559
msgid "'c'\tto sort processes by CPU consumption"
msgstr "'c'\tpour trier les processus par consomation du CPU"
#: src/glances.py:560
msgid "'d'\tto disable|enable the disk IO stats"
msgstr "'d'\t(dés)activer les stats E/S disque "
#: src/glances.py:561
msgid "'f'\tto disable|enable the file system stats"
msgstr "'f'\t(dés)activer les stats du sys de fichiers "
#: src/glances.py:562
msgid "'m'\tto sort processes by process size"
msgstr "'m'\tpour trier les processus pas taille"
#: src/glances.py:563
msgid "'n'\tto disable|enable the network interfaces stats"
msgstr "'n'\t(dés)activer les stats réseaux "
#: src/glances.py:564
msgid "'q'\tto exit Glances"
msgstr "'q'\tpour quitter Glances"
#: src/glances.py:590
msgid "Glances v"
msgstr "Glances v"
#: src/glances.py:590
msgid " running on "
msgstr " en fonction sur "
#: src/glances.py:614
msgid "Cpu"
msgstr "Cpu"
#: src/glances.py:616
msgid "User:"
msgstr "User:"
#: src/glances.py:617
msgid "Kernel:"
msgstr "Noyau:"
#: src/glances.py:618
msgid "Nice:"
msgstr "Nice:"
#: src/glances.py:619
msgid "Idle:"
msgstr "Repos:"
#: src/glances.py:634
msgid "Load"
msgstr "Charge"
#: src/glances.py:635
msgid "-Core"
msgstr "-Coeurs"
#: src/glances.py:636
msgid "1 min:"
msgstr "1 min:"
#: src/glances.py:637
msgid "5 mins:"
msgstr "5 mins:"
#: src/glances.py:638
msgid "15 mins:"
msgstr "15 mins"
#: src/glances.py:652
msgid "Mem MB"
msgstr "Mem Mo"
#: src/glances.py:653
msgid "Mem"
msgstr "Mem"
#: src/glances.py:654
msgid "Swap"
msgstr "Swap"
#: src/glances.py:655
msgid "Real"
msgstr "Réel"
#: src/glances.py:656
msgid "Total:"
msgstr "Total:"
#: src/glances.py:657
msgid "Used:"
msgstr "Utilisé:"
#: src/glances.py:658
msgid "Free:"
msgstr "Libre:"
#: src/glances.py:692
msgid "Net rate"
msgstr "Réseau"
#: src/glances.py:693
msgid "Rx/ps"
msgstr "Rx/ps"
#: src/glances.py:694
msgid "Tx/ps"
msgstr "Tx/ps"
#: src/glances.py:714
msgid "Disk I/O"
msgstr "E/S Disque"
#: src/glances.py:715
msgid "In/ps"
msgstr "In/ps"
#: src/glances.py:716
msgid "Out/ps"
msgstr "Out/ps"
#: src/glances.py:737
msgid "Mount"
msgstr "Montage"
#: src/glances.py:738 src/glances.py:767
msgid "Total"
msgstr "Total"
#: src/glances.py:739
msgid "Used"
msgstr "Utilisé"
#: src/glances.py:766
msgid "Process"
msgstr "Process"
#: src/glances.py:768
msgid "Running"
msgstr "En cours"
#: src/glances.py:769
msgid "Sleeping"
msgstr "Sommeil"
#: src/glances.py:770
msgid "Other"
msgstr "Autre"
#: src/glances.py:771
msgid "Number:"
msgstr "Nombre:"
#: src/glances.py:789
msgid "Size MB"
msgstr "Taille Mo"
#: src/glances.py:790
msgid "Res MB"
msgstr "Res Mo"
#: src/glances.py:791
msgid "Name"
msgstr "Nom"
#: src/glances.py:812
msgid " OK "
msgstr " OK "
#: src/glances.py:813
msgid "CAREFUL "
msgstr " CALME "
#: src/glances.py:814
msgid "WARNING "
msgstr " DANGER "
#: src/glances.py:815
msgid "CRITICAL"
msgstr "CRITIQUE"
#: src/glances.py:826
msgid "%Y-%m-%d %H:%M:%S"
msgstr "%d/%m/%Y %H:%M:%S"
#: src/glances.py:834
msgid "Glances version "
msgstr "Version Glances"
#: src/glances.py:839
msgid "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
msgstr "Utilisation : glances.py [-t|--time sec] [-h|--help] [-v|--version]"
#: src/glances.py:841
msgid "\t-h:\tDisplay the syntax and exit"
msgstr "\t-h:\tAffiche la syntaxe et quitte"
#: src/glances.py:842
msgid "\t-t sec:\tSet the refresh time in second default is 1"
msgstr "\t-t sec:\tFixe le temps de raffraichissement en seconde, 1 seconde par défaut"
#: src/glances.py:843
msgid "\t-v:\tDisplay the version and exit"
msgstr "\t-v:\tAffiche la version et quitte"
#: src/glances.py:845
msgid "When Glances is running, you can press:"
msgstr "Quand Glances fonctionne, vous pouvez appuyer sur:"
#: src/glances.py:846
msgid "'a' to set the automatic mode. The processes are sorted automatically"
msgstr "'a' pour activer le mode auto. Les processus sont trié automatiquement"
#: src/glances.py:847
msgid "'c' to sort the processes list by CPU consumption"
msgstr "'c' pour trier les processus par consomation CPU"
#: src/glances.py:848
msgid "'d' to disable or enable the disk IO stats"
msgstr "'d' pour désactiver ou activer les statistiques E/S disque"
#: src/glances.py:849
msgid "'f' to disable or enable the file system stats"
msgstr "'f' pour désactiver ou activer les statistiques du système de fichier"
#: src/glances.py:850
msgid "'h' to hide or show the help message"
msgstr "'h' pour cacher ou afficher le message d'aide"
#: src/glances.py:851
msgid "'m' to sort the processes list by process size"
msgstr "'m' pour trier les processus par taille"
#: src/glances.py:852
msgid "'n' to disable or enable the network interfaces stats"
msgstr "'n' pour désactiver ou activer les statistiques réseaux"
#: src/glances.py:853
msgid "'q' to exit"
msgstr "'q' pour quitter"
#: src/glances.py:879
msgid "Error: Refresh time should be a positive non-null integer"
msgstr "Erreur: Le temps de raffraichissement doit être un entier positif non nul"
# French translations for PACKAGE package
# Traductions françaises du paquet PACKAGE.
# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Peter Fontaine <jeanbob@jeanbob.eu>, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-06 15:20+0100\n"
"PO-Revision-Date: 2012-01-06 15:23+0100\n"
"Last-Translator: Peter Fontaine <jeanbob@jeanbob.eu>\n"
"Language-Team: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: src/glances.py:42
msgid "Textmode GUI initialization failed, Glances cannot start."
msgstr "Initialisation de l'interface utilisateur textuel impossible, Glances ne peut être démaré"
#: src/glances.py:138
msgid "Error: Can not init the libstatgrab library.\n"
msgstr "Erreur: Impossible d'initialiser la bibliothèques libstatgrab.\n"
#: src/glances.py:316
msgid "Error: Can not init the curses library.\n"
msgstr "Erreur: Impossible d'initialiser la bibliothèques curses"
#: src/glances.py:556
msgid "Glances help (press 'h' to hide)"
msgstr "Aide Glances (appuyer sur 'h' pour cacher)"
#: src/glances.py:557
msgid "'h'\tto display|hide this help message"
msgstr "'h'\tpour afficher|cacher ce message d'aide"
#: src/glances.py:558
msgid "'a'\tto sort processes automatically"
msgstr "'a'\tpour trier les processus automatiquement"
#: src/glances.py:559
msgid "'c'\tto sort processes by CPU consumption"
msgstr "'c'\tpour trier les processus par consomation du CPU"
#: src/glances.py:560
msgid "'d'\tto disable|enable the disk IO stats"
msgstr "'d'\tpour désactiver|activer les statistiques E/S disque"
#: src/glances.py:561
msgid "'f'\tto disable|enable the file system stats"
msgstr "'f'\tpour désactiver|activer les statistiques du système de fichiers"
#: src/glances.py:562
msgid "'m'\tto sort processes by process size"
msgstr "'m'\tpour trier les processus pas taille"
#: src/glances.py:563
msgid "'n'\tto disable|enable the network interfaces stats"
msgstr "'n'\tpour désactiver|activer les statistiques des interfaces réseaux"
#: src/glances.py:564
msgid "'q'\tto exit Glances"
msgstr "'q'\tpour quitter Glances"
#: src/glances.py:590
msgid "Glances v"
msgstr "Glances v"
#: src/glances.py:590
msgid " running on "
msgstr " en fonction sur "
#: src/glances.py:614
msgid "Cpu"
msgstr "Cpu"
#: src/glances.py:616
msgid "User:"
msgstr "Utilisateur:"
#: src/glances.py:617
msgid "Kernel:"
msgstr "Noyau:"
#: src/glances.py:618
msgid "Nice:"
msgstr ""
#: src/glances.py:619
msgid "Idle:"
msgstr "Repos:"
#: src/glances.py:634
msgid "Load"
msgstr "Charge"
#: src/glances.py:635
msgid "-Core"
msgstr "-Coeurs"
#: src/glances.py:636
msgid "1 min:"
msgstr "1 min:"
#: src/glances.py:637
msgid "5 mins:"
msgstr "5 mins:"
#: src/glances.py:638
msgid "15 mins:"
msgstr "15 mins"
#: src/glances.py:652
msgid "Mem MB"
msgstr "Mem MB"
#: src/glances.py:653
msgid "Mem"
msgstr "Mem"
#: src/glances.py:654
msgid "Swap"
msgstr "Swap"
#: src/glances.py:655
msgid "Real"
msgstr "Réel"
#: src/glances.py:656
msgid "Total:"
msgstr "Total:"
#: src/glances.py:657
msgid "Used:"
msgstr "Utilisé:"
#: src/glances.py:658
msgid "Free:"
msgstr "Libre:"
#: src/glances.py:692
msgid "Net rate"
msgstr "Ratio net"
#: src/glances.py:693
msgid "Rx/ps"
msgstr "Px/ps"
#: src/glances.py:694
msgid "Tx/ps"
msgstr "Tx/ps"
#: src/glances.py:714
msgid "Disk I/O"
msgstr "E/S Disque"
#: src/glances.py:715
msgid "In/ps"
msgstr "In/ps"
#: src/glances.py:716
msgid "Out/ps"
msgstr "Out/ps"
#: src/glances.py:737
msgid "Mount"
msgstr "Montage"
#: src/glances.py:738 src/glances.py:767
msgid "Total"
msgstr "Total"
#: src/glances.py:739
msgid "Used"
msgstr "Utilisé"
#: src/glances.py:766
msgid "Process"
msgstr "Processus"
#: src/glances.py:768
msgid "Running"
msgstr "En marche"
#: src/glances.py:769
msgid "Sleeping"
msgstr "En sommeil"
#: src/glances.py:770
msgid "Other"
msgstr "Autre"
#: src/glances.py:771
msgid "Number:"
msgstr "Nombre:"
#: src/glances.py:789
msgid "Size MB"
msgstr "Taille MB"
#: src/glances.py:790
msgid "Res MB"
msgstr "Res MB"
#: src/glances.py:791
msgid "Name"
msgstr "Nom"
#: src/glances.py:812
msgid " OK "
msgstr " OK "
#: src/glances.py:813
msgid "CAREFUL "
msgstr "CALME "
#: src/glances.py:814
msgid "WARNING "
msgstr "DANGER "
#: src/glances.py:815
msgid "CRITICAL"
msgstr "CRITIQUE"
#: src/glances.py:826
msgid "%Y-%m-%d %H:%M:%S"
msgstr "%d/%m/%Y %H:%M:%S"
#: src/glances.py:834
msgid "Glances version "
msgstr "Version Glances"
#: src/glances.py:839
msgid "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
msgstr "Utilisation : glances.py [-t|--time sec] [-h|--help] [-v|--version]"
#: src/glances.py:841
msgid "\t-h:\tDisplay the syntax and exit"
msgstr "\t-h:\tAffiche la syntaxe et quitte"
#: src/glances.py:842
msgid "\t-t sec:\tSet the refresh time in second default is 1"
msgstr "\t-t sec:\tFixe le temps de raffraichissement en seconde, 1s par défaut"
#: src/glances.py:843
msgid "\t-v:\tDisplay the version and exit"
msgstr "\t-v:\tAffiche la version et quitte"
#: src/glances.py:845
msgid "When Glances is running, you can press:"
msgstr "Quand Glances fonctionne, vous pouvez appuyer:"
#: src/glances.py:846
msgid "'a' to set the automatic mode. The processes are sorted automatically"
msgstr "'a' pour activer le mode auto. Les processus sont trié automatiquement"
#: src/glances.py:847
msgid "'c' to sort the processes list by CPU consumption"
msgstr "'c' pour trier les processus par consomation CPU"
#: src/glances.py:848
msgid "'d' to disable or enable the disk IO stats"
msgstr "'d' pour désactiver ou activer les statistiques E/S disque"
#: src/glances.py:849
msgid "'f' to disable or enable the file system stats"
msgstr "'f' pour désactiver ou activer les statistiques du système de fichier"
#: src/glances.py:850
msgid "'h' to hide or show the help message"
msgstr "'h' pour cacher ou afficher le message d'aide"
#: src/glances.py:851
msgid "'m' to sort the processes list by process size"
msgstr "'m' pour trier les processus par taille"
#: src/glances.py:852
msgid "'n' to disable or enable the network interfaces stats"
msgstr "'n' pour désactiver ou activer les statistiques réseaux"
#: src/glances.py:853
msgid "'q' to exit"
msgstr "'q' pour quitter"
#: src/glances.py:879
msgid "Error: Refresh time should be a positive non-null integer"
msgstr "Erreur: Le temps de raffraichissement doit être un entier positif non nul"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-06 15:20+0100\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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/glances.py:42
msgid "Textmode GUI initialization failed, Glances cannot start."
msgstr ""
#: src/glances.py:138
msgid "Error: Can not init the libstatgrab library.\n"
msgstr ""
#: src/glances.py:316
msgid "Error: Can not init the curses library.\n"
msgstr ""
#: src/glances.py:556
msgid "Glances help (press 'h' to hide)"
msgstr ""
#: src/glances.py:557
msgid "'h'\tto display|hide this help message"
msgstr ""
#: src/glances.py:558
msgid "'a'\tto sort processes automatically"
msgstr ""
#: src/glances.py:559
msgid "'c'\tto sort processes by CPU consumption"
msgstr ""
#: src/glances.py:560
msgid "'d'\tto disable|enable the disk IO stats"
msgstr ""
#: src/glances.py:561
msgid "'f'\tto disable|enable the file system stats"
msgstr ""
#: src/glances.py:562
msgid "'m'\tto sort processes by process size"
msgstr ""
#: src/glances.py:563
msgid "'n'\tto disable|enable the network interfaces stats"
msgstr ""
#: src/glances.py:564
msgid "'q'\tto exit Glances"
msgstr ""
#: src/glances.py:590
msgid "Glances v"
msgstr ""
#: src/glances.py:590
msgid " running on "
msgstr ""
#: src/glances.py:614
msgid "Cpu"
msgstr ""
#: src/glances.py:616
msgid "User:"
msgstr ""
#: src/glances.py:617
msgid "Kernel:"
msgstr ""
#: src/glances.py:618
msgid "Nice:"
msgstr ""
#: src/glances.py:619
msgid "Idle:"
msgstr ""
#: src/glances.py:634
msgid "Load"
msgstr ""
#: src/glances.py:635
msgid "-Core"
msgstr ""
#: src/glances.py:636
msgid "1 min:"
msgstr ""
#: src/glances.py:637
msgid "5 mins:"
msgstr ""
#: src/glances.py:638
msgid "15 mins:"
msgstr ""
#: src/glances.py:652
msgid "Mem MB"
msgstr ""
#: src/glances.py:653
msgid "Mem"
msgstr ""
#: src/glances.py:654
msgid "Swap"
msgstr ""
#: src/glances.py:655
msgid "Real"
msgstr ""
#: src/glances.py:656
msgid "Total:"
msgstr ""
#: src/glances.py:657
msgid "Used:"
msgstr ""
#: src/glances.py:658
msgid "Free:"
msgstr ""
#: src/glances.py:692
msgid "Net rate"
msgstr ""
#: src/glances.py:693
msgid "Rx/ps"
msgstr ""
#: src/glances.py:694
msgid "Tx/ps"
msgstr ""
#: src/glances.py:714
msgid "Disk I/O"
msgstr ""
#: src/glances.py:715
msgid "In/ps"
msgstr ""
#: src/glances.py:716
msgid "Out/ps"
msgstr ""
#: src/glances.py:737
msgid "Mount"
msgstr ""
#: src/glances.py:738 src/glances.py:767
msgid "Total"
msgstr ""
#: src/glances.py:739
msgid "Used"
msgstr ""
#: src/glances.py:766
msgid "Process"
msgstr ""
#: src/glances.py:768
msgid "Running"
msgstr ""
#: src/glances.py:769
msgid "Sleeping"
msgstr ""
#: src/glances.py:770
msgid "Other"
msgstr ""
#: src/glances.py:771
msgid "Number:"
msgstr ""
#: src/glances.py:789
msgid "Size MB"
msgstr ""
#: src/glances.py:790
msgid "Res MB"
msgstr ""
#: src/glances.py:791
msgid "Name"
msgstr ""
#: src/glances.py:812
msgid " OK "
msgstr ""
#: src/glances.py:813
msgid "CAREFUL "
msgstr ""
#: src/glances.py:814
msgid "WARNING "
msgstr ""
#: src/glances.py:815
msgid "CRITICAL"
msgstr ""
#: src/glances.py:826
msgid "%Y-%m-%d %H:%M:%S"
msgstr ""
#: src/glances.py:834
msgid "Glances version "
msgstr ""
#: src/glances.py:839
msgid "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
msgstr ""
#: src/glances.py:841
msgid "\t-h:\tDisplay the syntax and exit"
msgstr ""
#: src/glances.py:842
msgid "\t-t sec:\tSet the refresh time in second default is 1"
msgstr ""
#: src/glances.py:843
msgid "\t-v:\tDisplay the version and exit"
msgstr ""
#: src/glances.py:845
msgid "When Glances is running, you can press:"
msgstr ""
#: src/glances.py:846
msgid "'a' to set the automatic mode. The processes are sorted automatically"
msgstr ""
#: src/glances.py:847
msgid "'c' to sort the processes list by CPU consumption"
msgstr ""
#: src/glances.py:848
msgid "'d' to disable or enable the disk IO stats"
msgstr ""
#: src/glances.py:849
msgid "'f' to disable or enable the file system stats"
msgstr ""
#: src/glances.py:850
msgid "'h' to hide or show the help message"
msgstr ""
#: src/glances.py:851
msgid "'m' to sort the processes list by process size"
msgstr ""
#: src/glances.py:852
msgid "'n' to disable or enable the network interfaces stats"
msgstr ""
#: src/glances.py:853
msgid "'q' to exit"
msgstr ""
#: src/glances.py:879
msgid "Error: Refresh time should be a positive non-null integer"
msgstr ""
#!/bin/bash
### Generating Spanish Locale
echo "Para instalar correctamente la traducción española,\n"
echo "debe ejecutar este script como root o con sudo.\n"
echo "\n\n"
echo "Traducción de JeanBoB <jeanbob@jeanbob.eu>\n\n"
echo "Generación del idioma española...\n"
msgfmt i18n/es/LC_MESSAGES/glances.po -o i18n/es/LC_MESSAGES/glances.mo
echo "Instalación en el siguiente directorio: /usr/share/locale/es/LC_MESSAGES/\n"
cp i18n/es/LC_MESSAGES/glances.mo /usr/share/locale/es/LC_MESSAGES/glances.mo
echo "¡Instalación terminado!\n\n"
\ No newline at end of file
#!/bin/bash
### Generating French Locale
echo "Pour réussir l'installation de la localisation française,\n"
echo "vous devez executer ce script sous l'utilisateur root ou avec sudo.\n"
echo "\n\n"
echo "Traduction par JeanBoB <jeanbob@jeanbob.eu>\n\n"
echo "Genération de la langue française...\n"
msgfmt i18n/fr/LC_MESSAGES/glances.po -o i18n/fr/LC_MESSAGES/glances.mo
echo "Installation dans le répertoire /usr/share/locale/fr/LC_MESSAGES/\n"
cp i18n/fr/LC_MESSAGES/glances.mo /usr/share/locale/fr/LC_MESSAGES/glances.mo
echo "Installation terminée\n\n"
\ No newline at end of file
......@@ -26,6 +26,13 @@ import signal
import time
import datetime
import multiprocessing
import gettext
#i18n
#====
application = 'glances'
gettext.install(application)
try:
import statgrab
......@@ -38,8 +45,8 @@ try:
import curses
import curses.panel
except:
print 'Curses initialization failed, Glances cannot start.'
print ''
print _('Textmode GUI initialization failed, Glances cannot start.')
print
sys.exit(1)
# Globals variables
......@@ -134,7 +141,7 @@ class glancesStats():
# Init libstatgrab
if not statgrab.sg_init():
print "Error: Can not init the libstatgrab library.\n"
print _("Error: Can not init the libstatgrab library.\n")
# Init the fs stats
try:
......@@ -315,7 +322,7 @@ class glancesScreen():
# Init the curses screen
self.screen = curses.initscr()
if not self.screen:
print "Error: Can not init the curses library.\n"
print _("Error: Can not init the curses library.\n")
curses.start_color()
curses.use_default_colors()
curses.noecho() ; curses.cbreak() ; curses.curs_set(0)
......@@ -555,15 +562,15 @@ class glancesScreen():
helpWindow = self.panel_help.window()
helpWindow.resize(self.term_h-self.help_y-2, self.term_w-self.help_x)
helpWindow.clear()
msg = "Glances help (press 'h' to hide)"
helpWindow.addnstr(1, 2, "'h'\tto display|hide this help message", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(2, 2, "'a'\tto sort processes automatically", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(3, 2, "'c'\tto sort processes by CPU consumption", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(4, 2, "'d'\tto disable|enable the disk IO stats", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(5, 2, "'f'\tto disable|enable the file system stats", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(6, 2, "'m'\tto sort processes by process size", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(7, 2, "'n'\tto disable|enable the network interfaces stats", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(8, 2, "'q'\tto exit Glances", self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
msg = _("Glances help (press 'h' to hide)")
helpWindow.addnstr(1, 2,_("'h'\tto display|hide this help message"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(2, 2,_("'a'\tto sort processes automatically"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(3, 2, _("'c'\tto sort processes by CPU consumption"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(4, 2, _("'d'\tto disable|enable the disk IO stats"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(5, 2, _("'f'\tto disable|enable the file system stats"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(6, 2, _("'m'\tto sort processes by process size"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(7, 2, _("'n'\tto disable|enable the network interfaces stats"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.addnstr(8, 2, _("'q'\tto exit Glances"), self.term_w-self.help_x-4, self.help_color if self.hascolors else 0)
helpWindow.box()
......@@ -589,7 +596,7 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.host_y)
and (screen_x > self.host_x+79)):
host_msg = "Glances v"+self.__version+" running on "+host['hostname'] # +" "+str(self.pressedkey)
host_msg = _("Glances v")+self.__version+_(" running on ")+host['hostname'] # +" "+str(self.pressedkey)
self.term_window.addnstr(self.host_y, self.host_x+int(screen_x/2)-len(host_msg)/2, host_msg, 80, self.title_color if self.hascolors else 0)
......@@ -613,12 +620,12 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.cpu_y+6)
and (screen_x > self.cpu_x+18)):
self.term_window.addnstr(self.cpu_y, self.cpu_x, "Cpu", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.cpu_y, self.cpu_x, _("Cpu"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.cpu_y, self.cpu_x+10,"%", 8)
self.term_window.addnstr(self.cpu_y+1, self.cpu_x, "User:", 8)
self.term_window.addnstr(self.cpu_y+2, self.cpu_x, "Kernel:", 8)
self.term_window.addnstr(self.cpu_y+3, self.cpu_x, "Nice:", 8)
self.term_window.addnstr(self.cpu_y+4, self.cpu_x, "Idle:", 8)
self.term_window.addnstr(self.cpu_y+1, self.cpu_x, _("User:"), 8)
self.term_window.addnstr(self.cpu_y+2, self.cpu_x, _("Kernel:"), 8)
self.term_window.addnstr(self.cpu_y+3, self.cpu_x, _("Nice:"), 8)
self.term_window.addnstr(self.cpu_y+4, self.cpu_x, _("Idle:"), 8)
self.term_window.addnstr(self.cpu_y+1, self.cpu_x+10, "%.1f" % cpu['user'], 8, self.__getColor(cpu['user']))
self.term_window.addnstr(self.cpu_y+2, self.cpu_x+10, "%.1f" % cpu['kernel'], 8, self.__getColor(cpu['kernel']))
self.term_window.addnstr(self.cpu_y+3, self.cpu_x+10, "%.1f" % cpu['nice'], 8, self.__getColor(cpu['nice']))
......@@ -633,11 +640,11 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.load_y+5)
and (screen_x > self.load_x+18)):
self.term_window.addnstr(self.load_y, self.load_x, "Load", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.load_y, self.load_x+10, str(core)+"-Core", 8)
self.term_window.addnstr(self.load_y+1, self.load_x, "1 min:", 8)
self.term_window.addnstr(self.load_y+2, self.load_x, "5 mins:", 8)
self.term_window.addnstr(self.load_y+3, self.load_x, "15 mins:", 8)
self.term_window.addnstr(self.load_y, self.load_x, _("Load"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.load_y, self.load_x+10, str(core)+_("-Core"), 8)
self.term_window.addnstr(self.load_y+1, self.load_x, _("1 min:"), 8)
self.term_window.addnstr(self.load_y+2, self.load_x, _("5 mins:"), 8)
self.term_window.addnstr(self.load_y+3, self.load_x, _("15 mins:"), 8)
self.term_window.addnstr(self.load_y+1, self.load_x+10, str(load['min1']), 8)
self.term_window.addnstr(self.load_y+2, self.load_x+10, str(load['min5']), 8, self.__getLoadColor(load['min5'], core))
self.term_window.addnstr(self.load_y+3, self.load_x+10, str(load['min15']), 8, self.__getLoadColor(load['min15'], core))
......@@ -651,13 +658,13 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.mem_y+5)
and (screen_x > self.mem_x+38)):
self.term_window.addnstr(self.mem_y, self.mem_x, "Mem MB", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.mem_y, self.mem_x+10,"Mem", 8)
self.term_window.addnstr(self.mem_y, self.mem_x+20,"Swap", 8)
self.term_window.addnstr(self.mem_y, self.mem_x+30,"Real", 8)
self.term_window.addnstr(self.mem_y+1, self.mem_x, "Total:", 8)
self.term_window.addnstr(self.mem_y+2, self.mem_x, "Used:", 8)
self.term_window.addnstr(self.mem_y+3, self.mem_x, "Free:", 8)
self.term_window.addnstr(self.mem_y, self.mem_x, _("Mem MB"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.mem_y, self.mem_x+10,_("Mem"), 8)
self.term_window.addnstr(self.mem_y, self.mem_x+20,_("Swap"), 8)
self.term_window.addnstr(self.mem_y, self.mem_x+30,_("Real"), 8)
self.term_window.addnstr(self.mem_y+1, self.mem_x, _("Total:"), 8)
self.term_window.addnstr(self.mem_y+2, self.mem_x, _("Used:"), 8)
self.term_window.addnstr(self.mem_y+3, self.mem_x, _("Free:"), 8)
self.term_window.addnstr(self.mem_y+1, self.mem_x+10, str(mem['total']/1048576), 8)
self.term_window.addnstr(self.mem_y+2, self.mem_x+10, str(mem['used']/1048576), 8)
self.term_window.addnstr(self.mem_y+3, self.mem_x+10, str(mem['free']/1048576), 8)
......@@ -691,9 +698,9 @@ class glancesScreen():
else:
speed[networkinterface[i]['interface_name']] = networkinterface[i]['speed']*1000000
# Network interfaces bitrate
self.term_window.addnstr(self.network_y, self.network_x, "Net rate", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.network_y, self.network_x+10, "Rx/ps", 8)
self.term_window.addnstr(self.network_y, self.network_x+20, "Tx/ps", 8)
self.term_window.addnstr(self.network_y, self.network_x, _("Net rate"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.network_y, self.network_x+10, _("Rx/ps"), 8)
self.term_window.addnstr(self.network_y, self.network_x+20, _("Tx/ps"), 8)
# Adapt the maximum interface to the screen
for i in range(0, min(screen_y-self.network_y-3, len(network))):
elapsed_time = max (1, network[i]['systime'])
......@@ -713,9 +720,9 @@ class glancesScreen():
self.diskio_y = offset_y
if ((screen_y > self.diskio_y+3)
and (screen_x > self.diskio_x+28)):
self.term_window.addnstr(self.diskio_y, self.diskio_x, "Disk I/O", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.diskio_y, self.diskio_x+10, "In/ps", 8)
self.term_window.addnstr(self.diskio_y, self.diskio_x+20, "Out/ps", 8)
self.term_window.addnstr(self.diskio_y, self.diskio_x, _("Disk I/O"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.diskio_y, self.diskio_x+10, _("In/ps"), 8)
self.term_window.addnstr(self.diskio_y, self.diskio_x+20, _("Out/ps"), 8)
# Adapt the maximum disk to the screen
disk = 0
for disk in range(0, min(screen_y-self.diskio_y-3, len(diskio))):
......@@ -736,9 +743,9 @@ class glancesScreen():
self.fs_y = offset_y
if ((screen_y > self.fs_y+3)
and (screen_x > self.fs_x+28)):
self.term_window.addnstr(self.fs_y, self.fs_x, "Mount", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.fs_y, self.fs_x+10, "Total", 8)
self.term_window.addnstr(self.fs_y, self.fs_x+20, "Used", 8)
self.term_window.addnstr(self.fs_y, self.fs_x, _("Mount"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.fs_y, self.fs_x+10, _("Total"), 8)
self.term_window.addnstr(self.fs_y, self.fs_x+20, _("Used"), 8)
# Adapt the maximum disk to the screen
mounted = 0
for mounted in range(0, min(screen_y-self.fs_y-3, len(fs))):
......@@ -765,12 +772,12 @@ class glancesScreen():
if ((screen_y > self.process_y+3)
and (screen_x > process_x+48)):
# Processes sumary
self.term_window.addnstr(self.process_y, process_x, "Process", 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.process_y, process_x+10,"Total", 8)
self.term_window.addnstr(self.process_y, process_x+20,"Running", 8)
self.term_window.addnstr(self.process_y, process_x+30,"Sleeping", 8)
self.term_window.addnstr(self.process_y, process_x+40,"Other", 8)
self.term_window.addnstr(self.process_y+1, process_x, "Number:", 8)
self.term_window.addnstr(self.process_y, process_x, _("Process"), 8, self.title_color if self.hascolors else curses.A_UNDERLINE)
self.term_window.addnstr(self.process_y, process_x+10,_("Total"), 8)
self.term_window.addnstr(self.process_y, process_x+20,_("Running"), 8)
self.term_window.addnstr(self.process_y, process_x+30,_("Sleeping"), 8)
self.term_window.addnstr(self.process_y, process_x+40,_("Other"), 8)
self.term_window.addnstr(self.process_y+1, process_x, _("Number:"), 8)
self.term_window.addnstr(self.process_y+1, process_x+10,str(processcount['total']), 8)
self.term_window.addnstr(self.process_y+1, process_x+20,str(processcount['running']), 8)
self.term_window.addnstr(self.process_y+1, process_x+30,str(processcount['sleeping']), 8)
......@@ -788,9 +795,9 @@ class glancesScreen():
sortchar = '^'
else:
sortchar = ' '
self.term_window.addnstr(self.process_y+3, process_x+10,"Size MB"+sortchar, 8)
self.term_window.addnstr(self.process_y+3, process_x+20,"Res MB", 8)
self.term_window.addnstr(self.process_y+3, process_x+30,"Name", 8)
self.term_window.addnstr(self.process_y+3, process_x+10,_("Size MB")+sortchar, 8)
self.term_window.addnstr(self.process_y+3, process_x+20,_("Res MB"), 8)
self.term_window.addnstr(self.process_y+3, process_x+30,_("Name"), 8)
for processes in range(0, min(screen_y-self.term_h+self.process_y, len(processlist))):
self.term_window.addnstr(self.process_y+4+processes, process_x, "%.1f" % processlist[processes]['cpu_percent'], 8, self.__getColor(processlist[processes]['cpu_percent']))
self.term_window.addnstr(self.process_y+4+processes, process_x+10, str((processlist[processes]['proc_size'])/1048576), 8)
......@@ -811,10 +818,10 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.caption_y)
and (screen_x > self.caption_x+32)):
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x, " OK ", 8, self.default_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+8, "CAREFUL ", 8, self.if50pc_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+16, "WARNING ", 8, self.if70pc_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+24, "CRITICAL", 8, self.if90pc_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x, _(" OK "), 8, self.default_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+8, _("CAREFUL "), 8, self.if50pc_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+16, _("WARNING "), 8, self.if70pc_color)
self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x+24, _("CRITICAL"), 8, self.if90pc_color)
def displayNow(self, now):
......@@ -825,7 +832,7 @@ class glancesScreen():
screen_y = self.screen.getmaxyx()[0]
if ((screen_y > self.now_y)
and (screen_x > self.now_x)):
now_msg = now.strftime("%Y-%m-%d %H:%M:%S")
now_msg = now.strftime(_("%Y-%m-%d %H:%M:%S"))
self.term_window.addnstr(max(self.now_y, screen_y-1), max(self.now_x, screen_x-1)-len(now_msg), now_msg, len(now_msg))
......@@ -833,26 +840,26 @@ class glancesScreen():
#===========
def printVersion():
print "Glances version "+__version__
print _("Glances version ")+__version__
def printSyntax():
printVersion()
print "Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]"
print _("Usage: glances.py [-t|--time sec] [-h|--help] [-v|--version]")
print ""
print "\t-h:\tDisplay the syntax and exit"
print "\t-t sec:\tSet the refresh time in second default is 1"
print "\t-v:\tDisplay the version and exit"
print _("\t-h:\tDisplay the syntax and exit")
print _("\t-t sec:\tSet the refresh time in second default is 1")
print _("\t-v:\tDisplay the version and exit")
print ""
print "When Glances is running, you can press:"
print "'a' to set the automatic mode. The processes are sorted automatically"
print "'c' to sort the processes list by CPU consumption"
print "'d' to disable or enable the disk IO stats"
print "'f' to disable or enable the file system stats"
print "'h' to hide or show the help message"
print "'m' to sort the processes list by process size"
print "'n' to disable or enable the network interfaces stats"
print "'q' to exit"
print _("When Glances is running, you can press:")
print _("'a' to set the automatic mode. The processes are sorted automatically")
print _("'c' to sort the processes list by CPU consumption")
print _("'d' to disable or enable the disk IO stats")
print _("'f' to disable or enable the file system stats")
print _("'h' to hide or show the help message")
print _("'m' to sort the processes list by process size")
print _("'n' to disable or enable the network interfaces stats")
print _("'q' to exit")
print ""
......@@ -878,7 +885,7 @@ def init():
if int(arg) >= 1:
refresh_time = int(arg)
else:
print "Error: Refresh time should be a positive non-null integer"
print _("Error: Refresh time should be a positive non-null integer")
sys.exit(2)
else:
printSyntax()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册