diff options
author | Maciej Skrzypkowski <m.skrzypkows@samsung.com> | 2016-01-12 14:15:46 +0100 |
---|---|---|
committer | Dariusz Frankiewicz <d.frankiewic@samsung.com> | 2016-01-13 00:15:49 -0800 |
commit | 5f7e91f00c8900d4b948d27ec15b544d5afe37de (patch) | |
tree | 225324bdda53b50dbe71c7848712e5758b7d537f /services/QuickAccess | |
parent | c454b2c0c306f7704e3577a9b4a549e0a52adb1c (diff) | |
download | browser-5f7e91f00c8900d4b948d27ec15b544d5afe37de.tar.gz browser-5f7e91f00c8900d4b948d27ec15b544d5afe37de.tar.bz2 browser-5f7e91f00c8900d4b948d27ec15b544d5afe37de.zip |
Translation script
[Issue] https://bugs.tizen.org/jira/browse/TM-153
[Problem] There was no translations for strings in cpp files
[Solution] Created script which scans all cpp files, if in some file
there is a string which can be translated then it's replaced
with translate macro. Not all strings have it's translated
version in .po files, that's why only some strings are
translated now. What's more, strings from edc files
have to be translated too.
[Verify] Build browser, check translation for more menu, there
should be at least one string translated after language change.
Change-Id: Ia7d2b93c1d201cd7653acff909fe63fdd9102cbb
Signed-off-by: Maciej Skrzypkowski <m.skrzypkows@samsung.com>
Diffstat (limited to 'services/QuickAccess')
-rw-r--r-- | services/QuickAccess/DetailPopup.cpp | 3 | ||||
-rw-r--r-- | services/QuickAccess/QuickAccess.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/services/QuickAccess/DetailPopup.cpp b/services/QuickAccess/DetailPopup.cpp index 46219678..11a28fd3 100644 --- a/services/QuickAccess/DetailPopup.cpp +++ b/services/QuickAccess/DetailPopup.cpp @@ -18,6 +18,7 @@ #include <Elementary.h> #include <vector> #include <algorithm> +#include "app_i18n.h" #include "services/HistoryService/HistoryItem.h" #include "BrowserAssert.h" #include "DetailPopup.h" @@ -77,7 +78,7 @@ void DetailPopup::createLayout() elm_object_focus_set(m_urlButton, EINA_TRUE); edje_object_signal_callback_add(elm_layout_edje_get(m_layout), "mouse,clicked,1", "thumbnail", _url_click, this); - elm_layout_text_set(m_layout, "history_title", "History"); + elm_object_translatable_part_text_set(m_layout, "history_title", "IDS_BR_MBODY_HISTORY"); elm_layout_text_set(m_layout, "url", tools::clearURL(m_item->getUrl()).c_str()); m_historyList = elm_genlist_add(m_layout); diff --git a/services/QuickAccess/QuickAccess.cpp b/services/QuickAccess/QuickAccess.cpp index 602a3f9c..183ec54c 100644 --- a/services/QuickAccess/QuickAccess.cpp +++ b/services/QuickAccess/QuickAccess.cpp @@ -19,6 +19,7 @@ #include <vector> #include <AbstractMainWindow.h> +#include "app_i18n.h" #include "QuickAccess.h" #include "ServiceManager.h" #include "BrowserLogger.h" @@ -588,7 +589,7 @@ void QuickAccess::showBookmarks() BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__); m_currPage = QuickAccess::BOOKMARK_PAGE; #if PROFILE_MOBILE - elm_object_part_text_set(m_layout, "screen_title", "Bookmark"); + elm_object_translatable_part_text_set(m_layout, "screen_title", "IDS_BR_OPT_BOOKMARK"); setIndexPage(QuickAccess::BOOKMARK_PAGE); #else refreshFocusChain(); |