summaryrefslogtreecommitdiffstats
path: root/src/tdebluezauth
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-03-09 05:33:19 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-03-09 05:52:54 +0100
commit66c9d2a5920b30474b595603a79915d2be38cdbe (patch)
treec896bdcef6cba137863cebb6106c62a9fd01c6ca /src/tdebluezauth
parent0c8df48682481faa5249ab010e09d67af08e6457 (diff)
downloadtdebluez-66c9d2a5920b30474b595603a79915d2be38cdbe.tar.gz
tdebluez-66c9d2a5920b30474b595603a79915d2be38cdbe.zip
Added CMakeL10n rules.
Added template for translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/tdebluezauth')
-rw-r--r--src/tdebluezauth/CMakeLists.txt11
-rw-r--r--src/tdebluezauth/main.cpp6
-rw-r--r--src/tdebluezauth/tdebluezauth.desktop39
3 files changed, 15 insertions, 41 deletions
diff --git a/src/tdebluezauth/CMakeLists.txt b/src/tdebluezauth/CMakeLists.txt
index 055779d..681179a 100644
--- a/src/tdebluezauth/CMakeLists.txt
+++ b/src/tdebluezauth/CMakeLists.txt
@@ -11,9 +11,6 @@
project( tdebluezauth )
-# import required
-#tde_import( lib... )
-
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
@@ -22,7 +19,6 @@ include_directories(
${CMAKE_BINARY_DIR}/src/libtdebluez
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
-# ${DBUS_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
)
@@ -43,5 +39,8 @@ tde_add_executable( tdebluezauth AUTOMOC
)
##### other data ################################
-#tde_install_icons( tdebluezauth )
-install( FILES tdebluezauth.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+tde_create_translated_desktop(
+ SOURCE tdebluezauth.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/src/tdebluezauth/main.cpp b/src/tdebluezauth/main.cpp
index 98ca19e..f8adeca 100644
--- a/src/tdebluezauth/main.cpp
+++ b/src/tdebluezauth/main.cpp
@@ -42,7 +42,7 @@ static TDECmdLineOptions options[] =
int main(int argc, char *argv[])
{
- TDELocale::setMainCatalogue("tdebluetooth");
+ TDELocale::setMainCatalogue("tdebluez");
TDEAboutData aboutData("tdebluezauth",
I18N_NOOP("TDEBluezAuth"),
0,
@@ -64,8 +64,8 @@ int main(int argc, char *argv[])
if (!a.isConnectedToDBUS())
{
- KMessageBox::error(NULL,i18n("Can't connect to DBus!\nUnable to start tdebluezauth. \n\n \
- Restart dbus and the bluetooth service"));
+ KMessageBox::error(NULL,i18n("Can't connect to DBus!\nUnable to start tdebluezauth.\n\n"
+ "Restart dbus and the bluetooth service"));
KUniqueApplication::kApplication()->quit();
return -1;
}
diff --git a/src/tdebluezauth/tdebluezauth.desktop b/src/tdebluezauth/tdebluezauth.desktop
index efdeaf4..f13c41c 100644
--- a/src/tdebluezauth/tdebluezauth.desktop
+++ b/src/tdebluezauth/tdebluezauth.desktop
@@ -1,36 +1,11 @@
[Desktop Entry]
-Encoding=UTF-8
-Exec=tdebluezauth
-Icon=tdebluez
-Type=Application
Name=tdebluezauth
+
GenericName=Bluetooth Wizard
-GenericName[de]=Bluetooth-Assistent
-GenericName[es]=Asistente de bluetooth
-GenericName[et]=Bluetoothi nõustaja
-GenericName[it]=Assistente per Bluetooth
-GenericName[ja]=Bluetooth ウィザード
-GenericName[nl]=Bluetooth-assistent
-GenericName[pt]=Assistente de Bluetooth
-GenericName[pt_BR]=Assistente de Bluetooth
-GenericName[sr]=Bluetooth чаробњак
-GenericName[sr@Latn]=Bluetooth čarobnjak
-GenericName[sv]=Blåtandsguide
-GenericName[tg]=Устоди Bluetooth
-GenericName[tr]=Bluetooth Sihirbazı
-GenericName[xx]=xxBluetooth Wizardxx
-Categories=Qt;TDE;System;Monitor;
+
Comment=TDE Bluetooth Wizard
-Comment[de]=TDE Bluetooth-Assistent
-Comment[es]=Asistente de bluetooth para TDE
-Comment[et]=TDE Bluetoothi nõustaja
-Comment[it]=Assistente per Bluetooth di TDE
-Comment[ja]=TDE Bluetooth ウィザード
-Comment[nl]=TDE Bluetooth-assistent
-Comment[pt]=Assistente de Bluetooth do TDE
-Comment[pt_BR]=Assistente de Bluetooth do TDE
-Comment[sr]=TDE чаробњак за Bluetooth
-Comment[sr@Latn]=TDE čarobnjak za Bluetooth
-Comment[sv]=TDE:s Blåtandsguide
-Comment[tg]=Устоди TDE Bluetooth
-Comment[tr]=TDE Bluetooth Sihirbazı
+
+Type=Application
+Exec=tdebluezauth
+Icon=tdebluez
+Categories=Qt;TDE;System;Monitor;