diff --git a/autotests/data/signedPackage/metadata.desktop b/autotests/data/signedPackage/metadata.desktop index 9d9cca2b0..85a6003af 100644 --- a/autotests/data/signedPackage/metadata.desktop +++ b/autotests/data/signedPackage/metadata.desktop @@ -25,6 +25,7 @@ Name[sr@latin]=JavaScript operacije nad fajlovima Name[sv]=Filåtgärder för Javascript Name[uk]=Дії з файлами за допомогою JavaScript Name[x-test]=xxJavaScript File Operationsxx +Name[zh_CN]=JavaScript 文件操作 Name[zh_TW]=JavaScript 檔案操作 Comment=Demonstrates accessing data via HTTP in JavaScript Comment[bs]=Demonstrira pristupanje padacima preko HTTP u JavaScript diff --git a/autotests/data/testpackage/metadata.desktop b/autotests/data/testpackage/metadata.desktop index 8a9e44d73..925330f19 100644 --- a/autotests/data/testpackage/metadata.desktop +++ b/autotests/data/testpackage/metadata.desktop @@ -29,6 +29,7 @@ Name[sr@latin]=Probni paket Name[sv]=Testpaket Name[uk]=Тестовий пакунок Name[x-test]=xxTest Packagexx +Name[zh_CN]=测试包 Name[zh_TW]=測試套件 Type=Service diff --git a/autotests/packagemetadatatest.desktop b/autotests/packagemetadatatest.desktop index 245e81fee..5e8200830 100644 --- a/autotests/packagemetadatatest.desktop +++ b/autotests/packagemetadatatest.desktop @@ -27,6 +27,7 @@ Name[tr]=Paket metadata test dosyası Name[ug]=بوغچا مېتا سانلىق-مەلۇمات سىناق ھۆججەت Name[uk]=Файл перевірки метаданих пакунка Name[x-test]=xxPackage metadata test filexx +Name[zh_CN]=工具包元数据测试文件 Name[zh_TW]=套件中繼資料測試檔 Comment=A test desktop file to test the PackageMetaData class. Comment[ar]=ملف سطح مكتب اختباري لاختبار صنف بيانات الحزمة الوصفية (PackageMetaData). @@ -56,6 +57,7 @@ Comment[tr]=PackageMetaData sınıfını test etmek için bir desktop dosyası. Comment[ug]=PackageMetaData خىلىدىكى سىناشقا ئىشلىتىدىغان desktop تىپىدىكى ھۆججەت. Comment[uk]=Тестовий стільничний файл для перевірки класу PackageMetaData. Comment[x-test]=xxA test desktop file to test the PackageMetaData class.xx +Comment[zh_CN]=用于测试 PackageMetaData 类的 desktop 类型文件。 Comment[zh_TW]=測試 PackageMetaData 類別的桌面檔 Icon=test diff --git a/examples/applets/bugreport/metadata.desktop b/examples/applets/bugreport/metadata.desktop index 609cfcdab..4aa1898e1 100644 --- a/examples/applets/bugreport/metadata.desktop +++ b/examples/applets/bugreport/metadata.desktop @@ -24,6 +24,7 @@ Comment[sr@latin]=Prijavite grešku u Plasmi Comment[sv]=Rapportera ett fel i Plasma Comment[uk]=Повідомити про ваду у Плазмі Comment[x-test]=xxReport a bug in Plasmaxx +Comment[zh_CN]=报告 Plasma 的错误 Comment[zh_TW]=在 Plasma 中回報問題 Encoding=UTF-8 Keywords=plasma,bugzilla,bug,development,support @@ -75,6 +76,7 @@ Name[sr@latin]=Greška Name[sv]=Fel Name[uk]=Вада Name[x-test]=xxBugxx +Name[zh_CN]=臭虫 Name[zh_TW]=錯誤 Type=Service Icon=kbugbuster diff --git a/examples/applets/compactrepresentation/metadata.desktop b/examples/applets/compactrepresentation/metadata.desktop index 7f766c304..97d63528b 100644 --- a/examples/applets/compactrepresentation/metadata.desktop +++ b/examples/applets/compactrepresentation/metadata.desktop @@ -29,6 +29,7 @@ Name[sv]=hello world Name[tr]=Merhaba Dünya Name[uk]=Привіт, світе Name[x-test]=xxhello worldxx +Name[zh_CN]=hello world Name[zh_TW]=hello world Type=Service Icon=package_toys diff --git a/examples/applets/conditionalloader/metadata.desktop b/examples/applets/conditionalloader/metadata.desktop index 9c7b81c8c..c1dd580d6 100644 --- a/examples/applets/conditionalloader/metadata.desktop +++ b/examples/applets/conditionalloader/metadata.desktop @@ -28,6 +28,7 @@ Name[sr@latin]=Proba apleta Name[sv]=Miniprogramtest Name[uk]=Тест аплету Name[x-test]=xxApplet Testxx +Name[zh_CN]=小部件测试 Name[zh_TW]=小程式測試 Type=Service diff --git a/examples/applets/config/metadata.desktop b/examples/applets/config/metadata.desktop index 1dc8fb97e..17c64f2d9 100644 --- a/examples/applets/config/metadata.desktop +++ b/examples/applets/config/metadata.desktop @@ -28,6 +28,7 @@ Name[sv]=Inställningstest Name[tr]=Yapılandırma Testi Name[uk]=Перевірка налаштувань Name[x-test]=xxConfiguration testxx +Name[zh_CN]=配置测试 Name[zh_TW]=設定測試 Type=Service diff --git a/examples/applets/helloworld/metadata.desktop b/examples/applets/helloworld/metadata.desktop index b19af4c94..a295404e7 100644 --- a/examples/applets/helloworld/metadata.desktop +++ b/examples/applets/helloworld/metadata.desktop @@ -29,6 +29,7 @@ Name[sv]=hello world Name[tr]=Merhaba Dünya Name[uk]=Привіт, світе Name[x-test]=xxhello worldxx +Name[zh_CN]=hello world Name[zh_TW]=hello world Type=Service Icon=package_toys diff --git a/examples/applets/nowplaying/metadata.desktop b/examples/applets/nowplaying/metadata.desktop index c217234b7..146381f6b 100644 --- a/examples/applets/nowplaying/metadata.desktop +++ b/examples/applets/nowplaying/metadata.desktop @@ -24,6 +24,7 @@ Name[sr@latin]=Trenutna svirka (QML) Name[sv]=Spelar nu (QML) Name[uk]=Зараз відтворюється (QML) Name[x-test]=xxNow playing (QML)xx +Name[zh_CN]=正在播放 (QML) Name[zh_TW]=現正播放(QML) Comment=A proof of concept media player controller qml Comment[bs]=Dokaz koncepta media player upravljača qml diff --git a/examples/applets/testcomponents/metadata.desktop b/examples/applets/testcomponents/metadata.desktop index 033f9d7f8..678396bf0 100644 --- a/examples/applets/testcomponents/metadata.desktop +++ b/examples/applets/testcomponents/metadata.desktop @@ -25,6 +25,7 @@ Name[sr@latin]=Proba komponenata Name[sv]=Komponenttest Name[uk]=Тестування компонентів Name[x-test]=xxComponents Testxx +Name[zh_CN]=组件测试 Name[zh_TW]=組件測試 Type=Service Icon=plasma diff --git a/examples/applets/testtheme/metadata.desktop b/examples/applets/testtheme/metadata.desktop index 831290c28..b4d42878c 100644 --- a/examples/applets/testtheme/metadata.desktop +++ b/examples/applets/testtheme/metadata.desktop @@ -24,6 +24,7 @@ Name[sr@latin]=Proba teme Name[sv]=Tematest Name[uk]=Тестування теми Name[x-test]=xxTheme Testxx +Name[zh_CN]=主题测试 Name[zh_TW]=主題測試 Type=Service Icon=preferences-desktop-appearance diff --git a/examples/containments/testcontainment/metadata.desktop b/examples/containments/testcontainment/metadata.desktop index 2f55d699a..52f604c32 100644 --- a/examples/containments/testcontainment/metadata.desktop +++ b/examples/containments/testcontainment/metadata.desktop @@ -25,6 +25,7 @@ Name[sr@latin]=Proba sadržalaca Name[sv]=Omgivningstest Name[uk]=Тестування контейнера Name[x-test]=xxContainment Testxx +Name[zh_CN]=容器测试 Name[zh_TW]=容器測試 Type=Service diff --git a/src/desktoptheme/air/metadata.desktop b/src/desktoptheme/air/metadata.desktop index 1e5db7266..1194d1b47 100644 --- a/src/desktoptheme/air/metadata.desktop +++ b/src/desktoptheme/air/metadata.desktop @@ -31,6 +31,7 @@ Name[tr]=Air Name[ug]=ھاۋا Name[uk]=Air Name[x-test]=xxAirxx +Name[zh_CN]=大气 Name[zh_TW]=Air Comment=A breath of fresh air Comment[ar]=نسمة من الهواء المنعش @@ -63,6 +64,7 @@ Comment[tr]=Temiz havadan bir nefes Comment[ug]=ساپ ھاۋادىن نەپەسلىنىش Comment[uk]=Ковток свіжого повітря Comment[x-test]=xxA breath of fresh airxx +Comment[zh_CN]=呼吸清新空气 Comment[zh_TW]=吸一口新鮮空氣 diff --git a/src/desktoptheme/breeze-dark/metadata.desktop b/src/desktoptheme/breeze-dark/metadata.desktop index 7c23eb87a..2cbf41086 100644 --- a/src/desktoptheme/breeze-dark/metadata.desktop +++ b/src/desktoptheme/breeze-dark/metadata.desktop @@ -15,7 +15,7 @@ Name[pt]=Brisa Escura Name[pt_BR]=Breeze Dark Name[ru]=Breeze, тёмный вариант Name[sk]=Tmavý vánok -Name[sl]=Vetrič (temna) +Name[sl]=Sapica (temna) Name[sr]=Поветарац тамни Name[sr@ijekavian]=Поветарац тамни Name[sr@ijekavianlatin]=Povetarac tamni diff --git a/src/desktoptheme/breeze/metadata.desktop b/src/desktoptheme/breeze/metadata.desktop index 6a6d2d2cf..edb8d9950 100644 --- a/src/desktoptheme/breeze/metadata.desktop +++ b/src/desktoptheme/breeze/metadata.desktop @@ -15,7 +15,7 @@ Name[pt]=Brisa Name[pt_BR]=Breeze Name[ru]=Breeze Name[sk]=Vánok -Name[sl]=Vetrič +Name[sl]=Sapica Name[sr]=Поветарац Name[sr@ijekavian]=Поветарац Name[sr@ijekavianlatin]=Povetarac @@ -23,6 +23,7 @@ Name[sr@latin]=Povetarac Name[sv]=Breeze Name[uk]=Breeze Name[x-test]=xxBreezexx +Name[zh_CN]=微风 Name[zh_TW]=Breeze Dark diff --git a/src/desktoptheme/oxygen/metadata.desktop b/src/desktoptheme/oxygen/metadata.desktop index 28d849a62..e2176014a 100644 --- a/src/desktoptheme/oxygen/metadata.desktop +++ b/src/desktoptheme/oxygen/metadata.desktop @@ -31,6 +31,7 @@ Name[tr]=Oxygen Name[ug]=ئوكسېگىن Name[uk]=Oxygen Name[x-test]=xxOxygenxx +Name[zh_CN]=Oxygen Name[zh_TW]=Oxygen Comment=Theme done in the Oxygen style Comment[ar]=سمة مُصمَّمة بِنمط أوكسجين diff --git a/src/kpart/plasma-kpart.desktop b/src/kpart/plasma-kpart.desktop index 0e80215e6..1eef5550b 100644 --- a/src/kpart/plasma-kpart.desktop +++ b/src/kpart/plasma-kpart.desktop @@ -29,6 +29,7 @@ Name[tr]=plasma-kpart Name[ug]=plasma-kpart Name[uk]=plasma-kpart Name[x-test]=xxplasma-kpartxx +Name[zh_CN]=plasma-kpart Name[zh_TW]=plasma-kpart Type=Service ServiceTypes=KParts/Part diff --git a/src/plasma/containment.cpp b/src/plasma/containment.cpp index ff9c1846f..f078c84b1 100644 --- a/src/plasma/containment.cpp +++ b/src/plasma/containment.cpp @@ -90,6 +90,7 @@ Containment::Containment(const QString &packagePath, uint appletId) Containment::~Containment() { + qDeleteAll(d->localActionPlugins); delete d; } diff --git a/src/plasma/data/servicetypes/plasma-dataengine.desktop b/src/plasma/data/servicetypes/plasma-dataengine.desktop index 96368a0d0..c27a9104f 100644 --- a/src/plasma/data/servicetypes/plasma-dataengine.desktop +++ b/src/plasma/data/servicetypes/plasma-dataengine.desktop @@ -32,5 +32,6 @@ Comment[tr]=Plasma Veri Motoru Comment[ug]=Plasma سانلىق-مەلۇمات ماتورى Comment[uk]=Рушій даних Плазми Comment[x-test]=xxPlasma Data Enginexx +Comment[zh_CN]=Plasma 数据引擎 Comment[zh_TW]=Plasma 資料引擎 diff --git a/src/plasma/data/servicetypes/plasma-lookandfeel.desktop b/src/plasma/data/servicetypes/plasma-lookandfeel.desktop index 78fe79d0b..d75c7f5be 100644 --- a/src/plasma/data/servicetypes/plasma-lookandfeel.desktop +++ b/src/plasma/data/servicetypes/plasma-lookandfeel.desktop @@ -27,6 +27,7 @@ Name[sr@latin]=Plasma izgled i osećaj Name[sv]=Plasma utseende och känsla Name[uk]=Вигляд і поведінка Плазми Name[x-test]=xxPlasma Look and Feelxx +Name[zh_CN]=Plasma 观感 Name[zh_TW]=Plasma 外觀與感覺 Comment=Defines the Visual Language for Plasma Shells Comment[bs]=Definicija vizuelnog jezika za plazma školjke diff --git a/src/plasma/data/servicetypes/plasma-packagestructure.desktop b/src/plasma/data/servicetypes/plasma-packagestructure.desktop index 9b5cef870..254c5fe98 100644 --- a/src/plasma/data/servicetypes/plasma-packagestructure.desktop +++ b/src/plasma/data/servicetypes/plasma-packagestructure.desktop @@ -30,6 +30,7 @@ Comment[tr]=Plasma paketi yapı tanımlaması Comment[ug]=Plasma بوغچا قۇرۇلما ئېنىقلىمىسى Comment[uk]=Опис структури пакунка плазми Comment[x-test]=xxPlasma package structure definitionxx +Comment[zh_CN]=Plasma 包结构定义 Comment[zh_TW]=Plasma 套件結構定義 [PropertyDef::X-Plasma-PackageFileFilter] diff --git a/src/plasma/data/servicetypes/plasma-scriptengine.desktop b/src/plasma/data/servicetypes/plasma-scriptengine.desktop index 0bb9df4fd..2c3e2659d 100644 --- a/src/plasma/data/servicetypes/plasma-scriptengine.desktop +++ b/src/plasma/data/servicetypes/plasma-scriptengine.desktop @@ -31,6 +31,7 @@ Comment[tr]=Plasma için betik dili eklentisi Comment[ug]=Plasma نىڭ قوليازما تىل كېڭەيتىلمىسى Comment[uk]=Розширення скриптових мов для Плазми Comment[x-test]=xxScripting language extension for Plasmaxx +Comment[zh_CN]=Plasma 的脚本语言扩展 Comment[zh_TW]=Plasma 文稿語言延伸 [PropertyDef::X-Plasma-ComponentTypes] diff --git a/src/plasma/data/servicetypes/plasma-service.desktop b/src/plasma/data/servicetypes/plasma-service.desktop index c3846b4c7..e7377401e 100644 --- a/src/plasma/data/servicetypes/plasma-service.desktop +++ b/src/plasma/data/servicetypes/plasma-service.desktop @@ -32,4 +32,5 @@ Comment[tr]=Plasma servisi Comment[ug]=Plasma مۇلازىمىتى Comment[uk]=Служба Плазми Comment[x-test]=xxPlasma servicexx +Comment[zh_CN]=Plasma 服务 Comment[zh_TW]=Plasma 服務 diff --git a/src/plasma/data/servicetypes/plasma-shell.desktop b/src/plasma/data/servicetypes/plasma-shell.desktop index 451417878..e2c83ba8b 100644 --- a/src/plasma/data/servicetypes/plasma-shell.desktop +++ b/src/plasma/data/servicetypes/plasma-shell.desktop @@ -27,6 +27,7 @@ Name[sr@latin]=Plasma školjka Name[sv]=Plasma skal Name[uk]=Оболонка Плазми Name[x-test]=xxPlasma Shellxx +Name[zh_CN]=Plasma 外壳 Name[zh_TW]=Plasma Shell Comment=Plasma Shell Components Comment[ar]=مكوّنات صَدفة پلازما diff --git a/src/plasma/package.cpp b/src/plasma/package.cpp index 6ba7a6fce..6acdeea3c 100644 --- a/src/plasma/package.cpp +++ b/src/plasma/package.cpp @@ -78,6 +78,12 @@ bool Package::isValid() const return false; } + //Minimal packages with no metadata *are* supposed to be possible + //so if !metadata().isValid() go ahead + if (metadata().isValid() && metadata().isHidden()) { + return false; + } + if (d->checkedValid) { return d->valid; } diff --git a/src/platformstatus/kded_platformstatus.desktop b/src/platformstatus/kded_platformstatus.desktop index bf8d39aaf..69c86a619 100644 --- a/src/platformstatus/kded_platformstatus.desktop +++ b/src/platformstatus/kded_platformstatus.desktop @@ -32,6 +32,7 @@ Name[sr@latin]=Stanje platforme Name[sv]=Plattformstatus Name[uk]=Стан платформи Name[x-test]=xxPlatform Statusxx +Name[zh_CN]=平台状态 Name[zh_TW]=平台狀態 Comment=Tracks the current shell package and the platform definition strings. Comment[bs]=Prati trenutni paket školjke i definicijone nizove platforme diff --git a/src/scriptengines/python/plasma-scriptengine-dataengine-python.desktop b/src/scriptengines/python/plasma-scriptengine-dataengine-python.desktop index 8c1e65ea4..17e6b86a4 100644 --- a/src/scriptengines/python/plasma-scriptengine-dataengine-python.desktop +++ b/src/scriptengines/python/plasma-scriptengine-dataengine-python.desktop @@ -26,6 +26,7 @@ Name[sr@latin]=Python datomotor Name[sv]=Python datagränssnitt Name[uk]=Рушій даних Python Name[x-test]=xxPython data enginexx +Name[zh_CN]=Python 数据引擎 Name[zh_TW]=Python 資料引擎 Comment=Plasma data engine support for Python Comment[ar]=دعم محرّك بيانات پلازما لِبايثون diff --git a/src/scriptengines/ruby/plasma-scriptengine-ruby-dataengine.desktop b/src/scriptengines/ruby/plasma-scriptengine-ruby-dataengine.desktop index ec07ea42f..cbfbf1f5b 100644 --- a/src/scriptengines/ruby/plasma-scriptengine-ruby-dataengine.desktop +++ b/src/scriptengines/ruby/plasma-scriptengine-ruby-dataengine.desktop @@ -27,6 +27,7 @@ Name[sr@latin]=ruby vidžet Name[sv]=Grafisk Ruby-komponent Name[uk]=Віджет на Ruby Name[x-test]=xxRuby Widgetxx +Name[zh_CN]=Ruby 部件 Name[zh_TW]=Ruby 元件 Comment=Native Plasma widget written in Ruby Comment[ar]=ودجة پلازما أصيلة مكتوبة بِروبي diff --git a/tests/testengine/plasma-dataengine-testengine.desktop b/tests/testengine/plasma-dataengine-testengine.desktop index 624d4d8b2..5ba470d61 100644 --- a/tests/testengine/plasma-dataengine-testengine.desktop +++ b/tests/testengine/plasma-dataengine-testengine.desktop @@ -29,6 +29,7 @@ Name[tr]=Test Veri Motoru Name[ug]=سىناققا ئىشلىتىدىغان ماتور Name[uk]=Перевірка рушія даних Name[x-test]=xxTest Data Enginexx +Name[zh_CN]=测试用数据引擎 Name[zh_TW]=測試資料引擎 X-KDE-ServiceTypes=Plasma/DataEngine Type=Service