aboutsummaryrefslogtreecommitdiff
path: root/bat_tray
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-04-10 15:02:03 +1200
committerDavid <dbphillipsnz@gmail.com>2014-04-10 15:02:03 +1200
commit46318378cd1cda05329e974e89c032c6c90bd3e1 (patch)
treecd5b53c2091051f37f1f99bcba5114ca8684e1fe /bat_tray
parente55f3d0ced6cd8a30caefc3e2f6eeacd080a1626 (diff)
downloadparamano-46318378cd1cda05329e974e89c032c6c90bd3e1.tar.xz
French translation of strings
Diffstat (limited to 'bat_tray')
-rw-r--r--bat_tray/bat_tray.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bat_tray/bat_tray.c b/bat_tray/bat_tray.c
index 9f6adfb..38c85bc 100644
--- a/bat_tray/bat_tray.c
+++ b/bat_tray/bat_tray.c
@@ -16,6 +16,8 @@
* <http://www.gnu.org/licenses/>. *
************************************************************************/
+
+#include "../strings.h"
#include "bat_tray.h"
#include "../common.h"
@@ -26,7 +28,6 @@
static GtkStatusIcon* tray;
-
int _BAT_NUM;
char CHARGE_VALUE_PATH[512];
char CHARGE_STATE_PATH[512];
@@ -52,18 +53,18 @@ static gboolean update_tooltip(GtkStatusIcon* status_icon,gint x,gint y,gboolean
switch(get_battery_state())
{
case STATE_DISCHARGING:
- sprintf(msg, "Discharging (%i%% left)", get_bat_percent());
+ sprintf(msg, S_BAT_TRAY_C_BATTERY_DISCHARGING, get_bat_percent());
break;
case STATE_CHARGING:
- sprintf(msg, "Charging (%i%%)", get_bat_percent());
+ sprintf(msg, S_BAT_TRAY_C_BATTERY_CHARGING, get_bat_percent());
break;
case STATE_CHARGED:
- sprintf(msg, "Fully charged");
+ sprintf(msg, S_BAT_TRAY_C_BATTERY_FULL);
break;
default:
- sprintf(msg, "Unknown status");
+ sprintf(msg, S_BAT_TRAY_C_BATTERY_UNKNOWN);
break;
}