summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/POTFILES.in3
-rw-r--r--src/modules/bluez4/agent.c37
-rw-r--r--src/modules/bluez4/e_mod_main.c38
-rw-r--r--src/modules/bluez4/ebluez4.c29
4 files changed, 56 insertions, 51 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0f1bb74..3efda26 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -134,6 +134,9 @@ src/modules/access/e_mod_config.c
134src/modules/backlight/e_mod_main.c 134src/modules/backlight/e_mod_main.c
135src/modules/battery/e_mod_config.c 135src/modules/battery/e_mod_config.c
136src/modules/battery/e_mod_main.c 136src/modules/battery/e_mod_main.c
137src/modules/bluez4/agent.c
138src/modules/bluez4/e_mod_main.c
139src/modules/bluez4/ebluez4.c
137src/modules/clock/e_mod_config.c 140src/modules/clock/e_mod_config.c
138src/modules/clock/e_mod_main.c 141src/modules/clock/e_mod_main.c
139src/modules/conf_comp/e_mod_config.c 142src/modules/conf_comp/e_mod_config.c
diff --git a/src/modules/bluez4/agent.c b/src/modules/bluez4/agent.c
index e7fd227..e60a032 100644
--- a/src/modules/bluez4/agent.c
+++ b/src/modules/bluez4/agent.c
@@ -57,7 +57,7 @@ _create_dialog(const char *title, const char *msg,
57 57
58 con = e_container_current_get(e_manager_current_get()); 58 con = e_container_current_get(e_manager_current_get());
59 dialog = e_dialog_new(con, title, class); 59 dialog = e_dialog_new(con, title, class);
60 e_dialog_title_set(dialog, title); 60 e_dialog_title_set(dialog, _(title));
61 e_dialog_icon_set(dialog, icon, 64); 61 e_dialog_icon_set(dialog, icon, 64);
62 e_dialog_text_set(dialog, msg); 62 e_dialog_text_set(dialog, msg);
63 return dialog; 63 return dialog;
@@ -68,7 +68,7 @@ _display_msg(const char *title, const char *msg)
68{ 68{
69 E_Dialog *dialog = _create_dialog(title, msg, "view-hidden-files", 69 E_Dialog *dialog = _create_dialog(title, msg, "view-hidden-files",
70 "display"); 70 "display");
71 e_dialog_button_add(dialog, "OK", NULL, NULL, NULL); 71 e_dialog_button_add(dialog, _("OK"), NULL, NULL, NULL);
72 e_dialog_show(dialog); 72 e_dialog_show(dialog);
73} 73}
74 74
@@ -113,7 +113,7 @@ _ask(const char *title, const char *ask_msg, const char *ok_label,
113 dialog->data = eldbus_message; 113 dialog->data = eldbus_message;
114 e_win_delete_callback_set(dialog->win, _close); 114 e_win_delete_callback_set(dialog->win, _close);
115 e_dialog_button_add(dialog, ok_label, NULL, _ok, NULL); 115 e_dialog_button_add(dialog, ok_label, NULL, _ok, NULL);
116 e_dialog_button_add(dialog, "Reject", NULL, _reject, NULL); 116 e_dialog_button_add(dialog, _("Reject"), NULL, _reject, NULL);
117 e_dialog_show(dialog); 117 e_dialog_show(dialog);
118} 118}
119 119
@@ -130,10 +130,10 @@ _agent_request_pin_code(const Eldbus_Service_Interface *iface, const Eldbus_Mess
130{ 130{
131 Eldbus_Message *msg = (Eldbus_Message *)message; 131 Eldbus_Message *msg = (Eldbus_Message *)message;
132 eldbus_message_ref(msg); 132 eldbus_message_ref(msg);
133 e_entry_dialog_show("Pin Code Requested", NULL, 133 e_entry_dialog_show(_("Pin Code Requested"), NULL,
134 "Enter the PinCode above. It should have 1-16 " 134 _("Enter the PinCode above. It should have 1-16 "
135 "characters and can be alphanumeric.", "0000", 135 "characters and can be alphanumeric."), "0000",
136 "OK", "Cancel", _pincode_ok, _cancel, msg); 136 _("OK"), _("Cancel"), _pincode_ok, _cancel, msg);
137 return NULL; 137 return NULL;
138} 138}
139 139
@@ -142,9 +142,10 @@ _agent_request_passkey(const Eldbus_Service_Interface *iface, const Eldbus_Messa
142{ 142{
143 Eldbus_Message *msg = (Eldbus_Message *)message; 143 Eldbus_Message *msg = (Eldbus_Message *)message;
144 eldbus_message_ref(msg); 144 eldbus_message_ref(msg);
145 e_entry_dialog_show("Passkey Requested", NULL, "Enter the Passkey above. " 145 e_entry_dialog_show(_("Passkey Requested"), NULL,
146 "It should be a numeric value between 0-999999.", 146 _("Enter the Passkey above. "
147 "0", "OK", "Cancel", _passkey_ok, _cancel, msg); 147 "It should be a numeric value between 0-999999."),
148 "0", _("OK"), _("Cancel"), _passkey_ok, _cancel, msg);
148 return NULL; 149 return NULL;
149} 150}
150 151
@@ -159,9 +160,9 @@ _agent_display_passkey(const Eldbus_Service_Interface *iface, const Eldbus_Messa
159 if(!eldbus_message_arguments_get(message, "ouq", &device, &passkey, &entered)) 160 if(!eldbus_message_arguments_get(message, "ouq", &device, &passkey, &entered))
160 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG); 161 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG);
161 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device); 162 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device);
162 snprintf(buf, sizeof(buf), "%d keys were typed on %s. Passkey is %06d", 163 snprintf(buf, sizeof(buf), _("%d keys were typed on %s. Passkey is %06d"),
163 entered, dev->name, passkey); 164 entered, dev->name, passkey);
164 _display_msg("Display Passkey", buf); 165 _display_msg(N_("Display Passkey"), buf);
165 return eldbus_message_method_return_new(message); 166 return eldbus_message_method_return_new(message);
166} 167}
167 168
@@ -174,8 +175,8 @@ _agent_display_pin_code(const Eldbus_Service_Interface *iface, const Eldbus_Mess
174 if(!eldbus_message_arguments_get(message, "os", &device, &pincode)) 175 if(!eldbus_message_arguments_get(message, "os", &device, &pincode))
175 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG); 176 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG);
176 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device); 177 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device);
177 snprintf(buf, sizeof(buf), "Pincode for %s is %s", dev->name, pincode); 178 snprintf(buf, sizeof(buf), _("Pincode for %s is %s"), dev->name, pincode);
178 _display_msg("Display Pincode", buf); 179 _display_msg(N_("Display Pincode"), buf);
179 return eldbus_message_method_return_new(message); 180 return eldbus_message_method_return_new(message);
180} 181}
181 182
@@ -189,10 +190,10 @@ _agent_request_confirmation(const Eldbus_Service_Interface *iface, const Eldbus_
189 if(!eldbus_message_arguments_get(message, "ou", &device, &passkey)) 190 if(!eldbus_message_arguments_get(message, "ou", &device, &passkey))
190 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG); 191 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG);
191 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device); 192 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device);
192 snprintf(buf, sizeof(buf), "%06d is the passkey presented in %s?", 193 snprintf(buf, sizeof(buf), _("%06d is the passkey presented in %s?"),
193 passkey, dev->name); 194 passkey, dev->name);
194 eldbus_message_ref((Eldbus_Message *)message); 195 eldbus_message_ref((Eldbus_Message *)message);
195 _ask("Confirm Request", buf, "Confirm", (Eldbus_Message *)message); 196 _ask(N_("Confirm Request"), buf, _("Confirm"), (Eldbus_Message *)message);
196 return NULL; 197 return NULL;
197} 198}
198 199
@@ -205,10 +206,10 @@ _agent_authorize(const Eldbus_Service_Interface *iface, const Eldbus_Message *me
205 if(!eldbus_message_arguments_get(message, "os", &device, &uuid)) 206 if(!eldbus_message_arguments_get(message, "os", &device, &uuid))
206 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG); 207 return eldbus_message_error_new(message, BLUEZ_ERROR_FAILED, GET_ERROR_MSG);
207 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device); 208 dev = eina_list_search_unsorted(ctxt->devices, ebluez4_dev_path_cmp, device);
208 snprintf(buf, sizeof(buf), "Grant permission for %s to connect?", 209 snprintf(buf, sizeof(buf), _("Grant permission for %s to connect?"),
209 dev->name); 210 dev->name);
210 eldbus_message_ref((Eldbus_Message *)message); 211 eldbus_message_ref((Eldbus_Message *)message);
211 _ask("Authorize Connection", buf, "Grant", (Eldbus_Message *)message); 212 _ask(N_("Authorize Connection"), buf, _("Grant"), (Eldbus_Message *)message);
212 return NULL; 213 return NULL;
213} 214}
214 215
diff --git a/src/modules/bluez4/e_mod_main.c b/src/modules/bluez4/e_mod_main.c
index 73628e2..5a7b745 100644
--- a/src/modules/bluez4/e_mod_main.c
+++ b/src/modules/bluez4/e_mod_main.c
@@ -88,7 +88,7 @@ _ebluez4_cb_paired(void *data, Eina_Bool success, const char *err_msg)
88 if (success) 88 if (success)
89 _ebluez4_search_dialog_del(inst); 89 _ebluez4_search_dialog_del(inst);
90 else 90 else
91 ebluez4_show_error("Bluez Error", err_msg); 91 ebluez4_show_error(_("Bluez Error"), err_msg);
92} 92}
93 93
94static void 94static void
@@ -116,7 +116,7 @@ _ebluez4_cb_search(void *data, E_Menu *m, E_Menu_Item *mi)
116 con = e_container_current_get(e_manager_current_get()); 116 con = e_container_current_get(e_manager_current_get());
117 117
118 dialog = e_dialog_new(con, "Search Dialog", "search"); 118 dialog = e_dialog_new(con, "Search Dialog", "search");
119 e_dialog_title_set(dialog, "Searching for Devices..."); 119 e_dialog_title_set(dialog, _("Searching for Devices..."));
120 e_dialog_resizable_set(dialog, EINA_TRUE); 120 e_dialog_resizable_set(dialog, EINA_TRUE);
121 e_win_delete_callback_set(dialog->win, _ebluez4_cb_search_dialog_del); 121 e_win_delete_callback_set(dialog->win, _ebluez4_cb_search_dialog_del);
122 122
@@ -187,7 +187,7 @@ _ebluez4_cb_adap_settings(void *data)
187 con = e_container_current_get(e_manager_current_get()); 187 con = e_container_current_get(e_manager_current_get());
188 188
189 dialog = e_dialog_new(con, "Adapter Dialog", "adapter"); 189 dialog = e_dialog_new(con, "Adapter Dialog", "adapter");
190 e_dialog_title_set(dialog, "Adapter Settings"); 190 e_dialog_title_set(dialog, _("Adapter Settings"));
191 e_dialog_resizable_set(dialog, EINA_TRUE); 191 e_dialog_resizable_set(dialog, EINA_TRUE);
192 e_win_delete_callback_set(dialog->win, _ebluez4_cb_adap_settings_dialog_del); 192 e_win_delete_callback_set(dialog->win, _ebluez4_cb_adap_settings_dialog_del);
193 193
@@ -195,11 +195,11 @@ _ebluez4_cb_adap_settings(void *data)
195 195
196 list = e_widget_list_add(evas, 0, 0); 196 list = e_widget_list_add(evas, 0, 0);
197 197
198 ck = e_widget_check_add(evas, "Default", NULL); 198 ck = e_widget_check_add(evas, _("Default"), NULL);
199 e_widget_check_checked_set(ck, adap->is_default); 199 e_widget_check_checked_set(ck, adap->is_default);
200 e_widget_list_object_append(list, ck, 0, 0, 0); 200 e_widget_list_object_append(list, ck, 0, 0, 0);
201 201
202 ck = e_widget_check_add(evas, "Powered", &(adap->powered_checked)); 202 ck = e_widget_check_add(evas, _("Powered"), &(adap->powered_checked));
203 e_widget_check_checked_set(ck, adap->powered); 203 e_widget_check_checked_set(ck, adap->powered);
204 e_widget_list_object_append(list, ck, 0, 0, 0); 204 e_widget_list_object_append(list, ck, 0, 0, 0);
205 evas_object_smart_callback_add(ck, "changed", _ebluez4_powered_changed, 205 evas_object_smart_callback_add(ck, "changed", _ebluez4_powered_changed,
@@ -207,14 +207,14 @@ _ebluez4_cb_adap_settings(void *data)
207 ck_list = eina_list_append(ck_list, ck); 207 ck_list = eina_list_append(ck_list, ck);
208 208
209 209
210 ck = e_widget_check_add(evas, "Visible", &(adap->visible_checked)); 210 ck = e_widget_check_add(evas, _("Visible"), &(adap->visible_checked));
211 e_widget_check_checked_set(ck, adap->visible); 211 e_widget_check_checked_set(ck, adap->visible);
212 e_widget_list_object_append(list, ck, 0, 0, 0); 212 e_widget_list_object_append(list, ck, 0, 0, 0);
213 evas_object_smart_callback_add(ck, "changed", 213 evas_object_smart_callback_add(ck, "changed",
214 _ebluez4_visible_changed, adap); 214 _ebluez4_visible_changed, adap);
215 ck_list = eina_list_append(ck_list, ck); 215 ck_list = eina_list_append(ck_list, ck);
216 216
217 ck = e_widget_check_add(evas, "Pairable", &(adap->pairable_checked)); 217 ck = e_widget_check_add(evas, _("Pairable"), &(adap->pairable_checked));
218 e_widget_check_checked_set(ck, adap->pairable); 218 e_widget_check_checked_set(ck, adap->pairable);
219 e_widget_list_object_append(list, ck, 0, 0, 0); 219 e_widget_list_object_append(list, ck, 0, 0, 0);
220 evas_object_smart_callback_add(ck, "changed", 220 evas_object_smart_callback_add(ck, "changed",
@@ -261,7 +261,7 @@ _ebluez4_cb_adap_list(void *data, E_Menu *m, E_Menu_Item *mi)
261 con = e_container_current_get(e_manager_current_get()); 261 con = e_container_current_get(e_manager_current_get());
262 262
263 dialog = e_dialog_new(con, "Adapters Dialog", "adapters"); 263 dialog = e_dialog_new(con, "Adapters Dialog", "adapters");
264 e_dialog_title_set(dialog, "Adapters Available"); 264 e_dialog_title_set(dialog, _("Adapters Available"));
265 e_dialog_resizable_set(dialog, EINA_TRUE); 265 e_dialog_resizable_set(dialog, EINA_TRUE);
266 e_win_delete_callback_set(dialog->win, _ebluez4_cb_adap_list_dialog_del); 266 e_win_delete_callback_set(dialog->win, _ebluez4_cb_adap_list_dialog_del);
267 267
@@ -371,7 +371,7 @@ _ebluez4_add_devices(Instance *inst)
371 if (dev->paired) 371 if (dev->paired)
372 { 372 {
373 mi = e_menu_item_new(m); 373 mi = e_menu_item_new(m);
374 e_menu_item_label_set(mi, "Paired Devices"); 374 e_menu_item_label_set(mi, _("Paired Devices"));
375 e_menu_item_disabled_set(mi, EINA_TRUE); 375 e_menu_item_disabled_set(mi, EINA_TRUE);
376 ret = EINA_TRUE; 376 ret = EINA_TRUE;
377 break; 377 break;
@@ -395,17 +395,17 @@ _ebluez4_add_devices(Instance *inst)
395 if (dev->connected) 395 if (dev->connected)
396 { 396 {
397 e_menu_item_toggle_set(mi, 1); 397 e_menu_item_toggle_set(mi, 1);
398 e_menu_item_label_set(submi, "Disconnect"); 398 e_menu_item_label_set(submi, _("Disconnect"));
399 e_menu_item_callback_set(submi, _ebluez4_cb_disconnect, dev); 399 e_menu_item_callback_set(submi, _ebluez4_cb_disconnect, dev);
400 } 400 }
401 else 401 else
402 { 402 {
403 e_menu_item_toggle_set(mi, 0); 403 e_menu_item_toggle_set(mi, 0);
404 e_menu_item_label_set(submi, "Connect"); 404 e_menu_item_label_set(submi, _("Connect"));
405 e_menu_item_callback_set(submi, _ebluez4_cb_connect, dev); 405 e_menu_item_callback_set(submi, _ebluez4_cb_connect, dev);
406 } 406 }
407 submi = e_menu_item_new(subm); 407 submi = e_menu_item_new(subm);
408 e_menu_item_label_set(submi, "Forget"); 408 e_menu_item_label_set(submi, _("Forget"));
409 e_menu_item_callback_set(submi, _ebluez4_cb_forget, dev); 409 e_menu_item_callback_set(submi, _ebluez4_cb_forget, dev);
410 410
411#ifdef HAVE_BLUETOOTH 411#ifdef HAVE_BLUETOOTH
@@ -414,7 +414,7 @@ _ebluez4_add_devices(Instance *inst)
414 /* Auto lock when away */ 414 /* Auto lock when away */
415 submi = e_menu_item_new(subm); 415 submi = e_menu_item_new(subm);
416 e_menu_item_check_set(submi, 1); 416 e_menu_item_check_set(submi, 1);
417 e_menu_item_label_set(submi, "Lock on disconnect"); 417 e_menu_item_label_set(submi, _("Lock on disconnect"));
418 e_menu_item_callback_set(submi, _ebluez4_cb_lock, dev); 418 e_menu_item_callback_set(submi, _ebluez4_cb_lock, dev);
419 chk = ebluez4_config->lock_dev_addr && dev->addr && 419 chk = ebluez4_config->lock_dev_addr && dev->addr &&
420 !strcmp(dev->addr, ebluez4_config->lock_dev_addr); 420 !strcmp(dev->addr, ebluez4_config->lock_dev_addr);
@@ -422,7 +422,7 @@ _ebluez4_add_devices(Instance *inst)
422 422
423 submi = e_menu_item_new(subm); 423 submi = e_menu_item_new(subm);
424 e_menu_item_check_set(submi, 1); 424 e_menu_item_check_set(submi, 1);
425 e_menu_item_label_set(submi, "Unlock on disconnect"); 425 e_menu_item_label_set(submi, _("Unlock on disconnect"));
426 e_menu_item_callback_set(submi, _ebluez4_cb_unlock, dev); 426 e_menu_item_callback_set(submi, _ebluez4_cb_unlock, dev);
427 chk = ebluez4_config->unlock_dev_addr && dev->addr && 427 chk = ebluez4_config->unlock_dev_addr && dev->addr &&
428 !strcmp(dev->addr, ebluez4_config->unlock_dev_addr); 428 !strcmp(dev->addr, ebluez4_config->unlock_dev_addr);
@@ -444,7 +444,7 @@ _ebluez4_menu_new(Instance *inst)
444 444
445 m = e_menu_new(); 445 m = e_menu_new();
446 e_menu_post_deactivate_callback_set(m, _menu_post_deactivate, inst); 446 e_menu_post_deactivate_callback_set(m, _menu_post_deactivate, inst);
447 e_menu_title_set(m, "Bluez4"); 447 e_menu_title_set(m, _("Bluez4"));
448 inst->menu = m; 448 inst->menu = m;
449 449
450 if (_ebluez4_add_devices(inst)) 450 if (_ebluez4_add_devices(inst))
@@ -454,11 +454,11 @@ _ebluez4_menu_new(Instance *inst)
454 } 454 }
455 455
456 mi = e_menu_item_new(m); 456 mi = e_menu_item_new(m);
457 e_menu_item_label_set(mi, "Search New Devices"); 457 e_menu_item_label_set(mi, _("Search New Devices"));
458 e_menu_item_callback_set(mi, _ebluez4_cb_search, inst); 458 e_menu_item_callback_set(mi, _ebluez4_cb_search, inst);
459 459
460 mi = e_menu_item_new(m); 460 mi = e_menu_item_new(m);
461 e_menu_item_label_set(mi, "Adapter Settings"); 461 e_menu_item_label_set(mi, _("Adapter Settings"));
462 e_menu_item_callback_set(mi, _ebluez4_cb_adap_list, inst); 462 e_menu_item_callback_set(mi, _ebluez4_cb_adap_list, inst);
463 463
464 zone = e_util_zone_current_get(e_manager_current_get()); 464 zone = e_util_zone_current_get(e_manager_current_get());
@@ -559,7 +559,7 @@ _gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient)
559static const char * 559static const char *
560_gc_label(const E_Gadcon_Client_Class *client_class) 560_gc_label(const E_Gadcon_Client_Class *client_class)
561{ 561{
562 return "Bluez4"; 562 return _("Bluez4");
563} 563}
564 564
565static Evas_Object * 565static Evas_Object *
@@ -805,7 +805,7 @@ void
805ebluez4_show_error(const char *err_name, const char *err_msg) 805ebluez4_show_error(const char *err_name, const char *err_msg)
806{ 806{
807 snprintf(tmpbuf, sizeof(tmpbuf), "%s: %s.", err_name, err_msg); 807 snprintf(tmpbuf, sizeof(tmpbuf), "%s: %s.", err_name, err_msg);
808 e_util_dialog_internal("An error has ocurred", tmpbuf); 808 e_util_dialog_internal(_("An error has ocurred"), tmpbuf);
809} 809}
810 810
811void 811void
diff --git a/src/modules/bluez4/ebluez4.c b/src/modules/bluez4/ebluez4.c
index af50910..e6fbed7 100644
--- a/src/modules/bluez4/ebluez4.c
+++ b/src/modules/bluez4/ebluez4.c
@@ -215,9 +215,10 @@ _on_dev_property_changed(void *context, const Eldbus_Message *msg)
215 if (!eldbus_message_arguments_get(msg, "sv", &key, &variant)) 215 if (!eldbus_message_arguments_get(msg, "sv", &key, &variant))
216 { 216 {
217 snprintf(err_msg, sizeof(err_msg), 217 snprintf(err_msg, sizeof(err_msg),
218 "Property of %s changed, but could not be read", dev->name); 218 _("Property of %s changed, but could not be read"),
219 dev->name);
219 ERR("%s", err_msg); 220 ERR("%s", err_msg);
220 ebluez4_show_error("Bluez Error", err_msg); 221 ebluez4_show_error(_("Bluez Error"), err_msg);
221 return; 222 return;
222 } 223 }
223 224
@@ -431,12 +432,12 @@ _on_list_devices(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending)
431{ 432{
432 Eldbus_Message_Iter *array; 433 Eldbus_Message_Iter *array;
433 const char *path; 434 const char *path;
434 const char *err_msg = "Error reading list of devices"; 435 const char *err_msg = _("Error reading list of devices");
435 436
436 if (!eldbus_message_arguments_get(msg, "ao", &array)) 437 if (!eldbus_message_arguments_get(msg, "ao", &array))
437 { 438 {
438 ERR("%s", err_msg); 439 ERR("%s", err_msg);
439 ebluez4_show_error("Bluez Error", err_msg); 440 ebluez4_show_error(_("Bluez Error"), err_msg);
440 return; 441 return;
441 } 442 }
442 443
@@ -456,9 +457,9 @@ _on_adap_property_changed(void *context, const Eldbus_Message *msg)
456 if (!eldbus_message_arguments_get(msg, "sv", &key, &variant)) 457 if (!eldbus_message_arguments_get(msg, "sv", &key, &variant))
457 { 458 {
458 snprintf(err_msg, sizeof(err_msg), 459 snprintf(err_msg, sizeof(err_msg),
459 "Property of %s changed, but could not be read", adap->name); 460 _("Property of %s changed, but could not be read"), adap->name);
460 ERR("%s", err_msg); 461 ERR("%s", err_msg);
461 ebluez4_show_error("Bluez Error", err_msg); 462 ebluez4_show_error(_("Bluez Error"), err_msg);
462 return; 463 return;
463 } 464 }
464 465
@@ -594,12 +595,12 @@ _on_list_adapters(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending
594{ 595{
595 Eldbus_Message_Iter *array; 596 Eldbus_Message_Iter *array;
596 const char *path; 597 const char *path;
597 const char *err_msg = "Error reading list of adapters"; 598 const char *err_msg = _("Error reading list of adapters");
598 599
599 if (!eldbus_message_arguments_get(msg, "ao", &array)) 600 if (!eldbus_message_arguments_get(msg, "ao", &array))
600 { 601 {
601 ERR("%s", err_msg); 602 ERR("%s", err_msg);
602 ebluez4_show_error("Bluez Error", err_msg); 603 ebluez4_show_error(_("Bluez Error"), err_msg);
603 return; 604 return;
604 } 605 }
605 606
@@ -612,12 +613,12 @@ _set_default_adapter(const Eldbus_Message *msg)
612{ 613{
613 Adapter *adap; 614 Adapter *adap;
614 const char *adap_path; 615 const char *adap_path;
615 const char *err_msg = "Error reading path of Default Adapter"; 616 const char *err_msg = _("Error reading path of Default Adapter");
616 617
617 if (!eldbus_message_arguments_get(msg, "o", &adap_path)) 618 if (!eldbus_message_arguments_get(msg, "o", &adap_path))
618 { 619 {
619 ERR("%s", err_msg); 620 ERR("%s", err_msg);
620 ebluez4_show_error("Bluez Error", err_msg); 621 ebluez4_show_error(_("Bluez Error"), err_msg);
621 return; 622 return;
622 } 623 }
623 624
@@ -672,12 +673,12 @@ static void
672_on_adapter_removed(void *context, const Eldbus_Message *msg) 673_on_adapter_removed(void *context, const Eldbus_Message *msg)
673{ 674{
674 const char *adap_path; 675 const char *adap_path;
675 const char *err_msg = "Error reading path of Removed Adapter"; 676 const char *err_msg = _("Error reading path of Removed Adapter");
676 677
677 if (!eldbus_message_arguments_get(msg, "o", &adap_path)) 678 if (!eldbus_message_arguments_get(msg, "o", &adap_path))
678 { 679 {
679 ERR("%s", err_msg); 680 ERR("%s", err_msg);
680 ebluez4_show_error("Bluez Error", err_msg); 681 ebluez4_show_error(_("Bluez Error"), err_msg);
681 return; 682 return;
682 } 683 }
683 684
@@ -688,12 +689,12 @@ static void
688_on_adapter_added(void *context, const Eldbus_Message *msg) 689_on_adapter_added(void *context, const Eldbus_Message *msg)
689{ 690{
690 const char *adap_path; 691 const char *adap_path;
691 const char *err_msg = "Error reading path of Added Adapter"; 692 const char *err_msg = _("Error reading path of Added Adapter");
692 693
693 if (!eldbus_message_arguments_get(msg, "o", &adap_path)) 694 if (!eldbus_message_arguments_get(msg, "o", &adap_path))
694 { 695 {
695 ERR("%s", err_msg); 696 ERR("%s", err_msg);
696 ebluez4_show_error("Bluez Error", err_msg); 697 ebluez4_show_error(_("Bluez Error"), err_msg);
697 return; 698 return;
698 } 699 }
699 700