diff options
author | Slávek Banko <[email protected]> | 2020-03-21 14:24:49 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-03-23 20:16:00 +0100 |
commit | fea7ebd27462042547048589a490a5fc87c7ef34 (patch) | |
tree | 7337264c528e9f2915ad46b3c488e9b9cb9703cc /src | |
parent | a52c922703f7aaaf12777ebd06ad2a25861552eb (diff) | |
download | abakus-fea7ebd27462042547048589a490a5fc87c7ef34.tar.gz abakus-fea7ebd27462042547048589a490a5fc87c7ef34.zip |
Desktop file translations:
+ Creation of POT templates for desktop files added to CMakeL10n rules.
+ Added creation of translated desktop file during build.
+ The abakus.desktop will be installed to the XDG_APPS_INSTALL_DIR.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit a1a48db571e6fa1c3ae94a22546548b87e497dd2)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeL10n.txt | 7 | ||||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/abakus.desktop | 28 |
3 files changed, 11 insertions, 29 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 771410e..568a07f 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## -tde_l10n_create_template( "abakus" ) +tde_l10n_create_template( "messages/abakus/" ) + +tde_l10n_create_template( + CATALOG "desktop_files/abakus.desktop/" + SOURCES abakus.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a7365d2..be6ddd2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,11 +23,14 @@ link_directories( include( ${CMAKE_SOURCE_DIR}/BisonMacros.cmake ) + ##### other data ################################ -install( FILES abakus.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities ) +tde_create_translated_desktop( abakus.desktop ) + install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR}/abakus ) + ##### abakus (executable) ####################### GENERATE_BISON_FLEX_SOURCES(${CMAKE_SOURCE_DIR}/src/parser.yy "" ${CMAKE_SOURCE_DIR}/src/lexer.ll "") diff --git a/src/abakus.desktop b/src/abakus.desktop index 769e072..db90275 100644 --- a/src/abakus.desktop +++ b/src/abakus.desktop @@ -4,35 +4,9 @@ Type=Application X-TDE-StartupNotify=true Exec=abakus -caption "%c" %i %m Icon=abakus -Comment= -Comment[xx]=xxxx +Comment=A simple keyboard-driven calculator Terminal=0 Name=Abakus -Name[tr]=Abaküs -Name[xx]=xxAbakusxx GenericName=Calculator -GenericName[bg]=Калкулатор -GenericName[br]=Jederez -GenericName[cs]=Kalkulátor -GenericName[cy]=Cyfrifiannell -GenericName[da]=Lommeregner -GenericName[el]=Υπολογιστής Τσέπης -GenericName[es]=Calculadora -GenericName[et]=Kalkulaator -GenericName[fr]=Calculateur -GenericName[ga]=Áireamhán -GenericName[gl]=Calculadora -GenericName[it]=Calcolatrice -GenericName[ka]=კალკულატორი -GenericName[lt]=Skaičiuotuvas -GenericName[nl]=Rekenmachine -GenericName[pt]=Calculadora -GenericName[rw]=Mubazi -GenericName[sk]=Kalkulačka -GenericName[sr]=Рачунаљка -GenericName[sr@Latn]=Računaljka -GenericName[sv]=Miniräknare -GenericName[tr]=Hesap Makinesi -GenericName[xx]=xxCalculatorxx Categories=Qt;TDE;Utility;X-TDE-Utilities-Desktop; X-DocPath=abakus/index.html |