Updating .notifyrc file
This commit is contained in:
parent
8e3f8f42dc
commit
7d3fe6239c
6 changed files with 16 additions and 54 deletions
|
@ -369,7 +369,7 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
|
|||
|
||||
kDebug(debugArea()) << "Pair request";
|
||||
|
||||
KNotification* notification = new KNotification("pingReceived"); //KNotification::Persistent
|
||||
KNotification* notification = new KNotification("pairingRequest");
|
||||
notification->setPixmap(KIcon("dialog-information").pixmap(48, 48));
|
||||
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
|
||||
notification->setTitle("KDE Connect");
|
||||
|
|
|
@ -11,6 +11,4 @@ install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|||
install(TARGETS kded_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
install(FILES kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
|
||||
|
||||
#TODO: Split this into several files for core and for each plugin
|
||||
install(FILES kdeconnect.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
|
||||
|
||||
|
|
|
@ -12,3 +12,5 @@ add_subdirectory(share)
|
|||
add_subdirectory(notifications)
|
||||
add_subdirectory(sftp)
|
||||
|
||||
#FIXME: If we split notifications in several files, they won't appear in the same group in the Notifications KCM
|
||||
install(FILES kdeconnect.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
|
||||
|
|
|
@ -49,6 +49,11 @@ Comment[tr]=Cihazınızdan bildirimler
|
|||
Comment[uk]=Сповіщення з вашого пристрою
|
||||
Comment[x-test]=xxNotifications from your devicesxx
|
||||
|
||||
[Event/pairingRequest]
|
||||
Name=Pairing Request
|
||||
Comment=Pairing request received from a devices
|
||||
Action=Popup
|
||||
|
||||
[Event/callReceived]
|
||||
Name=Calling
|
||||
Name[bg]=Позвъняване
|
||||
|
@ -355,53 +360,10 @@ Comment[uk]=Отримано сповіщення
|
|||
Comment[x-test]=xxNotification receivedxx
|
||||
Action=Popup
|
||||
|
||||
[Event/unknownEvent]
|
||||
Name=Unknown
|
||||
Name[bg]=Неизвестно
|
||||
Name[bs]=Nepoznato
|
||||
Name[ca]=Desconeguda
|
||||
Name[cs]=Neznámý
|
||||
Name[da]=Ukendt
|
||||
Name[de]=Unbekannt
|
||||
Name[es]=Desconocido
|
||||
Name[fi]=Tuntematon
|
||||
Name[fr]=Inconnu
|
||||
Name[hu]=Ismeretlen
|
||||
Name[it]=Sconsciuto
|
||||
Name[ko]=알 수 없음
|
||||
Name[nl]=Onbekend
|
||||
Name[pl]=Nieznana
|
||||
Name[pt]=Desconhecido
|
||||
Name[pt_BR]=Desconhecido
|
||||
Name[ro]=Necunoscut
|
||||
Name[ru]=Неизвестно
|
||||
Name[sk]=Neznáme
|
||||
Name[sv]=Okänt
|
||||
Name[tr]=Bilinmeyen
|
||||
Name[uk]=Невідомо
|
||||
Name[x-test]=xxUnknownxx
|
||||
Comment=Something unknown happened
|
||||
Comment[bg]=Случи се нещо неизвестно
|
||||
Comment[bs]=Nešto se nepoznato dogodilo
|
||||
Comment[ca]=Ha succeït quelcom desconegut
|
||||
Comment[cs]=Stalo se něco neznámého
|
||||
Comment[da]=Der skete noget ukendt
|
||||
Comment[de]=Etwas unbekanntes ist aufgetreten
|
||||
Comment[es]=Ha ocurrido algo desconocido
|
||||
Comment[fi]=Jotakin outoa sattui
|
||||
Comment[fr]=Un évènement inconnu est survenu
|
||||
Comment[hu]=Valami ismeretlen történt
|
||||
Comment[it]=Errore imprevisto
|
||||
Comment[ko]=알 수 없는 일이 일어남
|
||||
Comment[nl]=Er is iets onbekends gebeurd
|
||||
Comment[pl]=Stało się coś nieznanego
|
||||
Comment[pt]=Algo de inesperado aconteceu
|
||||
Comment[pt_BR]=Ocorreu algo inesperado
|
||||
Comment[ro]=S-a întîmplat ceva necunoscut
|
||||
Comment[ru]=Произошло неизвестное событие
|
||||
Comment[sk]=Stalo sa niečo neznáme
|
||||
Comment[sv]=Någonting okänt inträffade
|
||||
Comment[tr]=Bilinmeyen bir durum oluştu
|
||||
Comment[uk]=Сталося щось невідоме програмі
|
||||
Comment[x-test]=xxSomething unknown happenedxx
|
||||
[Event/transferReceived]
|
||||
Name=Pairing Request
|
||||
Comment=Pairing request received from a devices
|
||||
Action=Popup
|
||||
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ void SharePlugin::finished(KJob* job)
|
|||
bool error = (job->error() != 0);
|
||||
|
||||
FileTransferJob* transferJob = (FileTransferJob*)job;
|
||||
KNotification* notification = new KNotification("pingReceived"); //KNotification::Persistent
|
||||
KNotification* notification = new KNotification("transferReceived");
|
||||
notification->setPixmap(KIcon(error? "edit-delete" : "dialog-ok").pixmap(48, 48));
|
||||
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect-kded"));
|
||||
notification->setTitle(i18n("Transfer finished"));
|
||||
|
|
|
@ -63,7 +63,7 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
|
|||
#ifdef NDEBUG
|
||||
return NULL;
|
||||
#else
|
||||
type = "unknownEvent";
|
||||
type = "callReceived";
|
||||
icon = "pda";
|
||||
content = i18n("Unknown telephony event: %2", event);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue