From ead9d50f78291618e8a4e21a04632727de65af75 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Thu, 31 Jan 2013 12:27:59 -0500 Subject: translate accessible descriptions --- src/Makefile.am | 1 + src/indicator-bluetooth-service.vala | 2 +- src/indicator-bluetooth.vala | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index d2ed9dd..8a0b790 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -36,6 +36,7 @@ libbluetooth_la_VALAFLAGS = \ --pkg DbusmenuGtk3-0.4 libbluetooth_la_CFLAGS = \ + -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \ $(INDICATOR_BLUETOOTH_CFLAGS) libbluetooth_la_LIBADD = \ diff --git a/src/indicator-bluetooth-service.vala b/src/indicator-bluetooth-service.vala index c3b97d2..4b62e74 100644 --- a/src/indicator-bluetooth-service.vala +++ b/src/indicator-bluetooth-service.vala @@ -382,7 +382,7 @@ private class BluetoothService : Object { get { return _icon_name; } } - internal string _accessible_description = "Bluetooth"; + internal string _accessible_description = _("Bluetooth"); public string accessible_description { get { return _accessible_description; } diff --git a/src/indicator-bluetooth.vala b/src/indicator-bluetooth.vala index 3498261..729c1bf 100644 --- a/src/indicator-bluetooth.vala +++ b/src/indicator-bluetooth.vala @@ -14,7 +14,7 @@ public class BluetoothIndicator : Indicator.Object private Gtk.Image image; private DbusmenuGtk.Menu menu; private BluetoothService proxy; - private string accessible_description = "Bluetooth: On"; + private string accessible_description = _("Bluetooth: On"); construct { -- cgit v1.2.3