From 03d1920d92c420d44a25295d526bd44df8cf22d6 Mon Sep 17 00:00:00 2001 From: sumanth Date: Wed, 17 Jul 2013 01:18:07 +0530 Subject: [PATCH] [elm_datetime] 1) Day of the week show/hide signal is added in elm_datetime. 2) Datetime related strings "Set", "AM", "PM" entries are added in PO files. 3) New po file ja_JP.po is added for Japanese language. Change-Id: I3d69370e6afd824b02c06b9dc9a74952989b8cea --- po/LINGUAS | 2 +- po/POTFILES.in | 1 + po/ar.po | 14 ++ po/az_IR.po | 14 ++ po/cs.po | 14 ++ po/de.po | 14 ++ po/fa.po | 14 ++ po/fr.po | 14 ++ po/gl.po | 14 ++ po/he.po | 14 ++ po/it.po | 14 ++ po/ja_JP.po | 239 +++++++++++++++++++++ po/ko_KR.po | 14 ++ po/nl.po | 14 ++ po/ps.po | 14 ++ po/pt.po | 14 ++ po/ru.po | 14 ++ po/ur.po | 14 ++ po/yi.po | 14 ++ src/lib/elm_datetime.c | 1 + .../datetime_input_popup/datetime_input_popup.c | 22 +- 21 files changed, 481 insertions(+), 8 deletions(-) create mode 100644 po/ja_JP.po diff --git a/po/LINGUAS b/po/LINGUAS index 51927fd..52ead24 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1 +1 @@ -ar az_IR cs de fa fr gl he ko_KR nl it ps pt ru ur yi +ar az_IR cs de fa fr gl he ko_KR nl it ps pt ru ur yi ja_JP diff --git a/po/POTFILES.in b/po/POTFILES.in index 53d0815..da4e2a2 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -152,3 +152,4 @@ ./src/lib/els_tooltip.c ./src/modules/test_entry/mod.c ./src/modules/test_map/mod.c +./src/modules/datetime_input_popup/datetime_input_popup.c diff --git a/po/ar.po b/po/ar.po index bde88f1..66af660 100644 --- a/po/ar.po +++ b/po/ar.po @@ -189,3 +189,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/az_IR.po b/po/az_IR.po index 55ffff0..ce84a58 100644 --- a/po/az_IR.po +++ b/po/az_IR.po @@ -188,3 +188,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/cs.po b/po/cs.po index 5fa9f2d..7809c47 100644 --- a/po/cs.po +++ b/po/cs.po @@ -189,6 +189,20 @@ msgstr "Má nabídku" msgid "Tool Item" msgstr "Položka nástrojů" +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "Sada" + #~ msgid "ON" #~ msgstr "ZAPNUTO" diff --git a/po/de.po b/po/de.po index 480a718..ebcaf44 100644 --- a/po/de.po +++ b/po/de.po @@ -191,3 +191,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/fa.po b/po/fa.po index 55ffff0..ce84a58 100644 --- a/po/fa.po +++ b/po/fa.po @@ -188,3 +188,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/fr.po b/po/fr.po index 736b4d6..f46d0d8 100644 --- a/po/fr.po +++ b/po/fr.po @@ -193,6 +193,20 @@ msgstr "Possède un menu" msgid "Tool Item" msgstr "Élément outil" +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "Régler" + #~ msgid "ON" #~ msgstr "OUI" diff --git a/po/gl.po b/po/gl.po index a9387f2..af86e05 100644 --- a/po/gl.po +++ b/po/gl.po @@ -199,6 +199,20 @@ msgstr "Ten menú" msgid "Tool Item" msgstr "Ferramenta" +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "Conxunto" + #~ msgid "title" #~ msgstr "título" diff --git a/po/he.po b/po/he.po index 953ea29..ed3444d 100644 --- a/po/he.po +++ b/po/he.po @@ -189,3 +189,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/it.po b/po/it.po index b44d834..35d9ebc 100644 --- a/po/it.po +++ b/po/it.po @@ -189,3 +189,17 @@ msgstr "Include menù" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "Oggetto strumento" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "Set" diff --git a/po/ja_JP.po b/po/ja_JP.po new file mode 100644 index 0000000..0718953 --- /dev/null +++ b/po/ja_JP.po @@ -0,0 +1,239 @@ +# Elementary translation file Japanese Language. +# This file is distributed under the same license as the Elementary package. +# FIRST AUTHOR , 2013. +# +#: src/lib/elm_config.c:2277 +msgid "" +msgstr "" +"Project-Id-Version: elementary\n" +"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2013-07-20 15:21+0000\n" +"PO-Revision-Date: 2010-12-26 10:05+0200\n" +"Last-Translator: Sumanth Krishna \n" +"Language-Team: General\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#: src/lib/elc_ctxpopup.c:222 +msgid "icon" +msgstr "" + +#: src/lib/elc_ctxpopup.c:233 src/lib/elm_button.c:285 src/lib/elm_check.c:194 +#: src/lib/elm_gengrid.c:799 src/lib/elm_genlist.c:1564 +#: src/lib/elm_list.c:1670 src/lib/elm_radio.c:237 src/lib/elm_spinner.c:509 +#: src/lib/elm_toolbar.c:2029 +msgid "State: Disabled" +msgstr "" + +#: src/lib/elc_ctxpopup.c:241 +msgid "Contextual Popup" +msgstr "" + +#: src/lib/elc_fileselector.c:749 +msgid "Up" +msgstr "" + +#: src/lib/elc_fileselector.c:764 +msgid "Home" +msgstr "" + +#: src/lib/elc_fileselector.c:992 src/lib/elm_entry.c:1982 +#: src/lib/elm_entry.c:2007 +#: src/modules/datetime_input_popup/datetime_input_popup.c:792 +msgid "Cancel" +msgstr "キャンセル" + +#: src/lib/elc_fileselector.c:1001 +msgid "OK" +msgstr "" + +#: src/lib/elm_bubble.c:196 +msgid "Bubble" +msgstr "" + +#: src/lib/elm_button.c:59 +msgid "Clicked" +msgstr "" + +#: src/lib/elm_button.c:309 +msgid "Button" +msgstr "" + +#: src/lib/elm_calendar.c:134 +msgid "%B %Y" +msgstr "" + +#: src/lib/elm_calendar.c:234 +msgid "calendar item" +msgstr "" + +#: src/lib/elm_calendar.c:261 +msgid "calendar decrement button" +msgstr "" + +#: src/lib/elm_calendar.c:267 +msgid "calendar increment button" +msgstr "" + +#: src/lib/elm_calendar.c:273 +msgid "calendar month" +msgstr "" + +#: src/lib/elm_check.c:46 src/lib/elm_check.c:207 src/lib/elm_radio.c:83 +#: src/lib/elm_radio.c:238 +msgid "State: On" +msgstr "" + +#: src/lib/elm_check.c:52 src/lib/elm_check.c:219 src/lib/elm_radio.c:240 +msgid "State: Off" +msgstr "" + +#: src/lib/elm_check.c:203 src/lib/elm_check.c:216 +msgid "State" +msgstr "" + +#: src/lib/elm_check.c:314 +msgid "Check" +msgstr "" + +#: src/lib/elm_clock.c:298 +msgid "clock increment button for am,pm" +msgstr "" + +#: src/lib/elm_clock.c:306 +msgid "clock decrement button for am,pm" +msgstr "" + +#: src/lib/elm_clock.c:641 +msgid "State: Editable" +msgstr "" + +#: src/lib/elm_clock.c:676 +msgid "Clock" +msgstr "" + +#: src/lib/elm_colorselector.c:1341 +msgid "color selector palette item" +msgstr "" + +#: src/lib/elm_config.c:2293 +msgid "default:LTR" +msgstr "default:LTR" + +#: src/lib/elm_diskselector.c:657 +msgid "diskselector item" +msgstr "" + +#: src/lib/elm_entry.c:1975 +msgid "Copy" +msgstr "" + +#: src/lib/elm_entry.c:1979 +msgid "Cut" +msgstr "" + +#: src/lib/elm_entry.c:1994 +msgid "Select" +msgstr "" + +#: src/lib/elm_entry.c:2001 +msgid "Paste" +msgstr "" + +#: src/lib/elm_entry.c:3887 +msgid "Edit Field" +msgstr "" + +#: src/lib/elm_index.c:119 +msgid "Index Item" +msgstr "" + +#: src/lib/elm_index.c:443 +msgid "Index" +msgstr "" + +#: src/lib/elm_label.c:403 +msgid "Label" +msgstr "" + +#: src/lib/elm_panel.c:41 +msgid "state: opened" +msgstr "" + +#: src/lib/elm_panel.c:42 +msgid "state: closed" +msgstr "" + +#: src/lib/elm_panel.c:89 +msgid "panel button" +msgstr "" + +#: src/lib/elm_progressbar.c:258 +msgid "progressbar" +msgstr "" + +#: src/lib/elm_radio.c:267 +msgid "Radio" +msgstr "" + +#: src/lib/elm_slider.c:60 src/lib/elm_slider.c:69 src/lib/elm_slider.c:77 +msgid " of " +msgstr "" + +#: src/lib/elm_slider.c:769 +msgid " flick up and down to adjust" +msgstr "" + +#: src/lib/elm_slider.c:851 +msgid "slider" +msgstr "" + +#: src/lib/elm_spinner.c:598 +msgid "spinner increment button" +msgstr "" + +#: src/lib/elm_spinner.c:607 +msgid "spinner decrement button" +msgstr "" + +#: src/lib/elm_spinner.c:615 +msgid "spinner" +msgstr "" + +#: src/lib/elm_toolbar.c:1493 src/lib/elm_toolbar.c:2084 +msgid "Selected" +msgstr "" + +#: src/lib/elm_toolbar.c:2027 +msgid "Separator" +msgstr "" + +#: src/lib/elm_toolbar.c:2031 +msgid "State: Selected" +msgstr "" + +#: src/lib/elm_toolbar.c:2033 +msgid "Has menu" +msgstr "" + +#: src/lib/elm_toolbar.c:2096 +msgid "Toolbar Item" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "AM" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "PM" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "設定" diff --git a/po/ko_KR.po b/po/ko_KR.po index 4610dd6..93ced3b 100644 --- a/po/ko_KR.po +++ b/po/ko_KR.po @@ -189,3 +189,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "오전" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "오후" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "설정" diff --git a/po/nl.po b/po/nl.po index 44d69a6..95d0e2f 100644 --- a/po/nl.po +++ b/po/nl.po @@ -193,3 +193,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "Setzen" diff --git a/po/ps.po b/po/ps.po index ebdf8c8..49de1dd 100644 --- a/po/ps.po +++ b/po/ps.po @@ -187,3 +187,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/pt.po b/po/pt.po index 25e1c61..ea42d32 100644 --- a/po/pt.po +++ b/po/pt.po @@ -200,6 +200,20 @@ msgstr "Tem menu" msgid "Tool Item" msgstr "Item da barra de ferramentas" +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "zestaw" + #~ msgid "ON" #~ msgstr "Ligar" diff --git a/po/ru.po b/po/ru.po index 58d69d2..8fb82aa 100644 --- a/po/ru.po +++ b/po/ru.po @@ -192,3 +192,17 @@ msgstr "С меню" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "Элемент инструментов" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "набор" diff --git a/po/ur.po b/po/ur.po index ebdf8c8..49de1dd 100644 --- a/po/ur.po +++ b/po/ur.po @@ -187,3 +187,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/po/yi.po b/po/yi.po index ebdf8c8..49de1dd 100644 --- a/po/yi.po +++ b/po/yi.po @@ -187,3 +187,17 @@ msgstr "" #: src/lib/elm_toolbar.c:1596 msgid "Tool Item" msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:749 +#: src/modules/datetime_input_popup/datetime_input_popup.c:992 +msgid "AM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:754 +#: src/modules/datetime_input_popup/datetime_input_popup.c:993 +msgid "PM" +msgstr "" + +#: src/modules/datetime_input_popup/datetime_input_popup.c:786 +msgid "Set" +msgstr "" diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c index a66558c..db1eebc 100644 --- a/src/lib/elm_datetime.c +++ b/src/lib/elm_datetime.c @@ -256,6 +256,7 @@ _field_list_arrange(Evas_Object *obj) timepicker_start_idx); elm_layout_signal_emit(obj, buf, "elm"); + elm_layout_signal_emit(obj, "datetime,weekday,hide", "elm"); elm_layout_sizing_eval(obj); _field_list_display(obj); } diff --git a/src/modules/datetime_input_popup/datetime_input_popup.c b/src/modules/datetime_input_popup/datetime_input_popup.c index 77d5056..2cf5aa8 100644 --- a/src/modules/datetime_input_popup/datetime_input_popup.c +++ b/src/modules/datetime_input_popup/datetime_input_popup.c @@ -225,6 +225,13 @@ _entry_focused_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__) popup_mod = (Popup_Module_Data *)data; if (!popup_mod) return; + entry = elm_object_part_content_get(popup_mod->popup_field[ELM_DATETIME_MONTH], + "elm.swallow.entry"); + if (obj == entry) + { + value = (int)elm_spinner_value_get(popup_mod->popup_field[ELM_DATETIME_MONTH]) - 1; + elm_object_text_set(obj, month_arr[value]); + } for (idx = 0; idx < DATETIME_FIELD_COUNT -1; idx++) { entry = elm_object_part_content_get(popup_mod->popup_field[idx], "elm.swallow.entry"); @@ -235,13 +242,7 @@ _entry_focused_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__) return; } } - entry = elm_object_part_content_get(popup_mod->popup_field[ELM_DATETIME_MONTH], - "elm.swallow.entry"); - if (obj == entry) - { - value = (int)elm_spinner_value_get(popup_mod->popup_field[ELM_DATETIME_MONTH]) - 1; - elm_object_text_set(obj, month_arr[value]); - } + elm_entry_select_all(obj); } @@ -993,6 +994,13 @@ field_value_display(Elm_Datetime_Module_Data *module_data, Evas_Object *obj) else strcpy(buf, E_("PM")); } elm_object_text_set(obj, buf); + + if (field_type == ELM_DATETIME_DATE) + { + mktime(&curr_time); + strftime(buf, sizeof(buf), "%a", &curr_time); + elm_layout_text_set(popup_mod->mod_data.base, "elm.text.weekday", buf); + } } EAPI Evas_Object * -- 2.7.4