diff options
author | Slávek Banko <[email protected]> | 2023-03-09 05:33:19 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2023-03-09 05:52:54 +0100 |
commit | 66c9d2a5920b30474b595603a79915d2be38cdbe (patch) | |
tree | c896bdcef6cba137863cebb6106c62a9fd01c6ca /src/tdeioslave | |
parent | 0c8df48682481faa5249ab010e09d67af08e6457 (diff) | |
download | tdebluez-66c9d2a5920b30474b595603a79915d2be38cdbe.tar.gz tdebluez-66c9d2a5920b30474b595603a79915d2be38cdbe.zip |
Added CMakeL10n rules.
Added template for translations.
Added translation of .desktop files.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/tdeioslave')
-rw-r--r-- | src/tdeioslave/bluetooth/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/tdeioslave/bluetooth/bluetooth.protocol | 31 | ||||
-rw-r--r-- | src/tdeioslave/bluetooth/bluetooth_sidebarentry.desktop | 30 | ||||
-rw-r--r-- | src/tdeioslave/obex/CMakeLists.txt | 22 | ||||
-rw-r--r-- | src/tdeioslave/obex/obex_sidebarentry.desktop | 5 | ||||
-rw-r--r-- | src/tdeioslave/obex/obexftp.protocol | 45 | ||||
-rw-r--r-- | src/tdeioslave/obex/obexopp.protocol | 45 | ||||
-rw-r--r-- | src/tdeioslave/obex/tdeio_obex.cpp | 2 |
8 files changed, 47 insertions, 148 deletions
diff --git a/src/tdeioslave/bluetooth/CMakeLists.txt b/src/tdeioslave/bluetooth/CMakeLists.txt index f74af27..aabceb6 100644 --- a/src/tdeioslave/bluetooth/CMakeLists.txt +++ b/src/tdeioslave/bluetooth/CMakeLists.txt @@ -21,6 +21,8 @@ include_directories( ${DBUS_INCLUDE_DIRS} ${DBUS_TQT_INCLUDE_DIRS} ) + + ##### tdeio_bluetooth (static) ############################# set( target tdeio_bluetooth ) @@ -31,10 +33,11 @@ tde_add_kpart( ${target} AUTOMOC ) # konqueror sidebar entry -install( - FILES bluetooth.protocol - DESTINATION ${SERVICES_INSTALL_DIR} ) -install( - FILES bluetooth_sidebarentry.desktop - DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services +tde_create_translated_desktop( + SOURCE bluetooth.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) +tde_create_translated_desktop( + SOURCE bluetooth_sidebarentry.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services ) diff --git a/src/tdeioslave/bluetooth/bluetooth.protocol b/src/tdeioslave/bluetooth/bluetooth.protocol index b99a1f5..9253aad 100644 --- a/src/tdeioslave/bluetooth/bluetooth.protocol +++ b/src/tdeioslave/bluetooth/bluetooth.protocol @@ -1,33 +1,12 @@ [Protocol] -exec=tdeio_bluetooth +Description=Bluetooth inquiry protocol + +Icon=tdebluez protocol=bluetooth +exec=tdeio_bluetooth +maxInstances=3 input=none output=filesystem reading=true listing=Name,Type -Icon=tdebluez -Description=Bluetooth inquiry protocol -Description[bg]=Протокол за заявка към Bluetooth -Description[ca]=Protocol de recerca Bluetooth -Description[da]=Bluetooth forespørgselsprotokol -Description[de]=Bluetooth-Anfrageprotokoll -Description[el]=Πρωτόκολλο έρευνας Bluetooth -Description[es]=Protocolo de búsqueda Bluetooth -Description[et]=Bluetoothi päringuprotokoll -Description[fr]=Protocole de Demande de renseignements Bluetooth -Description[gl]=Protocolo de pestquisa Bluetooth -Description[it]=Protocollo di richiesta Bluetooth -Description[ja]=Bluetooth 問い合わせプロトコル -Description[lt]=Bluetooth užklausų protokolas -Description[nl]=Bluetooth inquiry-protocol -Description[pl]=Protokół wyszukiwania Bluetooth -Description[pt]=Protocolo de intquisição Bluetooth -Description[pt_BR]=Protocolo de intquisição Bluetooth -Description[sr]=Протокол испитивања Bluetooth-а -Description[sr@Latn]=Protokol ispitivanja Bluetooth-a -Description[sv]=Blåtand frågeprotokoll -Description[ta]=புளூடூத்தை உள்ளிடும் நெறிமுறை -Description[tr]=Bluetooth sorgulama protokolü -Description[xx]=xxBluetooth inquiry protocolxx -maxInstances=3 DocPath=tdebluez/components.tdeio_sdp.html diff --git a/src/tdeioslave/bluetooth/bluetooth_sidebarentry.desktop b/src/tdeioslave/bluetooth/bluetooth_sidebarentry.desktop index 79306e0..8d8461f 100644 --- a/src/tdeioslave/bluetooth/bluetooth_sidebarentry.desktop +++ b/src/tdeioslave/bluetooth/bluetooth_sidebarentry.desktop @@ -1,35 +1,9 @@ [Desktop Entry] -Encoding=UTF-8 +Name=Bluetooth Browser + Type=Link URL=bluetooth:/ Icon=tdebluez -Name=Bluetooth Browser -Name[ar]= متصفح Bluetooth -Name[bg]=Браузър за Bluetooth -Name[br]=Furcher Bluetooth -Name[ca]=Fullejador Bluetooth -Name[da]=Bluetooth-browser -Name[de]=Bluetooth-Browser -Name[el]=Περιηγητής Bluetooth -Name[es]=Navegador Bluetooth -Name[et]=Bluetoothi brauser -Name[fr]=Navigateur Bluetooth -Name[ga]=Brabhsálaí Bluetooth -Name[gl]=Navegador Bluetooth -Name[it]=Navigatore Bluetooth -Name[ja]=Bluetooth ブラウザ -Name[lt]=Bluetooth naršyklė -Name[pa]=ਬਲਿਊਟੁੱਥ ਝਲਕਾਰਾ -Name[pl]=Przeglądarka Bluetooth -Name[pt]=Navegador Bluetooth -Name[pt_BR]=Navegador Bluetooth -Name[ru]=Обозреватель Bluetooth -Name[sr]=Bluetooth прегледач -Name[sr@Latn]=Bluetooth pregledač -Name[sv]=Blåtandsbläddrare -Name[ta]=புலுடுத் உலாவி -Name[tr]=Bluetooth Tarayıcısı -Name[xx]=xxBluetooth Browserxx Open=false X-TDE-TreeModule=Directory X-TDE-KonqSidebarModule=konqsidebar_tree diff --git a/src/tdeioslave/obex/CMakeLists.txt b/src/tdeioslave/obex/CMakeLists.txt index d31aa6f..13aa0f4 100644 --- a/src/tdeioslave/obex/CMakeLists.txt +++ b/src/tdeioslave/obex/CMakeLists.txt @@ -21,7 +21,9 @@ include_directories( ${DBUS_INCLUDE_DIRS} ${DBUS_TQT_INCLUDE_DIRS} ) -##### tdeio_bluetooth (static) ############################# + + +##### tdeio_obex (part) ############################# set( target tdeio_obex ) tde_add_kpart( ${target} AUTOMOC @@ -30,9 +32,15 @@ tde_add_kpart( ${target} AUTOMOC DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES obexftp.protocol - DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES obexopp.protocol - DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES obex_sidebarentry.desktop - DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services )
\ No newline at end of file +tde_create_translated_desktop( + SOURCE obexftp.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) +tde_create_translated_desktop( + SOURCE obexopp.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) +tde_create_translated_desktop( + SOURCE obex_sidebarentry.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services +) diff --git a/src/tdeioslave/obex/obex_sidebarentry.desktop b/src/tdeioslave/obex/obex_sidebarentry.desktop index 9bc0178..7d6dcae 100644 --- a/src/tdeioslave/obex/obex_sidebarentry.desktop +++ b/src/tdeioslave/obex/obex_sidebarentry.desktop @@ -1,10 +1,9 @@ [Desktop Entry] -Encoding=UTF-8 +Name=Bluetooth Browser + Type=Link URL=obexftp:/ Icon=tdebluez -Name=Bluetooth Browser -Name[et]=Bluetoothi brauser Open=false X-TDE-TreeModule=Directory X-TDE-KonqSidebarModule=konqsidebar_tree diff --git a/src/tdeioslave/obex/obexftp.protocol b/src/tdeioslave/obex/obexftp.protocol index 3262d4b..744b07c 100644 --- a/src/tdeioslave/obex/obexftp.protocol +++ b/src/tdeioslave/obex/obexftp.protocol @@ -1,52 +1,19 @@ [Protocol] -# The executable -exec=tdeio_obex -# This protocol name +Description=A tdeioslave for OBEX connections + protocol=obexftp +exec=tdeio_obex +Icon=remote +maxInstances=1 Parent=system:/ - -# input/output can be one of: filesystem, stream, none input=none output=filesystem -maxInstances=1 - -# capabilities for this protocol +source=false reading=true writing=true makedir=true deleting=true moving=false linking=false - -# What to list ... FIXME work out how ... listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group - -# Can be source protocol -source=false - -Description=A tdeioslave for OBEX connections -Description[bg]=tdeioslave за OBEX връзки -Description[br]=Ur c'hioslave evit ar c'hevreadennoù OBEX -Description[ca]=Un tdeioslave per a les connexions OBEX -Description[da]=En tdeioslave til OBEX-forbindelser -Description[de]=Ein tdeioslave für OBEX-Verbindungen -Description[el]=Ένας υπηρέτης tdeio για συνδέσεις OBEX -Description[es]=Un 'tdeioslave' para conexiones OBEX -Description[et]=OBEX-ühenduste I/O-moodul -Description[fr]=Un tdeioslave pour les connexions OBEX -Description[it]=Un tdeioslave per connessioni OBEX -Description[ja]=OBEX 接続のための tdeioslave -Description[ka]=tdeioslave OBEX კავშირებისთვის -Description[nl]=Een tdeioslave for OBEX-verbindingen -Description[pl]=Wtyczka protokołu dla połączeń OBEX -Description[pt]=Um 'tdeioslave' para ligações OBEX -Description[pt_BR]=Um 'tdeioslave' para ligações OBEX -Description[sr]=tdeioslave за OBEX везе -Description[sr@Latn]=tdeioslave za OBEX veze -Description[sv]=En I/O-slav för OBEX-anslutningar -Description[ta]=ஒரு OBEX இணைப்பிற்க்காண tdeioslave. -Description[tr]=OBEX bağlantıları için bir tdeioslave -Description[xx]=xxA tdeioslave for OBEX connectionsxx -Icon=remote - DocPath=tdebluez/components.tdeio_obex.html diff --git a/src/tdeioslave/obex/obexopp.protocol b/src/tdeioslave/obex/obexopp.protocol index 964bab9..f56b884 100644 --- a/src/tdeioslave/obex/obexopp.protocol +++ b/src/tdeioslave/obex/obexopp.protocol @@ -1,52 +1,19 @@ [Protocol] -# The executable -exec=tdeio_obex -# This protocol name +Description=A tdeioslave for OBEX connections + protocol=obexopp +exec=tdeio_obex +Icon=remote +maxInstances=1 Parent=system:/ - -# input/output can be one of: filesystem, stream, none input=none output=none -maxInstances=1 - -# capabilities for this protocol +source=false reading=false writing=true makedir=false deleting=false moving=false linking=false - -# What to list ... FIXME work out how ... listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group - -# Can be source protocol -source=false - -Description=A tdeioslave for OBEX connections -Description[bg]=tdeioslave за OBEX връзки -Description[br]=Ur c'hioslave evit ar c'hevreadennoù OBEX -Description[ca]=Un tdeioslave per a les connexions OBEX -Description[da]=En tdeioslave til OBEX-forbindelser -Description[de]=Ein tdeioslave für OBEX-Verbindungen -Description[el]=Ένας υπηρέτης tdeio για συνδέσεις OBEX -Description[es]=Un 'tdeioslave' para conexiones OBEX -Description[et]=OBEX-ühenduste I/O-moodul -Description[fr]=Un tdeioslave pour les connexions OBEX -Description[it]=Un tdeioslave per connessioni OBEX -Description[ja]=OBEX 接続のための tdeioslave -Description[ka]=tdeioslave OBEX კავშირებისთვის -Description[nl]=Een tdeioslave for OBEX-verbindingen -Description[pl]=Wtyczka protokołu dla połączeń OBEX -Description[pt]=Um 'tdeioslave' para ligações OBEX -Description[pt_BR]=Um 'tdeioslave' para ligações OBEX -Description[sr]=tdeioslave за OBEX везе -Description[sr@Latn]=tdeioslave za OBEX veze -Description[sv]=En I/O-slav för OBEX-anslutningar -Description[ta]=ஒரு OBEX இணைப்பிற்க்காண tdeioslave. -Description[tr]=OBEX bağlantıları için bir tdeioslave -Description[xx]=xxA tdeioslave for OBEX connectionsxx -Icon=remote - DocPath=tdebluez/components.tdeio_obex.html diff --git a/src/tdeioslave/obex/tdeio_obex.cpp b/src/tdeioslave/obex/tdeio_obex.cpp index fbd2fb5..3e5bdbe 100644 --- a/src/tdeioslave/obex/tdeio_obex.cpp +++ b/src/tdeioslave/obex/tdeio_obex.cpp @@ -49,6 +49,8 @@ extern "C" { TDECmdLineArgs::init(argc, argv, "tdeio_obex", 0, 0, 0, 0); TDECmdLineArgs::addCmdLineOptions( options ); TDEApplication app( false, false, false ); + TDELocale::setMainCatalogue("tdebluez"); + // We want to be anonymous even if we use DCOP app.dcopClient()->attach(); |