summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxerba <maiurana@gmail.com>2015-04-20 16:23:33 +0200
committermaxerba <maiurana@gmail.com>2015-04-20 16:23:33 +0200
commit6604268f2d9b25447b7426017388a630c11a702f (patch)
tree1fbb2e0fac450ccf6607179b3e23205764db0fa3
parent943d919db5804a273955e6453affb83e1c9cdf9d (diff)
Make some randr messages translatable
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/modules/conf_randr/e_int_config_randr2.c58
2 files changed, 30 insertions, 29 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c59c782..f692a09 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -172,6 +172,7 @@ src/modules/conf_paths/e_mod_main.c
172src/modules/conf_performance/e_int_config_performance.c 172src/modules/conf_performance/e_int_config_performance.c
173src/modules/conf_performance/e_int_config_powermanagement.c 173src/modules/conf_performance/e_int_config_powermanagement.c
174src/modules/conf_performance/e_mod_main.c 174src/modules/conf_performance/e_mod_main.c
175src/modules/conf_randr/e_int_config_randr.c
175src/modules/conf_randr/e_int_config_randr2.c 176src/modules/conf_randr/e_int_config_randr2.c
176src/modules/conf_randr/e_mod_main.c 177src/modules/conf_randr/e_mod_main.c
177src/modules/conf_shelves/e_int_config_shelf.c 178src/modules/conf_shelves/e_int_config_shelf.c
diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index 78a99d4..57c3bf4 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -310,17 +310,17 @@ _basic_screen_info_fill(E_Config_Dialog_Data *cfdata, E_Config_Randr2_Screen *cs
310 elm_slider_value_set(cfdata->priority_obj, cs->priority); 310 elm_slider_value_set(cfdata->priority_obj, cs->priority);
311 311
312 if (cs->rel_mode == E_RANDR2_RELATIVE_NONE) 312 if (cs->rel_mode == E_RANDR2_RELATIVE_NONE)
313 elm_object_text_set(cfdata->rel_mode_obj, "None"); 313 elm_object_text_set(cfdata->rel_mode_obj, _("None"));
314 else if (cs->rel_mode == E_RANDR2_RELATIVE_CLONE) 314 else if (cs->rel_mode == E_RANDR2_RELATIVE_CLONE)
315 elm_object_text_set(cfdata->rel_mode_obj, "Clone"); 315 elm_object_text_set(cfdata->rel_mode_obj, _("Clone"));
316 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_LEFT) 316 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_LEFT)
317 elm_object_text_set(cfdata->rel_mode_obj, "Left of"); 317 elm_object_text_set(cfdata->rel_mode_obj, _("Left of"));
318 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_RIGHT) 318 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_RIGHT)
319 elm_object_text_set(cfdata->rel_mode_obj, "Right of"); 319 elm_object_text_set(cfdata->rel_mode_obj, _("Right of"));
320 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_ABOVE) 320 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_ABOVE)
321 elm_object_text_set(cfdata->rel_mode_obj, "Above"); 321 elm_object_text_set(cfdata->rel_mode_obj, _("Above"));
322 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_BELOW) 322 else if (cs->rel_mode == E_RANDR2_RELATIVE_TO_BELOW)
323 elm_object_text_set(cfdata->rel_mode_obj, "Below"); 323 elm_object_text_set(cfdata->rel_mode_obj, _("Below"));
324 else 324 else
325 elm_object_text_set(cfdata->rel_mode_obj, "???"); 325 elm_object_text_set(cfdata->rel_mode_obj, "???");
326 326
@@ -430,7 +430,7 @@ _cb_rel_mode_none(void *data, Evas_Object *obj, void *event EINA_UNUSED)
430 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 430 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
431 if (!cs) return; 431 if (!cs) return;
432 cs->rel_mode = E_RANDR2_RELATIVE_NONE; 432 cs->rel_mode = E_RANDR2_RELATIVE_NONE;
433 elm_object_text_set(obj, "None"); 433 elm_object_text_set(obj, _("None"));
434 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 434 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
435} 435}
436 436
@@ -441,7 +441,7 @@ _cb_rel_mode_clone(void *data, Evas_Object *obj, void *event EINA_UNUSED)
441 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 441 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
442 if (!cs) return; 442 if (!cs) return;
443 cs->rel_mode = E_RANDR2_RELATIVE_CLONE; 443 cs->rel_mode = E_RANDR2_RELATIVE_CLONE;
444 elm_object_text_set(obj, "Clone"); 444 elm_object_text_set(obj, _("Clone"));
445 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 445 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
446} 446}
447 447
@@ -452,7 +452,7 @@ _cb_rel_mode_left_of(void *data, Evas_Object *obj, void *event EINA_UNUSED)
452 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 452 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
453 if (!cs) return; 453 if (!cs) return;
454 cs->rel_mode = E_RANDR2_RELATIVE_TO_LEFT; 454 cs->rel_mode = E_RANDR2_RELATIVE_TO_LEFT;
455 elm_object_text_set(obj, "Left of"); 455 elm_object_text_set(obj, _("Left of"));
456 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 456 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
457} 457}
458 458
@@ -463,7 +463,7 @@ _cb_rel_mode_right_of(void *data, Evas_Object *obj, void *event EINA_UNUSED)
463 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 463 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
464 if (!cs) return; 464 if (!cs) return;
465 cs->rel_mode = E_RANDR2_RELATIVE_TO_RIGHT; 465 cs->rel_mode = E_RANDR2_RELATIVE_TO_RIGHT;
466 elm_object_text_set(obj, "Right of"); 466 elm_object_text_set(obj, _("Right of"));
467 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 467 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
468} 468}
469 469
@@ -474,7 +474,7 @@ _cb_rel_mode_above(void *data, Evas_Object *obj, void *event EINA_UNUSED)
474 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 474 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
475 if (!cs) return; 475 if (!cs) return;
476 cs->rel_mode = E_RANDR2_RELATIVE_TO_ABOVE; 476 cs->rel_mode = E_RANDR2_RELATIVE_TO_ABOVE;
477 elm_object_text_set(obj, "Above"); 477 elm_object_text_set(obj, _("Above"));
478 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 478 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
479} 479}
480 480
@@ -485,7 +485,7 @@ _cb_rel_mode_below(void *data, Evas_Object *obj, void *event EINA_UNUSED)
485 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata); 485 E_Config_Randr2_Screen *cs = _config_screen_find(cfdata);
486 if (!cs) return; 486 if (!cs) return;
487 cs->rel_mode = E_RANDR2_RELATIVE_TO_BELOW; 487 cs->rel_mode = E_RANDR2_RELATIVE_TO_BELOW;
488 elm_object_text_set(obj, "Below"); 488 elm_object_text_set(obj, _("Below"));
489 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE); 489 e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
490} 490}
491 491
@@ -537,7 +537,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
537 o = elm_hoversel_add(win); 537 o = elm_hoversel_add(win);
538 evas_object_size_hint_weight_set(o, 0.0, 0.0); 538 evas_object_size_hint_weight_set(o, 0.0, 0.0);
539 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 539 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
540 elm_object_text_set(o, "Outputs"); 540 elm_object_text_set(o, _("Outputs"));
541 cfdata->screens = NULL; 541 cfdata->screens = NULL;
542 cfdata->screen_items = NULL; 542 cfdata->screen_items = NULL;
543 i = 0; 543 i = 0;
@@ -604,7 +604,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
604 o = elm_check_add(win); 604 o = elm_check_add(win);
605 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 605 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
606 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 606 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
607 elm_object_text_set(o, "Laptop lid"); 607 elm_object_text_set(o, _("Laptop lid"));
608 elm_table_pack(tb, o, 0, 3, 1, 1); 608 elm_table_pack(tb, o, 0, 3, 1, 1);
609 evas_object_show(o); 609 evas_object_show(o);
610 cfdata->lid_obj = o; 610 cfdata->lid_obj = o;
@@ -612,7 +612,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
612 o = elm_check_add(win); 612 o = elm_check_add(win);
613 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 613 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
614 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 614 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
615 elm_object_text_set(o, "Backlight"); 615 elm_object_text_set(o, _("Backlight"));
616 elm_table_pack(tb, o, 0, 4, 1, 1); 616 elm_table_pack(tb, o, 0, 4, 1, 1);
617 evas_object_show(o); 617 evas_object_show(o);
618 cfdata->backlight_obj = o; 618 cfdata->backlight_obj = o;
@@ -641,7 +641,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
641 o = elm_check_add(win); 641 o = elm_check_add(win);
642 evas_object_size_hint_weight_set(o, 0.0, 0.0); 642 evas_object_size_hint_weight_set(o, 0.0, 0.0);
643 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 643 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
644 elm_object_text_set(o, "On"); 644 elm_object_text_set(o, _("On"));
645 elm_table_pack(tb, o, 2, 4, 1, 1); 645 elm_table_pack(tb, o, 2, 4, 1, 1);
646 evas_object_show(o); 646 evas_object_show(o);
647 evas_object_smart_callback_add(o, "changed", _cb_enabled_changed, cfdata); 647 evas_object_smart_callback_add(o, "changed", _cb_enabled_changed, cfdata);
@@ -650,7 +650,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
650 o = elm_slider_add(win); 650 o = elm_slider_add(win);
651 evas_object_size_hint_weight_set(o, 0.0, 0.0); 651 evas_object_size_hint_weight_set(o, 0.0, 0.0);
652 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 652 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
653 elm_object_text_set(o, "Priority"); 653 elm_object_text_set(o, _("Priority"));
654 elm_slider_unit_format_set(o, "%3.0f"); 654 elm_slider_unit_format_set(o, "%3.0f");
655 elm_slider_span_size_set(o, 100); 655 elm_slider_span_size_set(o, 100);
656 elm_slider_min_max_set(o, 0, 100); 656 elm_slider_min_max_set(o, 0, 100);
@@ -662,13 +662,13 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
662 o = elm_hoversel_add(win); 662 o = elm_hoversel_add(win);
663 evas_object_size_hint_weight_set(o, 0.0, 0.0); 663 evas_object_size_hint_weight_set(o, 0.0, 0.0);
664 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 664 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
665 elm_object_text_set(o, "Relative"); 665 elm_object_text_set(o, _("Relative"));
666 elm_hoversel_item_add(o, "None", NULL, ELM_ICON_NONE, _cb_rel_mode_none, cfdata); 666 elm_hoversel_item_add(o, _("None"), NULL, ELM_ICON_NONE, _cb_rel_mode_none, cfdata);
667 elm_hoversel_item_add(o, "Clone", NULL, ELM_ICON_NONE, _cb_rel_mode_clone, cfdata); 667 elm_hoversel_item_add(o, _("Clone"), NULL, ELM_ICON_NONE, _cb_rel_mode_clone, cfdata);
668 elm_hoversel_item_add(o, "Left of", NULL, ELM_ICON_NONE, _cb_rel_mode_left_of, cfdata); 668 elm_hoversel_item_add(o, _("Left of"), NULL, ELM_ICON_NONE, _cb_rel_mode_left_of, cfdata);
669 elm_hoversel_item_add(o, "Right of", NULL, ELM_ICON_NONE, _cb_rel_mode_right_of, cfdata); 669 elm_hoversel_item_add(o, _("Right of"), NULL, ELM_ICON_NONE, _cb_rel_mode_right_of, cfdata);
670 elm_hoversel_item_add(o, "Above", NULL, ELM_ICON_NONE, _cb_rel_mode_above, cfdata); 670 elm_hoversel_item_add(o, _("Above"), NULL, ELM_ICON_NONE, _cb_rel_mode_above, cfdata);
671 elm_hoversel_item_add(o, "Below", NULL, ELM_ICON_NONE, _cb_rel_mode_below, cfdata); 671 elm_hoversel_item_add(o, _("Below"), NULL, ELM_ICON_NONE, _cb_rel_mode_below, cfdata);
672 elm_table_pack(tb, o, 2, 6, 1, 1); 672 elm_table_pack(tb, o, 2, 6, 1, 1);
673 evas_object_show(o); 673 evas_object_show(o);
674 cfdata->rel_mode_obj = o; 674 cfdata->rel_mode_obj = o;
@@ -676,7 +676,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
676 o = elm_hoversel_add(win); 676 o = elm_hoversel_add(win);
677 evas_object_size_hint_weight_set(o, 0.0, 0.0); 677 evas_object_size_hint_weight_set(o, 0.0, 0.0);
678 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 678 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
679 elm_object_text_set(o, "To"); 679 elm_object_text_set(o, _("To"));
680 EINA_LIST_FOREACH(e_randr2->screens, l, s) 680 EINA_LIST_FOREACH(e_randr2->screens, l, s)
681 { 681 {
682 Elm_Object_Item *it = NULL; 682 Elm_Object_Item *it = NULL;
@@ -696,7 +696,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
696 o = elm_slider_add(win); 696 o = elm_slider_add(win);
697 evas_object_size_hint_weight_set(o, 0.0, 0.0); 697 evas_object_size_hint_weight_set(o, 0.0, 0.0);
698 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); 698 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
699 elm_object_text_set(o, "Align"); 699 elm_object_text_set(o, _("Align"));
700 elm_slider_unit_format_set(o, "%1.1f"); 700 elm_slider_unit_format_set(o, "%1.1f");
701 elm_slider_span_size_set(o, 100); 701 elm_slider_span_size_set(o, 100);
702 elm_slider_min_max_set(o, 0.0, 1.0); 702 elm_slider_min_max_set(o, 0.0, 1.0);
@@ -718,7 +718,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
718 o = elm_check_add(win); 718 o = elm_check_add(win);
719 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 719 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
720 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 720 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
721 elm_object_text_set(o, "Restore setup on start"); 721 elm_object_text_set(o, _("Restore setup on start"));
722 elm_check_state_set(o, cfdata->restore); 722 elm_check_state_set(o, cfdata->restore);
723 elm_box_pack_end(bx2, o); 723 elm_box_pack_end(bx2, o);
724 evas_object_show(o); 724 evas_object_show(o);
@@ -727,7 +727,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
727 o = elm_check_add(win); 727 o = elm_check_add(win);
728 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 728 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
729 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 729 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
730 elm_object_text_set(o, "Monitor hotplug"); 730 elm_object_text_set(o, _("Monitor hotplug"));
731 elm_check_state_set(o, cfdata->hotplug); 731 elm_check_state_set(o, cfdata->hotplug);
732 elm_box_pack_end(bx2, o); 732 elm_box_pack_end(bx2, o);
733 evas_object_show(o); 733 evas_object_show(o);
@@ -736,7 +736,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas EINA_UNUSED, E_Config_Dialog_Data
736 o = elm_check_add(win); 736 o = elm_check_add(win);
737 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 737 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
738 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 738 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
739 elm_object_text_set(o, "Lid Events"); 739 elm_object_text_set(o, _("Lid Events"));
740 elm_check_state_set(o, cfdata->acpi); 740 elm_check_state_set(o, cfdata->acpi);
741 elm_box_pack_end(bx2, o); 741 elm_box_pack_end(bx2, o);
742 evas_object_show(o); 742 evas_object_show(o);