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(-) 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 From 7471eb6e39fc75e63c90fb591142f5a92e9f8461 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Thu, 31 Jan 2013 12:35:03 -0500 Subject: update POTFILES and pot --- po/POTFILES.in | 1 + po/POTFILES.skip | 1 + po/indicator-bluetooth.pot | 46 ++++++++++++++++++++++++++++------------------ 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 3d935d7..366eae0 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,5 @@ # List of source files containing translatable strings. # Please keep this file in alphabetical order. [encoding: UTF-8] +src/indicator-bluetooth.vala src/indicator-bluetooth-service.vala diff --git a/po/POTFILES.skip b/po/POTFILES.skip index 6161392..4ea7514 100644 --- a/po/POTFILES.skip +++ b/po/POTFILES.skip @@ -1 +1,2 @@ +src/indicator-bluetooth.c src/indicator-bluetooth-service.c diff --git a/po/indicator-bluetooth.pot b/po/indicator-bluetooth.pot index bb077e5..bd60d88 100644 --- a/po/indicator-bluetooth.pot +++ b/po/indicator-bluetooth.pot @@ -8,47 +8,57 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-12-06 16:29+1300\n" +"POT-Creation-Date: 2013-01-31 12:34-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: ../src/indicator-bluetooth-service.vala:48 -msgid "Enabled" +#: ../src/indicator-bluetooth.vala:17 +#: ../src/indicator-bluetooth-service.vala:195 +msgid "Bluetooth: On" msgstr "" -#: ../src/indicator-bluetooth-service.vala:62 +#: ../src/indicator-bluetooth-service.vala:47 +#: ../src/indicator-bluetooth-service.vala:385 +msgid "Bluetooth" +msgstr "" + +#: ../src/indicator-bluetooth-service.vala:61 msgid "Visible" msgstr "" -#: ../src/indicator-bluetooth-service.vala:111 -msgid "Bluetooth Settings..." +#: ../src/indicator-bluetooth-service.vala:110 +msgid "Bluetooth Settings…" +msgstr "" + +#: ../src/indicator-bluetooth-service.vala:195 +msgid "Bluetooth: Off" msgstr "" -#: ../src/indicator-bluetooth-service.vala:253 +#: ../src/indicator-bluetooth-service.vala:254 msgid "Connection" msgstr "" -#: ../src/indicator-bluetooth-service.vala:276 -msgid "Send files..." +#: ../src/indicator-bluetooth-service.vala:277 +msgid "Send files…" msgstr "" -#: ../src/indicator-bluetooth-service.vala:284 -msgid "Browse files..." +#: ../src/indicator-bluetooth-service.vala:285 +msgid "Browse files…" msgstr "" -#: ../src/indicator-bluetooth-service.vala:293 -msgid "Keyboard Settings..." +#: ../src/indicator-bluetooth-service.vala:294 +msgid "Keyboard Settings…" msgstr "" -#: ../src/indicator-bluetooth-service.vala:301 -msgid "Mouse and Touchpad Settings..." +#: ../src/indicator-bluetooth-service.vala:302 +msgid "Mouse and Touchpad Settings…" msgstr "" -#: ../src/indicator-bluetooth-service.vala:310 -msgid "Sound Settings..." +#: ../src/indicator-bluetooth-service.vala:311 +msgid "Sound Settings…" msgstr "" -- cgit v1.2.3