summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-06 19:37:51 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-06 19:37:51 +0200
commitfc0b4af3c8978e6ae3ab3fdbef612f5f6b47db99 (patch)
tree15875377bb71d494161d6778b05a52088de3770d /src
parentf7e033e2593a83b4b05164ec738144671c49cef6 (diff)
downloadkasablanca-fc0b4af3c8978e6ae3ab3fdbef612f5f6b47db99.tar.gz
kasablanca-fc0b4af3c8978e6ae3ab3fdbef612f5f6b47db99.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/kasablanca.desktop46
3 files changed, 7 insertions, 49 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 61c868a..041affd 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kasablanca" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kasablanca.desktop/"
+ SOURCES kasablanca.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6b1b857..87912f3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -57,10 +57,7 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
install(
FILES kbconfig.kcfg
diff --git a/src/kasablanca.desktop b/src/kasablanca.desktop
index 794c0e5..8862172 100644
--- a/src/kasablanca.desktop
+++ b/src/kasablanca.desktop
@@ -2,53 +2,9 @@
Encoding=UTF-8
Name=Kasablanca
GenericName=FTP Client
+Comment=FTP Client
Exec=kasablanca
Icon=kasablanca
Type=Application
X-DocPath=kasablanca/index.html
Categories=Qt;TDE;Network
-GenericName=FTP Client
-GenericName[br]=Kliant FTP
-GenericName[ca]=Client FTP
-GenericName[cs]=FTP klient
-GenericName[cy]=Dibynnydd FTP
-GenericName[da]=FTP klient
-GenericName[el]=Πελάτης FTP
-GenericName[es]=Cliente FTP
-GenericName[et]=FTP-klient
-GenericName[fr]=Client FTP
-GenericName[ga]=Cliant FTP
-GenericName[it]=Client FTP
-GenericName[nl]=FTP-cliënt
-GenericName[pa]=FTP ਕਲਾਇਟ
-GenericName[pt]=Cliente de FTP
-GenericName[pt_BR]=Cliente de FTP
-GenericName[ru]=Клиент FTP
-GenericName[rw]=Umukiriya FTP
-GenericName[sr]=FTP клијент
-GenericName[sr@Latn]=FTP klijent
-GenericName[sv]=FTP-klient
-GenericName[xh]=Umxhasi we FTP
-GenericName[zu]=Umthengi we FTP
-Comment=FTP Client
-Comment[br]=Kliant FTP
-Comment[ca]=Client FTP
-Comment[cs]=FTP klient
-Comment[cy]=Dibynnydd FTP
-Comment[da]=FTP klient
-Comment[el]=Πελάτης FTP
-Comment[es]=Cliente FTP
-Comment[et]=FTP-klient
-Comment[fr]=Client FTP
-Comment[ga]=Cliant FTP
-Comment[it]=Client FTP
-Comment[nl]=FTP-cliënt
-Comment[pa]=FTP ਕਲਾਇਟ
-Comment[pt]=Cliente de FTP
-Comment[pt_BR]=Cliente de FTP
-Comment[ru]=Клиент FTP
-Comment[rw]=Umukiriya FTP
-Comment[sr]=FTP клијент
-Comment[sr@Latn]=FTP klijent
-Comment[sv]=FTP-klient
-Comment[xh]=Umxhasi we FTP