diff options
author | theCalcaholic <3knoeppl@informatik.uni-hamburg.de> | 2018-02-26 22:21:59 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-26 22:29:49 +0300 |
commit | 1a7c8b9b5e4b0cbda0e6c605ccab4d195c593a33 (patch) | |
tree | 6f6a586fe77287ca3d3b927a165bef936ab7589f /etc | |
parent | c4a111c28948d56b759566b756c04a844695d720 (diff) |
ncp-web: add localization (#372)v0.46.35
* Implement localization loader L10N.
Localize a few strings in index.php for testing.
* Determine language from HTTP_ACCEPT_LANGUAGE header.
* Fix parsing of available languages for localization.
* Fix parsing of language translations (for localization).
* Fix function L10N->find_language
* Change variable naming to comply with conventions.
* Add remaining localize calls in index.php.
Add more localization strings.
* Fix styles to prevent check mark from being hidden.
* Handle exception in case localization couldn't be loaded.
* Add module localization support.
* Fix detection of core module in L10N->load
* Remove module specific localization from core l10n file.
* Fix determination of module name in L10N->load.
* Add localization files for more modules.
* Ignore l10n directory in modules path.
* Add support for dropdown lists in module settings.
* Add support for saving dropdown menus.
* Fix regex for recognizing dropdown option lists.
* Fix dropdown list regex not recognizing active option.
* Fix typo in ncp-launcher.php
* Workaround for jquery's 'find' method not working. //TODO: Find proper fix.
* Fix parsing of dropdown lists when updating config.
* Load language setting from config if available.
* add ncp-provisioning to SD card images
* Add intellij config to gitignore
* Fix bug when loading language from nc-webui config.
* Remove redundant language definition.
Replace umlauts by html special char expressions.
* Change selected option markup from `*<option>*` to `_<option>_`.
* Remove ide metadata.
* Add translations for ncp-app nc-backup.
* Add translation hooks to ncp-launcher.php
* Fix type in translations for nc-backup
* Remove translation hooks for field contents in ncp-launcher.php
Diffstat (limited to 'etc')
32 files changed, 98 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/l10n/nc-audit/de.json b/etc/nextcloudpi-config.d/l10n/nc-audit/de.json new file mode 100644 index 00000000..8638ebbc --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-audit/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-audit": "Sicherheitsüberprüfung" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-automount/de.json b/etc/nextcloudpi-config.d/l10n/nc-automount/de.json new file mode 100644 index 00000000..8052bd35 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-automount/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-automount": "Automatische Datenträgereinbindung" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-autoupdate-ncp/de.json b/etc/nextcloudpi-config.d/l10n/nc-autoupdate-ncp/de.json new file mode 100644 index 00000000..ec3bb9f0 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-autoupdate-ncp/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-autoupdate-ncp": "Automatische NextCloudPi Updates" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-backup-auto/de.json b/etc/nextcloudpi-config.d/l10n/nc-backup-auto/de.json new file mode 100644 index 00000000..ee2d5513 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-backup-auto/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-backup-auto": "Automatische Backups" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-backup/de.json b/etc/nextcloudpi-config.d/l10n/nc-backup/de.json new file mode 100644 index 00000000..401a905e --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-backup/de.json @@ -0,0 +1,7 @@ +{"translations": { + "nc-backup": "Backup erstellen", + "DESTDIR": "Zielverzeichnis", + "INCLUDEDATA": "Inkl. Dateien", + "COMPRESS": "Komprimieren", + "BACKUPLIMIT": "Maximale Anzahl" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-database/de.json b/etc/nextcloudpi-config.d/l10n/nc-database/de.json new file mode 100644 index 00000000..057e758a --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-database/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-database": "Datenbank" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-datadir/de.json b/etc/nextcloudpi-config.d/l10n/nc-datadir/de.json new file mode 100644 index 00000000..e8e8605f --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-datadir/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-datadir": "Datenverzeichnis" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-export-npc/de.json b/etc/nextcloudpi-config.d/l10n/nc-export-npc/de.json new file mode 100644 index 00000000..00f29dda --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-export-npc/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-export-ncp": "NCP Export" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-fix-permissions/de.json b/etc/nextcloudpi-config.d/l10n/nc-fix-permissions/de.json new file mode 100644 index 00000000..ff44194f --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-fix-permissions/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-fix-permissions": "Berechtigungen wiederherstellen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-format-USB/de.json b/etc/nextcloudpi-config.d/l10n/nc-format-USB/de.json new file mode 100644 index 00000000..055f640b --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-format-USB/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-format-USB": "USB Laufwerke formatieren" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-forward-ports/de.json b/etc/nextcloudpi-config.d/l10n/nc-forward-ports/de.json new file mode 100644 index 00000000..a62d07bd --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-forward-ports/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-forward-ports": "Portweiterleitungen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-httpsonly/de.json b/etc/nextcloudpi-config.d/l10n/nc-httpsonly/de.json new file mode 100644 index 00000000..f82b4830 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-httpsonly/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-httpsonly": "HTTPS Zwang" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-import-ncp/de.json b/etc/nextcloudpi-config.d/l10n/nc-import-ncp/de.json new file mode 100644 index 00000000..b9880ed1 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-import-ncp/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-import-ncp": "NCP Import" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-info/de.json b/etc/nextcloudpi-config.d/l10n/nc-info/de.json new file mode 100644 index 00000000..9993d09b --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-info/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-info": "System Informationen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-init/de.json b/etc/nextcloudpi-config.d/l10n/nc-init/de.json new file mode 100644 index 00000000..9bed233c --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-init/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-init": "Initialisierung" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-limits/de.json b/etc/nextcloudpi-config.d/l10n/nc-limits/de.json new file mode 100644 index 00000000..705aefe4 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-limits/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-limits": "Systembegrenzungen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-nextcloud/de.json b/etc/nextcloudpi-config.d/l10n/nc-nextcloud/de.json new file mode 100644 index 00000000..1ececb2b --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-nextcloud/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-nextcloud": "Nextcloud Einstellungen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-notify-updates/de.json b/etc/nextcloudpi-config.d/l10n/nc-notify-updates/de.json new file mode 100644 index 00000000..21660a30 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-notify-updates/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-notify-updates": "Update-Benachrichtigungen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-passwd/de.json b/etc/nextcloudpi-config.d/l10n/nc-passwd/de.json new file mode 100644 index 00000000..ef69f438 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-passwd/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-passwd": "NCP Passwort" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-ramlogs/de.json b/etc/nextcloudpi-config.d/l10n/nc-ramlogs/de.json new file mode 100644 index 00000000..bc1cb5c3 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-ramlogs/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-ramlogs": "Ram Logs" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-restore/de.json b/etc/nextcloudpi-config.d/l10n/nc-restore/de.json new file mode 100644 index 00000000..69d4b619 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-restore/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-restore": "Wiederherstellung" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-scan-auto/de.json b/etc/nextcloudpi-config.d/l10n/nc-scan-auto/de.json new file mode 100644 index 00000000..cf168150 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-scan-auto/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-scan-auto": "Automatischer Datei-Scan" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-scan/de.json b/etc/nextcloudpi-config.d/l10n/nc-scan/de.json new file mode 100644 index 00000000..3469297e --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-scan/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-scan": "Datei-Scan" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-snapshot-auto/de.json b/etc/nextcloudpi-config.d/l10n/nc-snapshot-auto/de.json new file mode 100644 index 00000000..75f71db5 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-snapshot-auto/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-snapshot-auto": "Automatische Snapshots" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-snapshot/de.json b/etc/nextcloudpi-config.d/l10n/nc-snapshot/de.json new file mode 100644 index 00000000..b236539b --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-snapshot/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-snapshot": "Snapshot erstellen" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-static-IP/de.json b/etc/nextcloudpi-config.d/l10n/nc-static-IP/de.json new file mode 100644 index 00000000..45f0038b --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-static-IP/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-static-IP": "Statische IP Adresse" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-swapfile/de.json b/etc/nextcloudpi-config.d/l10n/nc-swapfile/de.json new file mode 100644 index 00000000..76fd573d --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-swapfile/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-swapfile": "Swap Datei" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-update/de.json b/etc/nextcloudpi-config.d/l10n/nc-update/de.json new file mode 100644 index 00000000..054011ff --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-update/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-update": "Update" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-webui/de.json b/etc/nextcloudpi-config.d/l10n/nc-webui/de.json new file mode 100644 index 00000000..4413d699 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-webui/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-webui": "NCP Weboberfläche" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/nc-wifi/de.json b/etc/nextcloudpi-config.d/l10n/nc-wifi/de.json new file mode 100644 index 00000000..6517b76e --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/nc-wifi/de.json @@ -0,0 +1,3 @@ +{"translations": { + "nc-wifi": "WLAN" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/l10n/unattended-upgrades/de.json b/etc/nextcloudpi-config.d/l10n/unattended-upgrades/de.json new file mode 100644 index 00000000..1c63a5a9 --- /dev/null +++ b/etc/nextcloudpi-config.d/l10n/unattended-upgrades/de.json @@ -0,0 +1,3 @@ +{"translations": { + "unattended-upgrades": "Unüberwachte System-Upgrades" +}}
\ No newline at end of file diff --git a/etc/nextcloudpi-config.d/nc-webui.sh b/etc/nextcloudpi-config.d/nc-webui.sh index e9709cdc..fe7437cb 100644 --- a/etc/nextcloudpi-config.d/nc-webui.sh +++ b/etc/nextcloudpi-config.d/nc-webui.sh @@ -14,6 +14,7 @@ # ACTIVE_=yes +LANGUAGE_=[_auto_,en,de] DESCRIPTION="Enable or disable the NCP web interface" configure() |