mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Very early KDE 6 release.
This commit is contained in:
parent
7cc4ccabbc
commit
686046d4f7
6272 changed files with 140920 additions and 529657 deletions
|
@ -0,0 +1,43 @@
|
|||
> Version 7 of Zren's i18n scripts.
|
||||
|
||||
With KDE Frameworks v5.37 and above, translations are bundled with the `*.plasmoid` file downloaded from the store.
|
||||
|
||||
## Install Translations
|
||||
|
||||
Go to `~/.local/share/plasma/plasmoids/org.kde.plasma.win7showdesktop/translate/` and run `sh ./build --restartplasma`.
|
||||
|
||||
## New Translations
|
||||
|
||||
1. Fill out [`template.pot`](template.pot) with your translations then open a [new issue](https://github.com/Zren/plasma-applet-win7showdesktop/issues/new), name the file `spanish.txt`, attach the txt file to the issue (drag and drop).
|
||||
|
||||
Or if you know how to make a pull request
|
||||
|
||||
1. Copy the `template.pot` file and name it your locale's code (Eg: `en`/`de`/`fr`) with the extension `.po`. Then fill out all the `msgstr ""`.
|
||||
|
||||
## Scripts
|
||||
|
||||
* `sh ./merge` will parse the `i18n()` calls in the `*.qml` files and write it to the `template.pot` file. Then it will merge any changes into the `*.po` language files.
|
||||
* `sh ./build` will convert the `*.po` files to it's binary `*.mo` version and move it to `contents/locale/...` which will bundle the translations in the `*.plasmoid` without needing the user to manually install them.
|
||||
* `sh ./plasmoidlocaletest` will run `./build` then `plasmoidviewer` (part of `plasma-sdk`).
|
||||
|
||||
## Links
|
||||
|
||||
* https://zren.github.io/kde/docs/widget/#translations-i18n
|
||||
* https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems
|
||||
* https://api.kde.org/frameworks/ki18n/html/prg_guide.html
|
||||
|
||||
## Examples
|
||||
|
||||
* https://l10n.kde.org/stats/gui/trunk-kf5/team/fr/plasma-desktop/
|
||||
* https://github.com/psifidotos/nowdock-plasmoid/tree/master/po
|
||||
* https://github.com/kotelnik/plasma-applet-redshift-control/tree/master/translations
|
||||
|
||||
## Status
|
||||
| Locale | Lines | % Done|
|
||||
|----------|---------|-------|
|
||||
| Template | 35 | |
|
||||
| ar | 5/35 | 14% |
|
||||
| es | 25/35 | 71% |
|
||||
| fr | 5/35 | 14% |
|
||||
| nl | 25/35 | 71% |
|
||||
| pt_BR | 20/35 | 57% |
|
|
@ -0,0 +1,166 @@
|
|||
# Translation of win7showdesktop in ar
|
||||
# Copyright (C) 2022
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: ar <LL@li.org>\n"
|
||||
"Language: ar\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr "أظهر سطح المكتب (Win7)"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr "أظهر سطح مكتب بلازما"
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr "عامّ"
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr "الحجم:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr "مكّن"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
# Version: 6
|
||||
|
||||
# This script will convert the *.po files to *.mo files, rebuilding the package/contents/locale folder.
|
||||
# Feature discussion: https://phabricator.kde.org/D5209
|
||||
# Eg: contents/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
|
||||
|
||||
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
||||
plasmoidName=`kreadconfig6 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Name"`
|
||||
website=`kreadconfig6 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Website"`
|
||||
bugAddress="$website"
|
||||
packageRoot=".." # Root of translatable sources
|
||||
projectName="plasma_applet_${plasmoidName}" # project name
|
||||
|
||||
#---
|
||||
if [ -z "$plasmoidName" ]; then
|
||||
echo "[build] Error: Couldn't read plasmoidName."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -z "$(which msgfmt)" ]; then
|
||||
echo "[build] Error: msgfmt command not found. Need to install gettext"
|
||||
echo "[build] Running 'sudo apt install gettext'"
|
||||
sudo apt install gettext
|
||||
echo "[build] gettext installation should be finished. Going back to installing translations."
|
||||
fi
|
||||
|
||||
#---
|
||||
echo "[build] Compiling messages"
|
||||
|
||||
catalogs=`find . -name '*.po' | sort`
|
||||
for cat in $catalogs; do
|
||||
echo "$cat"
|
||||
catLocale=`basename ${cat%.*}`
|
||||
msgfmt -o "${catLocale}.mo" "$cat"
|
||||
|
||||
installPath="$DIR/../contents/locale/${catLocale}/LC_MESSAGES/${projectName}.mo"
|
||||
|
||||
echo "[build] Install to ${installPath}"
|
||||
mkdir -p "$(dirname "$installPath")"
|
||||
mv "${catLocale}.mo" "${installPath}"
|
||||
done
|
||||
|
||||
echo "[build] Done building messages"
|
||||
|
||||
if [ "$1" = "--restartplasma" ]; then
|
||||
echo "[build] Restarting plasmashell"
|
||||
killall plasmashell
|
||||
kstart plasmashell
|
||||
echo "[build] Done restarting plasmashell"
|
||||
else
|
||||
echo "[build] (re)install the plasmoid and restart plasmashell to test."
|
||||
fi
|
|
@ -0,0 +1,168 @@
|
|||
# Translation of win7showdesktop in spanish
|
||||
# Copyright (C) 2019
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
# WUniversales <universales@protonmail.com>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: 2019-10-19 12:36\n"
|
||||
"Last-Translator: wunivesales <universales@protonmail.com>\n"
|
||||
"Language-Team: Spanish <LL@li.org>\n"
|
||||
"Language: Spanish \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr "Mostrar el escritorio (Win7)"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr "Mostrar el escritorio de Plasma"
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr "General"
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr "Tamaño:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr "Color del borde:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr "Color del hover:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr "Color al pulsar:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr "Click"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr "Ejecutar comando:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr "Rueda del ratón"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr "Ejecutar comandos"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr "Desplazarse hacia arriba:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr "Desplazarse hacia abajo:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr "Volumen (Sin UI) (amixer)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr "Volumen (Con UI) (qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr "Cambiar escritorio (qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr "Previsualizar"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr "Mostrar escritorio al pasar el mouse:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr "Activar"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr "Límite de visualización:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr "ms"
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr "<b>Versión:</b> %1"
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr "Alternar widgets bloqueados"
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
|
@ -0,0 +1,166 @@
|
|||
# Translation of win7showdesktop in fr
|
||||
# Copyright (C) 2022
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: fr <LL@li.org>\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr "Afficher un bureau (Win7)"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr "Afficher le bureau Plasma"
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr "Général"
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr "Taille : "
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr "Activer"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
|
@ -0,0 +1,239 @@
|
|||
#!/bin/sh
|
||||
# Version: 22
|
||||
|
||||
# https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems
|
||||
# https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems/Outside_KDE_repositories
|
||||
# https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/extract-messages.sh
|
||||
|
||||
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
||||
plasmoidName=`kreadconfig6 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Name"`
|
||||
widgetName="${plasmoidName##*.}" # Strip namespace
|
||||
website=`kreadconfig6 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Website"`
|
||||
bugAddress="$website"
|
||||
packageRoot=".." # Root of translatable sources
|
||||
projectName="plasma_applet_${plasmoidName}" # project name
|
||||
|
||||
#---
|
||||
if [ -z "$plasmoidName" ]; then
|
||||
echo "[merge] Error: Couldn't read plasmoidName."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -z "$(which xgettext)" ]; then
|
||||
echo "[merge] Error: xgettext command not found. Need to install gettext"
|
||||
echo "[merge] Running 'sudo apt install gettext'"
|
||||
sudo apt install gettext
|
||||
echo "[merge] gettext installation should be finished. Going back to merging translations."
|
||||
fi
|
||||
|
||||
#---
|
||||
echo "[merge] Extracting messages"
|
||||
potArgs="--from-code=UTF-8 --width=200 --add-location=file"
|
||||
|
||||
# Note: xgettext v0.20.1 (Kubuntu 20.04) and below will attempt to translate Icon,
|
||||
# so we need to specify Name, GenericName, Comment, and Keywords.
|
||||
# https://github.com/Zren/plasma-applet-lib/issues/1
|
||||
# https://savannah.gnu.org/support/?108887
|
||||
find "${packageRoot}" -name '*.desktop' | sort > "${DIR}/infiles.list"
|
||||
xgettext \
|
||||
${potArgs} \
|
||||
--files-from="${DIR}/infiles.list" \
|
||||
--language=Desktop \
|
||||
-k -kName -kGenericName -kComment -kKeywords \
|
||||
-D "${packageRoot}" \
|
||||
-D "${DIR}" \
|
||||
-o "template.pot.new" \
|
||||
|| \
|
||||
{ echo "[merge] error while calling xgettext. aborting."; exit 1; }
|
||||
|
||||
sed -i 's/"Content-Type: text\/plain; charset=CHARSET\\n"/"Content-Type: text\/plain; charset=UTF-8\\n"/' "template.pot.new"
|
||||
|
||||
# See Ki18n's extract-messages.sh for a full example:
|
||||
# https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/extract-messages.sh#L25
|
||||
# The -kN_ and -kaliasLocale keywords are mentioned in the Outside_KDE_repositories wiki.
|
||||
# We don't need -kN_ since we don't use intltool-extract but might as well keep it.
|
||||
# I have no idea what -kaliasLocale is used for. Googling aliasLocale found only listed kde1 code.
|
||||
# We don't need to parse -ki18nd since that'll extract messages from other domains.
|
||||
find "${packageRoot}" -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.qml' -o -name '*.js' | sort > "${DIR}/infiles.list"
|
||||
xgettext \
|
||||
${potArgs} \
|
||||
--files-from="${DIR}/infiles.list" \
|
||||
-C -kde \
|
||||
-ci18n \
|
||||
-ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 \
|
||||
-kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
|
||||
-kxi18n:1 -kxi18nc:1c,2 -kxi18np:1,2 -kxi18ncp:1c,2,3 \
|
||||
-kkxi18n:1 -kkxi18nc:1c,2 -kkxi18np:1,2 -kkxi18ncp:1c,2,3 \
|
||||
-kI18N_NOOP:1 -kI18NC_NOOP:1c,2 \
|
||||
-kI18N_NOOP2:1c,2 -kI18N_NOOP2_NOSTRIP:1c,2 \
|
||||
-ktr2i18n:1 -ktr2xi18n:1 \
|
||||
-kN_:1 \
|
||||
-kaliasLocale \
|
||||
--package-name="${widgetName}" \
|
||||
--msgid-bugs-address="${bugAddress}" \
|
||||
-D "${packageRoot}" \
|
||||
-D "${DIR}" \
|
||||
--join-existing \
|
||||
-o "template.pot.new" \
|
||||
|| \
|
||||
{ echo "[merge] error while calling xgettext. aborting."; exit 1; }
|
||||
|
||||
sed -i 's/# SOME DESCRIPTIVE TITLE./'"# Translation of ${widgetName} in LANGUAGE"'/' "template.pot.new"
|
||||
sed -i 's/# Copyright (C) YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/'"# Copyright (C) $(date +%Y)"'/' "template.pot.new"
|
||||
|
||||
if [ -f "template.pot" ]; then
|
||||
newPotDate=`grep "POT-Creation-Date:" template.pot.new | sed 's/.\{3\}$//'`
|
||||
oldPotDate=`grep "POT-Creation-Date:" template.pot | sed 's/.\{3\}$//'`
|
||||
sed -i 's/'"${newPotDate}"'/'"${oldPotDate}"'/' "template.pot.new"
|
||||
changes=`diff "template.pot" "template.pot.new"`
|
||||
if [ ! -z "$changes" ]; then
|
||||
# There's been changes
|
||||
sed -i 's/'"${oldPotDate}"'/'"${newPotDate}"'/' "template.pot.new"
|
||||
mv "template.pot.new" "template.pot"
|
||||
|
||||
addedKeys=`echo "$changes" | grep "> msgid" | cut -c 9- | sort`
|
||||
removedKeys=`echo "$changes" | grep "< msgid" | cut -c 9- | sort`
|
||||
echo ""
|
||||
echo "Added Keys:"
|
||||
echo "$addedKeys"
|
||||
echo ""
|
||||
echo "Removed Keys:"
|
||||
echo "$removedKeys"
|
||||
echo ""
|
||||
|
||||
else
|
||||
# No changes
|
||||
rm "template.pot.new"
|
||||
fi
|
||||
else
|
||||
# template.pot didn't already exist
|
||||
mv "template.pot.new" "template.pot"
|
||||
fi
|
||||
|
||||
potMessageCount=`expr $(grep -Pzo 'msgstr ""\n(\n|$)' "template.pot" | grep -c 'msgstr ""')`
|
||||
echo "| Locale | Lines | % Done|" > "./Status.md"
|
||||
echo "|----------|---------|-------|" >> "./Status.md"
|
||||
entryFormat="| %-8s | %7s | %5s |"
|
||||
templateLine=`perl -e "printf(\"$entryFormat\", \"Template\", \"${potMessageCount}\", \"\")"`
|
||||
echo "$templateLine" >> "./Status.md"
|
||||
|
||||
rm "${DIR}/infiles.list"
|
||||
echo "[merge] Done extracting messages"
|
||||
|
||||
#---
|
||||
echo "[merge] Merging messages"
|
||||
catalogs=`find . -name '*.po' | sort`
|
||||
for cat in $catalogs; do
|
||||
echo "[merge] $cat"
|
||||
catLocale=`basename ${cat%.*}`
|
||||
|
||||
widthArg=""
|
||||
catUsesGenerator=`grep "X-Generator:" "$cat"`
|
||||
if [ -z "$catUsesGenerator" ]; then
|
||||
widthArg="--width=400"
|
||||
fi
|
||||
|
||||
compendiumArg=""
|
||||
if [ ! -z "$COMPENDIUM_DIR" ]; then
|
||||
langCode=`basename "${cat%.*}"`
|
||||
compendiumPath=`realpath "$COMPENDIUM_DIR/compendium-${langCode}.po"`
|
||||
if [ -f "$compendiumPath" ]; then
|
||||
echo "compendiumPath=$compendiumPath"
|
||||
compendiumArg="--compendium=$compendiumPath"
|
||||
fi
|
||||
fi
|
||||
|
||||
cp "$cat" "$cat.new"
|
||||
sed -i 's/"Content-Type: text\/plain; charset=CHARSET\\n"/"Content-Type: text\/plain; charset=UTF-8\\n"/' "$cat.new"
|
||||
|
||||
msgmerge \
|
||||
${widthArg} \
|
||||
--add-location=file \
|
||||
--no-fuzzy-matching \
|
||||
${compendiumArg} \
|
||||
-o "$cat.new" \
|
||||
"$cat.new" "${DIR}/template.pot"
|
||||
|
||||
sed -i 's/# SOME DESCRIPTIVE TITLE./'"# Translation of ${widgetName} in ${catLocale}"'/' "$cat.new"
|
||||
sed -i 's/# Translation of '"${widgetName}"' in LANGUAGE/'"# Translation of ${widgetName} in ${catLocale}"'/' "$cat.new"
|
||||
sed -i 's/# Copyright (C) YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/'"# Copyright (C) $(date +%Y)"'/' "$cat.new"
|
||||
|
||||
poEmptyMessageCount=`expr $(grep -Pzo 'msgstr ""\n(\n|$)' "$cat.new" | grep -c 'msgstr ""')`
|
||||
poMessagesDoneCount=`expr $potMessageCount - $poEmptyMessageCount`
|
||||
poCompletion=`perl -e "printf(\"%d\", $poMessagesDoneCount * 100 / $potMessageCount)"`
|
||||
poLine=`perl -e "printf(\"$entryFormat\", \"$catLocale\", \"${poMessagesDoneCount}/${potMessageCount}\", \"${poCompletion}%\")"`
|
||||
echo "$poLine" >> "./Status.md"
|
||||
|
||||
# mv "$cat" "$cat.old"
|
||||
mv "$cat.new" "$cat"
|
||||
done
|
||||
echo "[merge] Done merging messages"
|
||||
|
||||
#---
|
||||
echo "[merge] Updating .desktop file"
|
||||
|
||||
# Generate LINGUAS for msgfmt
|
||||
if [ -f "$DIR/LINGUAS" ]; then
|
||||
rm "$DIR/LINGUAS"
|
||||
fi
|
||||
touch "$DIR/LINGUAS"
|
||||
for cat in $catalogs; do
|
||||
catLocale=`basename ${cat%.*}`
|
||||
echo "${catLocale}" >> "$DIR/LINGUAS"
|
||||
done
|
||||
|
||||
cp -f "$DIR/../metadata.desktop" "$DIR/template.desktop"
|
||||
sed -i '/^Name\[/ d; /^GenericName\[/ d; /^Comment\[/ d; /^Keywords\[/ d' "$DIR/template.desktop"
|
||||
|
||||
msgfmt \
|
||||
--desktop \
|
||||
--template="$DIR/template.desktop" \
|
||||
-d "$DIR/" \
|
||||
-o "$DIR/new.desktop"
|
||||
|
||||
# Delete empty msgid messages that used the po header
|
||||
if [ ! -z "$(grep '^Name=$' "$DIR/new.desktop")" ]; then
|
||||
echo "[merge] Name in metadata.desktop is empty!"
|
||||
sed -i '/^Name\[/ d' "$DIR/new.desktop"
|
||||
fi
|
||||
if [ ! -z "$(grep '^GenericName=$' "$DIR/new.desktop")" ]; then
|
||||
echo "[merge] GenericName in metadata.desktop is empty!"
|
||||
sed -i '/^GenericName\[/ d' "$DIR/new.desktop"
|
||||
fi
|
||||
if [ ! -z "$(grep '^Comment=$' "$DIR/new.desktop")" ]; then
|
||||
echo "[merge] Comment in metadata.desktop is empty!"
|
||||
sed -i '/^Comment\[/ d' "$DIR/new.desktop"
|
||||
fi
|
||||
if [ ! -z "$(grep '^Keywords=$' "$DIR/new.desktop")" ]; then
|
||||
echo "[merge] Keywords in metadata.desktop is empty!"
|
||||
sed -i '/^Keywords\[/ d' "$DIR/new.desktop"
|
||||
fi
|
||||
|
||||
# Place translations at the bottom of the desktop file.
|
||||
translatedLines=`cat "$DIR/new.desktop" | grep "]="`
|
||||
if [ ! -z "${translatedLines}" ]; then
|
||||
sed -i '/^Name\[/ d; /^GenericName\[/ d; /^Comment\[/ d; /^Keywords\[/ d' "$DIR/new.desktop"
|
||||
if [ "$(tail -c 2 "$DIR/new.desktop" | wc -l)" != "2" ]; then
|
||||
# Does not end with 2 empty lines, so add an empty line.
|
||||
echo "" >> "$DIR/new.desktop"
|
||||
fi
|
||||
echo "${translatedLines}" >> "$DIR/new.desktop"
|
||||
fi
|
||||
|
||||
# Cleanup
|
||||
mv "$DIR/new.desktop" "$DIR/../metadata.desktop"
|
||||
rm "$DIR/template.desktop"
|
||||
rm "$DIR/LINGUAS"
|
||||
|
||||
#---
|
||||
# Populate ReadMe.md
|
||||
echo "[merge] Updating translate/ReadMe.md"
|
||||
sed -i -E 's`share\/plasma\/plasmoids\/(.+)\/translate`share/plasma/plasmoids/'"${plasmoidName}"'/translate`' ./ReadMe.md
|
||||
if [[ "$website" == *"github.com"* ]]; then
|
||||
sed -i -E 's`\[new issue\]\(https:\/\/github\.com\/(.+)\/(.+)\/issues\/new\)`[new issue]('"${website}"'/issues/new)`' ./ReadMe.md
|
||||
fi
|
||||
sed -i '/^|/ d' ./ReadMe.md # Remove status table from ReadMe
|
||||
cat ./Status.md >> ./ReadMe.md
|
||||
rm ./Status.md
|
||||
|
||||
echo "[merge] Done"
|
|
@ -0,0 +1,169 @@
|
|||
# Translation of win7showdesktop in nl
|
||||
# Copyright (C) 2019
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
#
|
||||
# Heimen Stoffels <vistausss@outlook.com>, 2019.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: 2020-03-30 13:57+0200\n"
|
||||
"Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n"
|
||||
"Language-Team: Dutch <vistausss@outlook.com>\n"
|
||||
"Language: nl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 2.3\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr "Bureaublad tonen (Win7)"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr "Toont het Plasma-bureaublad"
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr "Algemeen"
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr "Uiterlijk"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr "Grootte:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr "Randkleur:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr "Kleur bij tonen zonder klikken:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr "Kleur bij indrukken:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr "Klikken"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr "Opdracht uitvoeren"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr "Scrollwiel"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr "Opdrachten uitvoeren"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr "Omhoogscrollen:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr "Omlaagscrollen:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr "Volume (zonder venster - amixer)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr "Volume (met venster - qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr "Overschakelen naar ander bureaublad (qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr "Gluren"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr "Bureaublad tonen zonder klikken:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr "Inschakelen"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr "Gluurvertraging:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr "ms"
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr "<b>Versie:</b> %1"
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr "Widgets ver-/ontgrendelen"
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
|
@ -0,0 +1,181 @@
|
|||
#!/bin/bash
|
||||
# Version 9
|
||||
# Requires plasmoidviewer v5.13.0
|
||||
|
||||
function checkIfLangInstalled {
|
||||
if [ -x "$(command -v dpkg)" ]; then
|
||||
dpkg -l ${1} >/dev/null 2>&1 || ( \
|
||||
echo -e "${1} not installed.\nInstalling now before continuing.\n" \
|
||||
; sudo apt install ${1} \
|
||||
) || ( \
|
||||
echo -e "\nError trying to install ${1}\nPlease run 'sudo apt install ${1}'\n" \
|
||||
; exit 1 \
|
||||
)
|
||||
elif [ -x "$(command -v pacman)" ]; then
|
||||
# TODO: run `locale -a` and check if the locale is enabled.
|
||||
if false; then
|
||||
# https://wiki.archlinux.org/index.php/Locale
|
||||
# Uncomment the locale in /etc/locale.gen
|
||||
# Then run `locale-gen`
|
||||
echo -e "\nPlease install this locale in System Settings first.\n"
|
||||
exit 1
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
else
|
||||
echo -e "\nPackage manager not recognized. If the widget is not translated, please install the package '${1}'\n"
|
||||
fi
|
||||
}
|
||||
|
||||
langInput="${1}"
|
||||
lang=""
|
||||
languagePack=""
|
||||
|
||||
if [[ "$langInput" =~ ":" ]]; then # String contains a colon so assume it's a locale code.
|
||||
lang="${langInput}"
|
||||
IFS=: read -r l1 l2 <<< "${lang}"
|
||||
languagePack="language-pack-${l2}"
|
||||
fi
|
||||
|
||||
# https://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes/28357857#28357857
|
||||
declare -a langArr=(
|
||||
"af_ZA:af:Afrikaans (South Africa)"
|
||||
"ak_GH:ak:Akan (Ghana)"
|
||||
"am_ET:am:Amharic (Ethiopia)"
|
||||
"ar_EG:ar:Arabic (Egypt)"
|
||||
"as_IN:as:Assamese (India)"
|
||||
"az_AZ:az:Azerbaijani (Azerbaijan)"
|
||||
"be_BY:be:Belarusian (Belarus)"
|
||||
"bem_ZM:bem:Bemba (Zambia)"
|
||||
"bg_BG:bg:Bulgarian (Bulgaria)"
|
||||
"bo_IN:bo:Tibetan (India)"
|
||||
"bs_BA:bs:Bosnian (Bosnia and Herzegovina)"
|
||||
"ca_ES:ca:Catalan (Spain)"
|
||||
"chr_US:ch:Cherokee (United States)"
|
||||
"cs_CZ:cs:Czech (Czech Republic)"
|
||||
"cy_GB:cy:Welsh (United Kingdom)"
|
||||
"da_DK:da:Danish (Denmark)"
|
||||
"de_DE:de:German (Germany)"
|
||||
"el_GR:el:Greek (Greece)"
|
||||
"es_MX:es:Spanish (Mexico)"
|
||||
"et_EE:et:Estonian (Estonia)"
|
||||
"eu_ES:eu:Basque (Spain)"
|
||||
"fa_IR:fa:Persian (Iran)"
|
||||
"ff_SN:ff:Fulah (Senegal)"
|
||||
"fi_FI:fi:Finnish (Finland)"
|
||||
"fo_FO:fo:Faroese (Faroe Islands)"
|
||||
"fr_CA:fr:French (Canada)"
|
||||
"ga_IE:ga:Irish (Ireland)"
|
||||
"gl_ES:gl:Galician (Spain)"
|
||||
"gu_IN:gu:Gujarati (India)"
|
||||
"gv_GB:gv:Manx (United Kingdom)"
|
||||
"ha_NG:ha:Hausa (Nigeria)"
|
||||
"he_IL:he:Hebrew (Israel)"
|
||||
"hi_IN:hi:Hindi (India)"
|
||||
"hr_HR:hr:Croatian (Croatia)"
|
||||
"hu_HU:hu:Hungarian (Hungary)"
|
||||
"hy_AM:hy:Armenian (Armenia)"
|
||||
"id_ID:id:Indonesian (Indonesia)"
|
||||
"ig_NG:ig:Igbo (Nigeria)"
|
||||
"is_IS:is:Icelandic (Iceland)"
|
||||
"it_IT:it:Italian (Italy)"
|
||||
"ja_JP:ja:Japanese (Japan)"
|
||||
"ka_GE:ka:Georgian (Georgia)"
|
||||
"kk_KZ:kk:Kazakh (Kazakhstan)"
|
||||
"kl_GL:kl:Kalaallisut (Greenland)"
|
||||
"km_KH:km:Khmer (Cambodia)"
|
||||
"kn_IN:kn:Kannada (India)"
|
||||
"ko_KR:ko:Korean (South Korea)"
|
||||
"ko_KR:ko:Korean (South Korea)"
|
||||
"lg_UG:lg:Ganda (Uganda)"
|
||||
"lt_LT:lt:Lithuanian (Lithuania)"
|
||||
"lv_LV:lv:Latvian (Latvia)"
|
||||
"mg_MG:mg:Malagasy (Madagascar)"
|
||||
"mk_MK:mk:Macedonian (Macedonia)"
|
||||
"ml_IN:ml:Malayalam (India)"
|
||||
"mr_IN:mr:Marathi (India)"
|
||||
"ms_MY:ms:Malay (Malaysia)"
|
||||
"mt_MT:mt:Maltese (Malta)"
|
||||
"my_MM:my:Burmese (Myanmar [Burma])"
|
||||
"nb_NO:nb:Norwegian Bokmål (Norway)"
|
||||
"ne_NP:ne:Nepali (Nepal)"
|
||||
"nl_NL:nl:Dutch (Netherlands)"
|
||||
"nn_NO:nn:Norwegian Nynorsk (Norway)"
|
||||
"om_ET:om:Oromo (Ethiopia)"
|
||||
"or_IN:or:Oriya (India)"
|
||||
"pa_PK:pa:Punjabi (Pakistan)"
|
||||
"pl_PL:pl:Polish (Poland)"
|
||||
"ps_AF:ps:Pashto (Afghanistan)"
|
||||
"pt_BR:pt:Portuguese (Brazil)"
|
||||
"ro_RO:ro:Romanian (Romania)"
|
||||
"ru_RU:ru:Russian (Russia)"
|
||||
"rw_RW:rw:Kinyarwanda (Rwanda)"
|
||||
"si_LK:si:Sinhala (Sri Lanka)"
|
||||
"sk_SK:sk:Slovak (Slovakia)"
|
||||
"sl_SI:sl:Slovenian (Slovenia)"
|
||||
"so_SO:so:Somali (Somalia)"
|
||||
"sq_AL:sq:Albanian (Albania)"
|
||||
"sr_RS:sr:Serbian (Serbia)"
|
||||
"sv_SE:sv:Swedish (Sweden)"
|
||||
"sw_KE:sw:Swahili (Kenya)"
|
||||
"ta_IN:ta:Tamil (India)"
|
||||
"te_IN:te:Telugu (India)"
|
||||
"th_TH:th:Thai (Thailand)"
|
||||
"ti_ER:ti:Tigrinya (Eritrea)"
|
||||
"to_TO:to:Tonga (Tonga)"
|
||||
"tr_TR:tr:Turkish (Turkey)"
|
||||
"uk_UA:uk:Ukrainian (Ukraine)"
|
||||
"ur_IN:ur:Urdu (India)"
|
||||
"uz_UZ:uz:Uzbek (Uzbekistan)"
|
||||
"vi_VN:vi:Vietnamese (Vietnam)"
|
||||
"yo_NG:yo:Yoruba (Nigeria)"
|
||||
"yo_NG:yo:Yoruba (Nigeria)"
|
||||
"yue_HK:yu:Cantonese (Hong Kong)"
|
||||
"zh_CN:zh:Chinese (China)"
|
||||
"zu_ZA:zu:Zulu (South Africa)"
|
||||
)
|
||||
|
||||
for i in "${langArr[@]}"; do
|
||||
IFS=: read -r l1 l2 l3 <<< "$i"
|
||||
if [ "$langInput" == "$l2" ]; then
|
||||
lang="${l1}:${l2}"
|
||||
languagePack="language-pack-${l2}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$lang" ]; then
|
||||
echo "plasmoidlocaletest doesn't recognize the language '$lang'"
|
||||
echo "Eg:"
|
||||
scriptcmd='sh ./plasmoidlocaletest'
|
||||
for i in "${langArr[@]}"; do
|
||||
IFS=: read -r l1 l2 l3 <<< "$i"
|
||||
echo " ${scriptcmd} ${l2} | ${l3}"
|
||||
done
|
||||
echo ""
|
||||
echo "Or use a the full locale code:"
|
||||
echo " ${scriptcmd} ar_EG:ar"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IFS=: read -r l1 l2 <<< "${lang}"
|
||||
l1="${l1}.UTF-8"
|
||||
|
||||
# Check if language is installed
|
||||
if [ ! -z "$languagePack" ]; then
|
||||
if [ "$lang" == "zh_CN:zh" ]; then languagePack="language-pack-zh-hans"
|
||||
fi
|
||||
|
||||
checkIfLangInstalled "$languagePack" || exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "LANGUAGE=\"${lang}\""
|
||||
echo "LANG=\"${l1}\""
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
packageDir="${scriptDir}/.."
|
||||
|
||||
# Build local translations for plasmoidviewer
|
||||
sh "${scriptDir}/build"
|
||||
|
||||
LANGUAGE="${lang}" LANG="${l1}" LC_TIME="${l1}" QML_DISABLE_DISK_CACHE=true plasmoidviewer -a "$packageDir" -l topedge -f horizontal -x 0 -y 0
|
|
@ -0,0 +1,166 @@
|
|||
# Translation of win7showdesktop in brazilian portuguese
|
||||
# Copyright (C) 2019
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
# Andrew Miranda <kryptusql@protonmail.com>, 2020.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: 2020-15-01 10:25-0300\n"
|
||||
"Last-Translator: Andrew Miranda <kryptusql@protonmail.com>\n"
|
||||
"Language-Team: Portuguese Brazilian <kryptusql@protonmail.com>\n"
|
||||
"Language: Portuguese Brazilian \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr "Exibir a área de trabalho (Win7)"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr "Mostra a área de trabalho do Plasma"
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr "Geral"
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr "Aparência"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr "Tamanho:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr "Cor da borda:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr "Cor de foco:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr "Cor de clique:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr "Clique"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr "Executar comando:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr "Roda do mouse"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr "Executar comandos"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr "Rolar para cima:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr "Rolar para baixo:"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr "Volume (Sem UI) (amixer)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr "Volume (Com UI) (qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr "Alternar área de trabalho (qdbus)"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr "Ativar"
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr "<b>Versão:</b> %1"
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
|
@ -0,0 +1,168 @@
|
|||
# Translation of win7showdesktop in LANGUAGE
|
||||
# Copyright (C) 2024
|
||||
# This file is distributed under the same license as the win7showdesktop package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: win7showdesktop\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/Zren/plasma-applet-win7showdesktop\n"
|
||||
"POT-Creation-Date: 2024-03-14 18:09+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show Desktop (Win7)"
|
||||
msgstr ""
|
||||
|
||||
#: ../metadata.desktop
|
||||
msgid "Show the Plasma desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/config/config.qml
|
||||
msgid "General"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Run custom command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/CommandController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Run user-defined command when pressed"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Look"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Size:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Edge Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Hovered Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Pressed Color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Click"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Command"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Mouse Wheel"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Run Commands"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Up:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Scroll Down:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (No UI) (amixer)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Volume (UI) (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Switch Desktop (qdbus)"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Show desktop on hover:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Enable"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "Peek threshold:"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/config/ConfigGeneral.qml
|
||||
msgid "ms"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/lib/AppletVersion.qml
|
||||
msgid "<b>Version:</b> %1"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/main.qml
|
||||
msgid "Toggle Lock Widgets"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Restore All Minimized Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Minimize All Windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Restores the previously minimized windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/MinimizeAllController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Shows the Desktop by minimizing all windows"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Peek at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@action:button"
|
||||
msgid "Stop Peeking at Desktop"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Moves windows back to their original positions"
|
||||
msgstr ""
|
||||
|
||||
#: ../contents/ui/PeekController.qml
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Temporarily shows the desktop by moving windows away"
|
||||
msgstr ""
|
Loading…
Add table
Add a link
Reference in a new issue