Initialy added translation

This commit is contained in:
zJes 2016-02-22 12:36:33 +01:00
parent b020e5136e
commit 1420e3e73c
9 changed files with 237 additions and 3 deletions

View File

@ -12,9 +12,12 @@ find_package(KF5WindowSystem)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
add_definitions("-g -fPIC -Wall -Wextra -pedantic -Wformat=2 -Wnon-virtual-dtor -std=c++11 -Wl,--as-needed -z relro -z defs")
add_executable(${PROJECT_NAME}
set(files
src/app-switcher.cpp
src/app-switcher.h
src/app-model.cpp
@ -25,6 +28,23 @@ add_executable(${PROJECT_NAME}
src/main.cpp
)
include(LXQtTranslate)
lxqt_translate_ts(appswitcher-qm
UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS}
SOURCES
${files}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
COMPONENT runtime
)
lxqt_app_translation_loader(lxqt-appswitcher-qm ${PROJECT_NAME})
add_executable(${PROJECT_NAME}
${files}
${appswitcher-qm}
${lxqt-appswitcher-qm}
)
target_link_libraries(${PROJECT_NAME}
Qt5::Core
Qt5::Widgets
@ -37,6 +57,7 @@ add_subdirectory(config)
install(TARGETS
${PROJECT_NAME}
DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT runtime
)
install(FILES

View File

@ -2,13 +2,34 @@ qt5_wrap_ui(uic
config.ui
)
add_executable(lxqt-config-appswitcher
set(files
main.cpp
config.h
config.cpp
${uic}
)
include(LXQtTranslate)
lxqt_translate_ts(qm_conf
UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS}
SOURCES
${files}
TEMPLATE
lxqt-config-appswitcher
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/lxqt-config-appswitcher"
COMPONENT runtime
)
lxqt_app_translation_loader(lxqt-config-qm lxqt-config-appswitcher)
add_executable(lxqt-config-appswitcher
${files}
${qm_conf}
${lxqt-config-qm}
)
target_link_libraries(lxqt-config-appswitcher
Qt5::Core
Qt5::Widgets

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>LXQt Application Switcher Configuration</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>Config</name>
<message>
<location filename="../config/config.ui" line="14"/>
<source>LXQt Application Switcher Configuration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="20"/>
<source>Appearance:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="26"/>
<source>Icons size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="36"/>
<source>Max items to show</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="46"/>
<source>Max text length</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="59"/>
<source>Filters:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="65"/>
<source>Filter by desktop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../config/config.ui" line="72"/>
<source>Filter by screen</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="cs">
<context>
<name>Config</name>
<message>
<location filename="../config/config.ui" line="14"/>
<source>LXQt Application Switcher Configuration</source>
<translation type="unfinished">LXQt Konfigurace přepínání aplikací</translation>
</message>
<message>
<location filename="../config/config.ui" line="20"/>
<source>Appearance:</source>
<translation type="unfinished">Vzhled:</translation>
</message>
<message>
<location filename="../config/config.ui" line="26"/>
<source>Icons size</source>
<translation type="unfinished">Velikost ikon</translation>
</message>
<message>
<location filename="../config/config.ui" line="36"/>
<source>Max items to show</source>
<translation type="unfinished">Max položek k zobrazení</translation>
</message>
<message>
<location filename="../config/config.ui" line="46"/>
<source>Max text length</source>
<translation type="unfinished">Max délka textu</translation>
</message>
<message>
<location filename="../config/config.ui" line="59"/>
<source>Filters:</source>
<translation type="unfinished">Filtry:</translation>
</message>
<message>
<location filename="../config/config.ui" line="65"/>
<source>Filter by desktop</source>
<translation type="unfinished">Filtrovat podle plochy</translation>
</message>
<message>
<location filename="../config/config.ui" line="72"/>
<source>Filter by screen</source>
<translation type="unfinished">Filtrovat podle obrazovky</translation>
</message>
</context>
</TS>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru">
<context>
<name>Config</name>
<message>
<location filename="../config/config.ui" line="14"/>
<source>LXQt Application Switcher Configuration</source>
<translation type="unfinished">LXQt Настройки переключения между программи</translation>
</message>
<message>
<location filename="../config/config.ui" line="20"/>
<source>Appearance:</source>
<translation type="unfinished">Внешний вид:</translation>
</message>
<message>
<location filename="../config/config.ui" line="26"/>
<source>Icons size</source>
<translation type="unfinished">Размер иконок</translation>
</message>
<message>
<location filename="../config/config.ui" line="36"/>
<source>Max items to show</source>
<translation type="unfinished">Макс количество элементов для отображения</translation>
</message>
<message>
<location filename="../config/config.ui" line="46"/>
<source>Max text length</source>
<translation type="unfinished">Макс длина текста</translation>
</message>
<message>
<location filename="../config/config.ui" line="59"/>
<source>Filters:</source>
<translation type="unfinished">Фильтровать:</translation>
</message>
<message>
<location filename="../config/config.ui" line="65"/>
<source>Filter by desktop</source>
<translation type="unfinished">Рабочий стол</translation>
</message>
<message>
<location filename="../config/config.ui" line="72"/>
<source>Filter by screen</source>
<translation type="unfinished">Экран</translation>
</message>
</context>
</TS>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>AppSwitcher</name>
<message>
<location filename="../src/app-switcher.cpp" line="21"/>
<source>Switch applications</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/app-switcher.cpp" line="22"/>
<source>Reverse switch applications</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="cs">
<context>
<name>AppSwitcher</name>
<message>
<location filename="../src/app-switcher.cpp" line="21"/>
<source>Switch applications</source>
<translation type="unfinished">Přepínání aplikací</translation>
</message>
<message>
<location filename="../src/app-switcher.cpp" line="22"/>
<source>Reverse switch applications</source>
<translation type="unfinished">Reverzní přepínání aplikací</translation>
</message>
</context>
</TS>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru">
<context>
<name>AppSwitcher</name>
<message>
<location filename="../src/app-switcher.cpp" line="21"/>
<source>Switch applications</source>
<translation type="unfinished">Переключение между программами</translation>
</message>
<message>
<location filename="../src/app-switcher.cpp" line="22"/>
<source>Reverse switch applications</source>
<translation type="unfinished">Переключение между программами в обратном направлении</translation>
</message>
</context>
</TS>