Commit 1a0d43679a1490eb75b38fcffcd273537fad9110
Committed by
Victor Cebollada
1 parent
00bf2c28
Added some basic i18n Support
The dali-demo launcher will show different languages (more localiation needed). Example usage for Korean: LANGUAGE=ko dali-demo Change-Id: I03807ac6d90393564afbc81134de4c05b1bc8364
Showing
17 changed files
with
619 additions
and
19 deletions
.gitignore
build/tizen/.gitignore
| ... | ... | @@ -3,3 +3,11 @@ CMakeFiles/ |
| 3 | 3 | cmake_install.cmake |
| 4 | 4 | demo/dali-demo |
| 5 | 5 | install_manifest.txt |
| 6 | +/demo/dali-demo | |
| 7 | +/demo/dali-examples | |
| 8 | +/demo/dali-performance | |
| 9 | +/demo/performance.core | |
| 10 | +/docs/dali.doxy | |
| 11 | +/examples/*.demo | |
| 12 | +/performance/dali-performance | |
| 13 | +/performance/performance.* | ... | ... |
build/tizen/CMakeLists.txt
| ... | ... | @@ -23,11 +23,14 @@ SET(LOCAL_SCRIPTS_DIR ${ROOT_SRC_DIR}/demo/scripts) |
| 23 | 23 | SET(IMAGES_DIR ${APP_DATA_DIR}/images/) |
| 24 | 24 | SET(MODELS_DIR ${APP_DATA_DIR}/models/) |
| 25 | 25 | SET(SCRIPTS_DIR ${APP_DATA_DIR}/scripts/) |
| 26 | +SET(LOCALE_DIR ${PREFIX}/share/locale) | |
| 26 | 27 | |
| 27 | 28 | SET(DALI_IMAGE_DIR \\"${IMAGES_DIR}\\") |
| 28 | 29 | SET(DALI_MODEL_DIR \\"${MODELS_DIR}\\") |
| 29 | 30 | SET(DALI_SCRIPT_DIR \\"${SCRIPTS_DIR}\\") |
| 30 | -SET(DALI_EXAMPLE_BIN \\"${BINDIR}\\") | |
| 31 | +SET(DALI_EXAMPLE_BIN \\"${BINDIR}/\\") | |
| 32 | +SET(DALI_LOCALE_DIR \\"${LOCALE_DIR}\\") | |
| 33 | +SET(DALI_LANG \\"${LANG}\\") | |
| 31 | 34 | |
| 32 | 35 | FILE(GLOB LOCAL_IMAGES_PNG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.png") |
| 33 | 36 | FILE(GLOB LOCAL_IMAGES_JPG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.jpg") |
| ... | ... | @@ -61,7 +64,7 @@ FOREACH(flag ${REQUIRED_PKGS_CFLAGS}) |
| 61 | 64 | SET(REQUIRED_CFLAGS "${REQUIRED_CFLAGS} ${flag}") |
| 62 | 65 | ENDFOREACH(flag) |
| 63 | 66 | |
| 64 | -SET(DALI_DEMO_CFLAGS "-DDALI_IMAGE_DIR=${DALI_IMAGE_DIR} -DDALI_MODEL_DIR=${DALI_MODEL_DIR} -DDALI_SCRIPT_DIR=${DALI_SCRIPT_DIR} -DDALI_EXAMPLE_BIN=${DALI_EXAMPLE_BIN} -fvisibility=hidden -DHIDE_DALI_INTERNALS") | |
| 67 | +SET(DALI_DEMO_CFLAGS "-DDALI_IMAGE_DIR=${DALI_IMAGE_DIR} -DDALI_MODEL_DIR=${DALI_MODEL_DIR} -DDALI_SCRIPT_DIR=${DALI_SCRIPT_DIR} -DDALI_EXAMPLE_BIN=${DALI_EXAMPLE_BIN} -DDALI_LOCALE_DIR=${DALI_LOCALE_DIR} -fvisibility=hidden -DHIDE_DALI_INTERNALS -DDALI_LANG=${DALI_LANG}") | |
| 65 | 68 | |
| 66 | 69 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${REQUIRED_CFLAGS} ${DALI_DEMO_CFLAGS} -Werror -Wall") |
| 67 | 70 | SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") | ... | ... |
build/tizen/demo/CMakeLists.txt
| ... | ... | @@ -6,3 +6,27 @@ ADD_EXECUTABLE(${PROJECT_NAME} ${DEMO_SRCS}) |
| 6 | 6 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${REQUIRED_PKGS_LDFLAGS}) |
| 7 | 7 | |
| 8 | 8 | INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) |
| 9 | + | |
| 10 | +# Internationalization | |
| 11 | + | |
| 12 | +SET(PO_DIR ${DEMO_SRC_DIR}/po) | |
| 13 | + | |
| 14 | +FILE(GLOB PO_FILES RELATIVE "${PO_DIR}" "${PO_DIR}/*.po") | |
| 15 | + | |
| 16 | +SET(MSGFMT "/usr/bin/msgfmt") | |
| 17 | + | |
| 18 | +FOREACH(PO_FILE ${PO_FILES}) | |
| 19 | + SET(PO_FILE ${PO_DIR}/${PO_FILE}) | |
| 20 | + MESSAGE("PO: ${PO_FILE}") | |
| 21 | + GET_FILENAME_COMPONENT(ABS_PO_FILE ${PO_FILE} ABSOLUTE) | |
| 22 | + GET_FILENAME_COMPONENT(lang ${ABS_PO_FILE} NAME_WE) | |
| 23 | + SET(MO_FILE ${PO_DIR}/${lang}.mo) | |
| 24 | + ADD_CUSTOM_COMMAND(OUTPUT ${MO_FILE} | |
| 25 | + COMMAND ${MSGFMT} -o ${MO_FILE} ${ABS_PO_FILE} | |
| 26 | + DEPENDS ${ABS_PO_FILE}) | |
| 27 | + INSTALL(FILES ${MO_FILE} DESTINATION ${LOCALE_DIR}/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) | |
| 28 | + SET(MO_FILES ${MO_FILES} ${MO_FILE}) | |
| 29 | +ENDFOREACH(PO_FILE) | |
| 30 | + | |
| 31 | +MESSAGE(".mo files: ${MO_FILES}") | |
| 32 | +ADD_CUSTOM_TARGET(po ALL DEPENDS ${MO_FILES}) | ... | ... |
demo/dali-demo.cpp
| ... | ... | @@ -16,32 +16,38 @@ |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #include "dali-table-view.h" |
| 19 | +#include "examples/shared/dali-demo-strings.h" | |
| 19 | 20 | |
| 20 | 21 | using namespace Dali; |
| 21 | 22 | |
| 22 | 23 | int main(int argc, char **argv) |
| 23 | 24 | { |
| 25 | + // Configure gettext for internalization | |
| 26 | + bindtextdomain(DALI_DEMO_DOMAIN_LOCAL, DALI_LOCALE_DIR); | |
| 27 | + textdomain(DALI_DEMO_DOMAIN_LOCAL); | |
| 28 | + setlocale(LC_ALL, DALI_LANG); | |
| 29 | + | |
| 24 | 30 | Application app = Application::New(&argc, &argv); |
| 25 | 31 | |
| 26 | 32 | DaliTableView demo(app); |
| 27 | 33 | |
| 28 | - demo.AddExample(Example("bubble-effect.example", "Bubbles")); | |
| 29 | - demo.AddExample(Example("blocks.example", "Blocks")); | |
| 30 | - demo.AddExample(Example("cluster.example", "Cluster control")); | |
| 31 | - demo.AddExample(Example("cube-transition-effect.example", "Cube Transition")); | |
| 32 | - demo.AddExample(Example("dissolve-effect.example", "Dissolve Transition")); | |
| 33 | - demo.AddExample(Example("item-view.example", "Item View")); | |
| 34 | - demo.AddExample(Example("magnifier.example", "Magnifier")); | |
| 35 | - demo.AddExample(Example("motion-blur.example", "Motion Blur")); | |
| 36 | - demo.AddExample(Example("motion-stretch.example", "Motion Stretch")); | |
| 37 | - demo.AddExample(Example("page-turn-view.example", "Page Turn View")); | |
| 38 | - demo.AddExample(Example("radial-menu.example", "Radial Menu")); | |
| 39 | - demo.AddExample(Example("refraction-effect.example", "Refraction")); | |
| 40 | - demo.AddExample(Example("scroll-view.example", "Scroll View")); | |
| 41 | - demo.AddExample(Example("shadow-bone-lighting.example", "Lights and shadows")); | |
| 42 | - demo.AddExample(Example("builder.example", "Script Based UI")); | |
| 43 | - demo.AddExample(Example("image-scaling-irregular-grid.example", "Image Scaling Modes")); | |
| 44 | - demo.AddExample(Example("text-view.example", "Text View")); | |
| 34 | + demo.AddExample(Example("bubble-effect.example", DALI_DEMO_STR_TITLE_BUBBLES)); | |
| 35 | + demo.AddExample(Example("blocks.example", DALI_DEMO_STR_TITLE_BLOCKS)); | |
| 36 | + demo.AddExample(Example("cluster.example", DALI_DEMO_STR_TITLE_CLUSTER)); | |
| 37 | + demo.AddExample(Example("cube-transition-effect.example", DALI_DEMO_STR_TITLE_CUBE_TRANSITION)); | |
| 38 | + demo.AddExample(Example("dissolve-effect.example", DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION)); | |
| 39 | + demo.AddExample(Example("item-view.example", DALI_DEMO_STR_TITLE_ITEM_VIEW)); | |
| 40 | + demo.AddExample(Example("magnifier.example", DALI_DEMO_STR_TITLE_MAGNIFIER)); | |
| 41 | + demo.AddExample(Example("motion-blur.example", DALI_DEMO_STR_TITLE_MOTION_BLUR)); | |
| 42 | + demo.AddExample(Example("motion-stretch.example", DALI_DEMO_STR_TITLE_MOTION_STRETCH)); | |
| 43 | + demo.AddExample(Example("page-turn-view.example", DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW)); | |
| 44 | + demo.AddExample(Example("radial-menu.example", DALI_DEMO_STR_TITLE_RADIAL_MENU)); | |
| 45 | + demo.AddExample(Example("refraction-effect.example", DALI_DEMO_STR_TITLE_REFRACTION)); | |
| 46 | + demo.AddExample(Example("scroll-view.example", DALI_DEMO_STR_TITLE_SCROLL_VIEW)); | |
| 47 | + demo.AddExample(Example("shadow-bone-lighting.example", DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS)); | |
| 48 | + demo.AddExample(Example("builder.example", DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI)); | |
| 49 | + demo.AddExample(Example("image-scaling-irregular-grid.example", DALI_DEMO_STR_TITLE_IMAGE_SCALING)); | |
| 50 | + demo.AddExample(Example("text-label.example", DALI_DEMO_STR_TITLE_TEXT_LABEL)); | |
| 45 | 51 | app.MainLoop(); |
| 46 | 52 | |
| 47 | 53 | return 0; | ... | ... |
demo/po/as.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "বেলুন" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "অৱৰুদ্ধ কৰক" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "থুপ" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "ঘনক পৰিৱৰ্তনীয় প্ৰভাৱ" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "পৰিৱৰ্তনীয় প্ৰভাৱ" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "আইটেম দর্শন" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "পৰিবৰ্দ্ধক" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "অস্পষ্ট" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "বিস্তাৰ" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "পৃষ্ঠা লেআউট" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "ৰেডিয়েল নক্সা" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "প্ৰতিফলিত কৰক" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "স্ক্ৰ'ল কৰক" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "ছাঁয়া" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "লিপি" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "প্ৰতিচ্ছবি স্কেল কৰক" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "লেৱেল কৰক" | ... | ... |
demo/po/de.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "Schaumbildung" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "Blöcke" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "Cluster" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "Würfel Übergangseffekt" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "Auflösen Übergangseffekt" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "Item-Ansicht" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "Bildschirmlupe" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "Bewegungsunschärfe" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "Bewegung Strecke" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "Seite wechseln" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "Radialmenü" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "Brechung" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "Scroll-Ansicht" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "Licht und Schatten" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "Scripting" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "Bildskalierung" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "Beschriftung" | ... | ... |
demo/po/en.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "Bubbles" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "Blocks" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "Cluster" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "Cube Transition" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "Dissolve Transition" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "Item View" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "Magnifier" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "Motion Blur" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "Motion Stretch" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "Page Turn View" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "Radial Menu" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "Refraction" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "Scroll View" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "Lights and shadows" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "Script Based UI" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "Image Scaling Modes" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "Text Label" | ... | ... |
demo/po/en_GB.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "Bubbles" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "Blocks" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "Cluster" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "Cube Transition" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "Dissolve Transition" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "Item View" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "Magnifier" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "Motion Blur" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "Motion Stretch" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "Page Turn View" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "Radial Menu" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "Refraction" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "Scroll View" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "Lights and shadows" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "Script Based UI" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "Image Scaling Modes" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "Text Label" | ... | ... |
demo/po/en_US.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "Bubbles" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "Blocks" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "Cluster" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "Cube Transition" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "Dissolve Transition" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "Item View" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "Magnifier" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "Motion Blur" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "Motion Stretch" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "Page Turn View" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "Radial Menu" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "Refraction" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "Scroll View" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "Lights and shadows" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "Script Based UI" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "Image Scaling Modes" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "Text Label" | ... | ... |
demo/po/es.po
0 → 100644
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "Burbujas" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "Bloques" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "Agrupación" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "Transición cubos" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "Transición disolver" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "Vista de elementos" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "Lupa" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "Desenfoque de movimiento" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "Movimiento con deformación" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "Vista de páginas" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "Menú radial" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "Refracción" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "Vista de desplazamiento" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "Luces y sombras" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "Interfaz definida por Script" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "Modos de escalado de imagen" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "Etiqueta de texto" | ... | ... |
demo/po/ko.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "방울" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "블록" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "클러스터" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "입방체 전환" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "디졸브 전환" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "아이템 뷰" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "돋보기" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "모션 블러" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "늘이기" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "책장 넘기기" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "레이디 얼 메뉴" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "굴절 효과" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "스크롤 뷰" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "빛과 그림자" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "스크립팅" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "이미지 확대" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "텍스트 라벨" | ... | ... |
demo/po/ml.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "കുമിള" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "തടയപ്പെട്ട" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "ക്ലസ്റ്റര്" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "സമചതുരക്കട്ട സംക്രമണ ഇഫക്ട്" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "സ്ഥാനാന്തരം സംക്രമണ ഇഫക്ട്" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "ഇനം കാഴ്ച" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "ഭൂതക്കണ്ണാടി" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "അവ്യക്തമാക്കല്" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "സ്ട്രെച്ച്" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "പേജ് ലേഔട്ട്" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "റേഡിയല് രേഖാചിത്രം" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "പ്രതിഫലിക്കുക" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "സ്ക്രോള്ചെയ്യുക കാഴ്ച" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "നിഴല്" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "സ്ക്രിപ്റ്റ്" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "ഇമേജിംഗ്" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "ലേബലുചെയ്യുക" | ... | ... |
demo/po/ur.po
0 → 100644
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "بلبلے" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "اینٹیں" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "کلسٹر" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "کیوب منتقلی" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "حل منتقلی" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "چیزوں کی فہرست" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "مکبر" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "دھندلانے کی حرکت" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "کھینچھنے کی حرکت" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "کتاب" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "ریڈیل مینو" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "رفراکشن" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "سکرول ویو" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "روشنی اور سائے" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "سکرپٹ" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "تصویر پیمائی" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "لیبل" | ... | ... |
demo/po/zn_CH.po
0 → 100755
| 1 | +msgid "DALI_DEMO_STR_TITLE_BUBBLES" | |
| 2 | +msgstr "气泡" | |
| 3 | + | |
| 4 | +msgid "DALI_DEMO_STR_TITLE_BLOCKS" | |
| 5 | +msgstr "块体" | |
| 6 | + | |
| 7 | +msgid "DALI_DEMO_STR_TITLE_CLUSTER" | |
| 8 | +msgstr "叢集" | |
| 9 | + | |
| 10 | +msgid "DALI_DEMO_STR_TITLE_CUBE_TRANSITION" | |
| 11 | +msgstr "方块 切换效果" | |
| 12 | + | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION" | |
| 14 | +msgstr "冰消瓦解 切换效果" | |
| 15 | + | |
| 16 | +msgid "DALI_DEMO_STR_TITLE_ITEM_VIEW" | |
| 17 | +msgstr "項目 檢視" | |
| 18 | + | |
| 19 | +msgid "DALI_DEMO_STR_TITLE_MAGNIFIER" | |
| 20 | +msgstr "放大鏡" | |
| 21 | + | |
| 22 | +msgid "DALI_DEMO_STR_TITLE_MOTION_BLUR" | |
| 23 | +msgstr "动作 模糊" | |
| 24 | + | |
| 25 | +msgid "DALI_DEMO_STR_TITLE_MOTION_STRETCH" | |
| 26 | +msgstr "动作 拉伸" | |
| 27 | + | |
| 28 | +msgid "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW" | |
| 29 | +msgstr "页面" | |
| 30 | + | |
| 31 | +msgid "DALI_DEMO_STR_TITLE_RADIAL_MENU" | |
| 32 | +msgstr "射线图" | |
| 33 | + | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_REFRACTION" | |
| 35 | +msgstr "折光" | |
| 36 | + | |
| 37 | +msgid "DALI_DEMO_STR_TITLE_SCROLL_VIEW" | |
| 38 | +msgstr "捲動" | |
| 39 | + | |
| 40 | +msgid "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS" | |
| 41 | +msgstr "阴影" | |
| 42 | + | |
| 43 | +msgid "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI" | |
| 44 | +msgstr "指令檔" | |
| 45 | + | |
| 46 | +msgid "DALI_DEMO_STR_TITLE_IMAGE_SCALING" | |
| 47 | +msgstr "图像 制定級數" | |
| 48 | + | |
| 49 | +msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" | |
| 50 | +msgstr "标签" | ... | ... |
examples/shared/dali-demo-strings.h
0 → 100644
| 1 | +/* | |
| 2 | + * Copyright (c) 2015 Samsung Electronics Co., Ltd. | |
| 3 | + * | |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | + * you may not use this file except in compliance with the License. | |
| 6 | + * You may obtain a copy of the License at | |
| 7 | + * | |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | + * | |
| 10 | + * Unless required by applicable law or agreed to in writing, software | |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | + * See the License for the specific language governing permissions and | |
| 14 | + * limitations under the License. | |
| 15 | + * | |
| 16 | + */ | |
| 17 | + | |
| 18 | +/* This header file includes all multi language strings which need display */ | |
| 19 | +#ifndef __DALI_DEMO_STRINGS_H__ | |
| 20 | +#define __DALI_DEMO_STRINGS_H__ | |
| 21 | + | |
| 22 | +#include <libintl.h> | |
| 23 | + | |
| 24 | +#ifdef __cplusplus | |
| 25 | +extern "C" | |
| 26 | +{ | |
| 27 | +#endif // __cplusplus | |
| 28 | + | |
| 29 | +#define DALI_DEMO_DOMAIN_LOCAL "dali-demo" | |
| 30 | + | |
| 31 | +#define DALI_DEMO_STR_EMPTY _("") | |
| 32 | + | |
| 33 | +#define DALI_DEMO_STR_TEST dgettext(DALI_DEMO_DOMAIN_LOCAL, "IDS_ST_HEADER_PRIVACY") | |
| 34 | + | |
| 35 | +#define DALI_DEMO_STR_TITLE_BUBBLES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BUBBLES") | |
| 36 | +#define DALI_DEMO_STR_TITLE_BLOCKS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BLOCKS") | |
| 37 | +#define DALI_DEMO_STR_TITLE_CLUSTER dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CLUSTER") | |
| 38 | +#define DALI_DEMO_STR_TITLE_CUBE_TRANSITION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CUBE_TRANSITION") | |
| 39 | +#define DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION") | |
| 40 | +#define DALI_DEMO_STR_TITLE_ITEM_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_ITEM_VIEW") | |
| 41 | +#define DALI_DEMO_STR_TITLE_MAGNIFIER dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_MAGNIFIER") | |
| 42 | +#define DALI_DEMO_STR_TITLE_MOTION_BLUR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_MOTION_BLUR") | |
| 43 | +#define DALI_DEMO_STR_TITLE_MOTION_STRETCH dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_MOTION_STRETCH") | |
| 44 | +#define DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW") | |
| 45 | +#define DALI_DEMO_STR_TITLE_RADIAL_MENU dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_RADIAL_MENU") | |
| 46 | +#define DALI_DEMO_STR_TITLE_REFRACTION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_REFRACTION") | |
| 47 | +#define DALI_DEMO_STR_TITLE_SCROLL_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SCROLL_VIEW") | |
| 48 | +#define DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS") | |
| 49 | +#define DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI") | |
| 50 | +#define DALI_DEMO_STR_TITLE_IMAGE_SCALING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_SCALING") | |
| 51 | +#define DALI_DEMO_STR_TITLE_TEXT_LABEL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_LABEL") | |
| 52 | + | |
| 53 | +#ifdef __cplusplus | |
| 54 | +} | |
| 55 | +#endif // __cplusplus | |
| 56 | + | |
| 57 | +#endif // __DALI_DEMO_STRINGS_H__ | ... | ... |
packaging/com.samsung.dali-demo.spec
| ... | ... | @@ -23,6 +23,7 @@ BuildRequires: dali-toolkit-devel |
| 23 | 23 | BuildRequires: dali-adaptor-devel |
| 24 | 24 | BuildRequires: pkgconfig(dlog) |
| 25 | 25 | BuildRequires: pkgconfig(egl) |
| 26 | +BuildRequires: gettext-tools | |
| 26 | 27 | |
| 27 | 28 | %description |
| 28 | 29 | The OpenGLES Canvas Core Demo is a collection of examples and demonstrations | ... | ... |