From: Agnelo Vaz Date: Wed, 2 Sep 2015 15:27:23 +0000 (+0100) Subject: String localisation enabled in spec file X-Git-Tag: dali_1.1.2~9^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=453ae4165633d023d6466841ca01ebe3760d899a;hp=2c12e6ecebf7e4254ab033b1d0de64158eb5aead String localisation enabled in spec file * Previously by default i18n falg was not set so string localisation was not done. * Desktop builds which don't use the spec file will by default not do localisation. * Now use sys_string as source for translations - Currently not all languages have po files in the system. Tested with Hindi, Korean and English Change-Id: I97e14e124cefb8e32468d323c48969bc64eea381 Signed-off-by: Agnelo Vaz --- diff --git a/build/tizen/configure.ac b/build/tizen/configure.ac index 9378eed..77c33f0 100644 --- a/build/tizen/configure.ac +++ b/build/tizen/configure.ac @@ -179,6 +179,7 @@ Configuration Profile: $dali_profile Data Dir (Read/Write): $dataReadWriteDir Data Dir (Read Only): $dataReadOnlyDir - Style Dir $STYLE_DIR - Style $dali_style + Style Dir: $STYLE_DIR + Style: $dali_style + i18n: $enable_i18n " diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp index 68a30c5..606e6bd 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp @@ -48,7 +48,7 @@ namespace Internal namespace { // todo Move this to adaptor?? -#define GET_LOCALE_TEXT(string) dgettext("elementary", string) +#define GET_LOCALE_TEXT(string) dgettext("sys_string", string) const std::string TEXT_SELECTION_POPUP_BUTTON_STYLE_NAME( "textselectionpopupbutton" ); const Dali::Vector4 DEFAULT_OPTION_PRESSED_COLOR( Dali::Vector4( 0.24f, 0.72f, 0.8f, 1.0f ) ); diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index 634d8e4..b670557 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -73,7 +73,7 @@ cd %{_builddir}/dali-toolkit-%{version}/build/tizen autoreconf --install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR -%configure --enable-profile=%{dali_toolkit_profile} --with-style=%{dali_style_folder} +%configure --enable-profile=%{dali_toolkit_profile} --with-style=%{dali_style_folder} --enable-i18n=yes make %{?jobs:-j%jobs} ##############################