extra: be translatable!
This commit is contained in:
parent
30ef33ab86
commit
7d501c7e8e
|
@ -1,2 +1,5 @@
|
|||
src/bin/extra_main.c
|
||||
src/bin/extra_private.h
|
||||
src/bin/extra_background_selector.c
|
||||
src/bin/extra_theme_selector.c
|
||||
src/bin/extra_util.c
|
||||
|
|
|
@ -0,0 +1,95 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the extra package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: extra\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-08-27 20:51+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/bin/extra_main.c:70
|
||||
msgid "Themes"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_main.c:71
|
||||
msgid "Backgrounds"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_main.c:85
|
||||
msgid "Updating themes and backgrounds"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_background_selector.c:25
|
||||
msgid "Installing background"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_background_selector.c:73
|
||||
msgid "Uninstall"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_background_selector.c:79 src/bin/extra_theme_selector.c:83
|
||||
msgid "Install"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_background_selector.c:89 src/bin/extra_theme_selector.c:173
|
||||
msgid "Show fullscreen"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_background_selector.c:100 src/bin/extra_theme_selector.c:182
|
||||
msgid "Show Details"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:34
|
||||
#, c-format
|
||||
msgid "Installing theme %s!"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:76
|
||||
msgid "Update"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:90
|
||||
msgid "Set as default"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:97
|
||||
msgid "Back to default"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:222
|
||||
msgid "This theme is installed"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:230
|
||||
msgid "This theme is set as default"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_theme_selector.c:237
|
||||
msgid "There are updates available"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_util.c:66
|
||||
msgid "Set the theme as default ?"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_util.c:71
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_util.c:78
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#: src/bin/extra_util.c:454
|
||||
msgid "Source"
|
||||
msgstr ""
|
|
@ -22,7 +22,7 @@ _install_background(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
|
|||
Extra_Background *b = data;
|
||||
Extra_Progress *p;
|
||||
|
||||
p = extra_ui_progress_popup_show("Installing background", _background_installed, b);
|
||||
p = extra_ui_progress_popup_show(_("Installing background"), _background_installed, b);
|
||||
extra_background_download(p, b);
|
||||
}
|
||||
|
||||
|
@ -70,13 +70,13 @@ _show_tooltip(Extra_Background *b)
|
|||
|
||||
if (extra_background_installed(b))
|
||||
{
|
||||
elm_object_text_set(o, "Uninstall");
|
||||
elm_object_text_set(o, _("Uninstall"));
|
||||
elm_icon_standard_set(icon, "edit-delete");
|
||||
evas_object_smart_callback_add(o, "clicked", _uninstall_background, b);
|
||||
}
|
||||
else
|
||||
{
|
||||
elm_object_text_set(o, "Install");
|
||||
elm_object_text_set(o, _("Install"));
|
||||
elm_icon_standard_set(icon, "emblem-downloads");
|
||||
evas_object_smart_callback_add(o, "clicked", _install_background, b);
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ _show_tooltip(Extra_Background *b)
|
|||
|
||||
//view-fullscreen
|
||||
o = elm_button_add(box);
|
||||
elm_object_text_set(o, "Show fullscreen");
|
||||
elm_object_text_set(o, _("Show fullscreen"));
|
||||
evas_object_smart_callback_add(o, "clicked", _fullscreen_background , b);
|
||||
elm_box_pack_end(box, o);
|
||||
evas_object_show(o);
|
||||
|
@ -97,7 +97,7 @@ _show_tooltip(Extra_Background *b)
|
|||
//show details
|
||||
o = elm_button_add(box);
|
||||
evas_object_smart_callback_add(o, "clicked", _show_details, b);
|
||||
elm_object_text_set(o, "Show Details");
|
||||
elm_object_text_set(o, _("Show Details"));
|
||||
evas_object_show(o);
|
||||
elm_box_pack_end(box, o);
|
||||
icon = elm_icon_add(o);
|
||||
|
|
|
@ -67,8 +67,8 @@ _extra_win_sync_done_cb(void *data EINA_UNUSED)
|
|||
it = elm_segment_control_item_add(segcontrol, ic, txt); \
|
||||
elm_object_item_data_set(it, obj); \
|
||||
|
||||
IC_ADD("preferences-desktop-theme", "Themes", _ui.theme_selector);
|
||||
IC_ADD("preferences-desktop-wallpaper", "Backgrounds", _ui.background_selector);
|
||||
IC_ADD("preferences-desktop-theme", _("Themes"), _ui.theme_selector);
|
||||
IC_ADD("preferences-desktop-wallpaper", _("Backgrounds"), _ui.background_selector);
|
||||
|
||||
#undef IC_ADD
|
||||
|
||||
|
@ -82,7 +82,7 @@ extra_win_sync(void)
|
|||
{
|
||||
Extra_Progress *progress;
|
||||
|
||||
progress = extra_ui_progress_popup_show("Updating themes and backgrounds", _extra_win_sync_done_cb, NULL);
|
||||
progress = extra_ui_progress_popup_show(_("Updating themes and backgrounds"), _extra_win_sync_done_cb, NULL);
|
||||
extra_sync(progress);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
#include "../lib/extra.h"
|
||||
#include "extra_util.h"
|
||||
|
||||
#define _(str) gettext(str)
|
||||
#define d_(str, dom) dgettext(PACKAGE dom, str)
|
||||
#define P_(str, str_p, n) ngettext(str, str_p, n)
|
||||
#define dP_(str, str_p, n, dom) dngettext(PACKAGE dom, str, str_p, n)
|
||||
|
||||
typedef struct {
|
||||
Evas_Object *win;
|
||||
Evas_Object *background_selector;
|
||||
|
|
|
@ -31,7 +31,7 @@ _install_theme(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_U
|
|||
Eina_Strbuf *title;
|
||||
|
||||
title = eina_strbuf_new();
|
||||
eina_strbuf_append_printf(title, "Installing theme %s!", candidate->obj.name);
|
||||
eina_strbuf_append_printf(title, _("Installing theme %s!"), candidate->obj.name);
|
||||
|
||||
progress = extra_ui_progress_popup_show(eina_strbuf_string_get(title), _install_done, candidate);
|
||||
extra_theme_download(progress, candidate);
|
||||
|
@ -73,28 +73,28 @@ _action_button_create(Evas_Object *par, Extra_Theme *theme)
|
|||
//there is a update available add a update button
|
||||
elm_icon_standard_set(icon, "software-update-available");
|
||||
evas_object_smart_callback_add(install, "clicked", _install_theme, theme);
|
||||
elm_object_text_set(install, "Update");
|
||||
elm_object_text_set(install, _("Update"));
|
||||
}
|
||||
else if (!extra_theme_installed(theme))
|
||||
{
|
||||
//that is not installed add a install utton
|
||||
elm_icon_standard_set(icon, "emblem-downloads");
|
||||
evas_object_smart_callback_add(install, "clicked", _install_theme, theme);
|
||||
elm_object_text_set(install, "Install");
|
||||
elm_object_text_set(install, _("Install"));
|
||||
}
|
||||
else if (extra_theme_installed(theme) && !extra_theme_default_get(theme))
|
||||
{
|
||||
//the theme is installed but not the default
|
||||
elm_icon_standard_set(icon, "emblem-favorite");
|
||||
evas_object_smart_callback_add(install, "clicked", _set_as_default, theme);
|
||||
elm_object_text_set(install, "Set as default");
|
||||
elm_object_text_set(install, _("Set as default"));
|
||||
}
|
||||
else if (extra_theme_installed(theme) && extra_theme_default_get(theme))
|
||||
{
|
||||
//the theme is installed but not the default
|
||||
elm_icon_standard_set(icon, "emblem-favorite");
|
||||
evas_object_smart_callback_add(install, "clicked", _back_to_default, theme);
|
||||
elm_object_text_set(install, "Back to default");
|
||||
elm_object_text_set(install, _("Back to default"));
|
||||
}
|
||||
return install;
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ _item_selected(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
|
|||
|
||||
o = elm_button_add(box);
|
||||
evas_object_smart_callback_add(o, "clicked", _show_fullscreen, t);
|
||||
elm_object_text_set(o, "Show Fullscreen");
|
||||
elm_object_text_set(o, _("Show fullscreen"));
|
||||
evas_object_show(o);
|
||||
elm_box_pack_end(box, o);
|
||||
icon = elm_icon_add(o);
|
||||
|
@ -179,7 +179,7 @@ _item_selected(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
|
|||
|
||||
o = elm_button_add(box);
|
||||
evas_object_smart_callback_add(o, "clicked", _show_details, t);
|
||||
elm_object_text_set(o, "Show Details");
|
||||
elm_object_text_set(o, _("Show Details"));
|
||||
evas_object_show(o);
|
||||
elm_box_pack_end(box, o);
|
||||
icon = elm_icon_add(o);
|
||||
|
@ -219,7 +219,7 @@ extra_theme_small_new(Evas_Object *par, Extra_Theme *theme)
|
|||
if (extra_theme_installed(theme))
|
||||
{
|
||||
//theme is installed
|
||||
o = _icon_add(par, "emblem-downloads", "This theme is installed");
|
||||
o = _icon_add(par, "emblem-downloads", _("This theme is installed"));
|
||||
elm_table_pack(table, o, counter, 0, 1, 1);
|
||||
counter ++;
|
||||
}
|
||||
|
@ -227,14 +227,14 @@ extra_theme_small_new(Evas_Object *par, Extra_Theme *theme)
|
|||
if (extra_theme_default_get(theme))
|
||||
{
|
||||
//theme is default
|
||||
o = _icon_add(par, "emblem-default", "This theme is set as default");
|
||||
o = _icon_add(par, "emblem-default", _("This theme is set as default"));
|
||||
elm_table_pack(table, o, counter, 0, 1, 1);
|
||||
counter ++;
|
||||
}
|
||||
|
||||
if (!extra_theme_installed(theme) && extra_theme_installed_old(theme))
|
||||
{
|
||||
o = _icon_add(par, "software-update-available", "There are updates available");
|
||||
o = _icon_add(par, "software-update-available", _("There are updates available"));
|
||||
elm_table_pack(table, o, counter, 0, 1, 1);
|
||||
counter ++;
|
||||
}
|
||||
|
|
|
@ -63,19 +63,19 @@ extra_ui_theme_ask_for_default(Extra_Theme *theme)
|
|||
evas_object_show(table);
|
||||
|
||||
o = elm_label_add(popup);
|
||||
elm_object_text_set(o, "Set the theme as default ?");
|
||||
elm_object_text_set(o, _("Set the theme as default ?"));
|
||||
elm_table_pack(table, o, 0, 0, 2, 1);
|
||||
evas_object_show(o);
|
||||
|
||||
o = elm_button_add(popup);
|
||||
elm_object_text_set(o, "Yes");
|
||||
elm_object_text_set(o, _("Yes"));
|
||||
elm_table_pack(table, o, 0, 1, 1, 1);
|
||||
evas_object_data_set(o, "popup", popup);
|
||||
evas_object_smart_callback_add(o, "clicked", _extra_win_ask_yes, theme);
|
||||
evas_object_show(o);
|
||||
|
||||
o = elm_button_add(popup);
|
||||
elm_object_text_set(o, "No");
|
||||
elm_object_text_set(o, _("No"));
|
||||
elm_table_pack(table, o, 1, 1, 1, 1);
|
||||
evas_object_smart_callback_add(o, "clicked", _extra_win_ask_no, NULL);
|
||||
evas_object_data_set(o, "popup", popup);
|
||||
|
@ -451,7 +451,7 @@ extra_ui_base_object_detail(void *real_obj, Extra_Base_Object *obj, Extra_Ui_Sma
|
|||
if (obj->source)
|
||||
{
|
||||
buf = eina_strbuf_new();
|
||||
eina_strbuf_append_printf(buf, "<link>Source</link>");
|
||||
eina_strbuf_append_printf(buf, "<link>%s</link>", _("Source"));
|
||||
|
||||
o = elm_entry_add(table);
|
||||
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP, _link, obj);
|
||||
|
|
Loading…
Reference in New Issue