Skip to content

Commit

Permalink
AdwPreferencesPage & Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLauinger77 committed Feb 14, 2025
1 parent 8eb5d57 commit ab84731
Show file tree
Hide file tree
Showing 6 changed files with 825 additions and 297 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ [email protected]/ui/%-gtk4.ui: [email protected]/ui.in/%-
gtk4-builder-tool simplify --3to4 $< > $@

[email protected]: schemas ui ./[email protected]/*
gnome-extensions pack --force --extra-source=./lib/ --extra-source=./ui/ ./[email protected]/
gnome-extensions pack --podir=../po/ --force --extra-source=./lib/ --extra-source=./ui/ ./[email protected]/

[email protected]/schemas/gschemas.compiled: [email protected]/schemas/*.gschema.xml
glib-compile-schemas ./[email protected]/schemas/
Expand Down Expand Up @@ -44,3 +44,11 @@ start: install
start-prefs: install
gnome-extensions prefs [email protected]
.PHONY: start-prefs

translate:
xgettext --from-code=UTF-8 --output=po/smartautomove.pot smart-auto-move\@khimaros.com/*.js smart-auto-move\@khimaros.com/ui/*.ui smart-auto-move\@khimaros.com/schemas/*.xml
for pofile in po/*.po; do \
echo "Updating: $$pofile"; \
msgmerge -U "$$pofile" "po/smartautomove.pot" --backup=off; \
done
.PHONY: translate
187 changes: 187 additions & 0 deletions po/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-13 18:56+0100\n"
"PO-Revision-Date: 2025-02-13 18:59+0100\n"
"Last-Translator: Christian Lauinger <[email protected]>\n"
"Language-Team: \n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.5\n"

#: [email protected]/ui/prefs-adw.ui:5
msgid "General"
msgstr "Allgemein"

#: [email protected]/ui/prefs-adw.ui:9
msgid "Settings"
msgstr "Einstellungen"

#: [email protected]/ui/prefs-adw.ui:12
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:14
msgid "Debug Logging"
msgstr "Debug-Logging"

#: [email protected]/ui/prefs-adw.ui:13
#: [email protected]/ui/prefs-adw.ui:14
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:15
msgid "Write detailed logs about extension behavior."
msgstr "Detaillierte Protokolle über das Verhalten der Erweiterung schreiben."

#: [email protected]/ui/prefs-adw.ui:19
msgid "Default Synchronization Mode"
msgstr "Standard-Synchronisationsmodus"

#: [email protected]/ui/prefs-adw.ui:20
#: [email protected]/ui/prefs-adw.ui:21
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:40
msgid "Default mode when synchronizing windows."
msgstr "Standardmodus beim Synchronisieren von Fenstern."

#: [email protected]/ui/prefs-adw.ui:25
#: [email protected]/ui/prefs-gtk4.ui:127
#: [email protected]/ui/templates-gtk4.ui:44
msgid "IGNORE"
msgstr "IGNORIEREN"

#: [email protected]/ui/prefs-adw.ui:26
#: [email protected]/ui/prefs-gtk4.ui:128
#: [email protected]/ui/templates-gtk4.ui:45
msgid "RESTORE"
msgstr "WIEDERHERSTELLEN"

#: [email protected]/ui/prefs-adw.ui:34
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:34
msgid "Match Threshold"
msgstr "Übereinstimmungsschwelle"

#: [email protected]/ui/prefs-adw.ui:50
msgid "Sync Frequency (milliseconds)"
msgstr "Synchronisationsfrequenz (Millisekunden)"

#: [email protected]/ui/prefs-adw.ui:57
#: [email protected]/ui/prefs-adw.ui:64
msgid "Save Frequency (milliseconds)"
msgstr "Speicherfrequenz (Millisekunden)"

#: [email protected]/ui/prefs-adw.ui:71
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:49
msgid "Freeze Saves"
msgstr "Speichern einfrieren"

#: [email protected]/ui/prefs-adw.ui:78
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:54
msgid "Activate Workspace"
msgstr "Arbeitsbereich aktivieren"

#: [email protected]/ui/prefs-adw.ui:85
msgid "Ignore Position"
msgstr "Position ignorieren"

#: [email protected]/ui/prefs-adw.ui:92
msgid "Ignore Workspace"
msgstr "Arbeitsbereich ignorieren"

#: [email protected]/ui/prefs-adw.ui:102
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:9
msgid "Saved Windows"
msgstr "Gespeicherte Fenster"

#: [email protected]/ui/prefs-adw.ui:106
msgid "Email"
msgstr "E-Mail"

#: [email protected]/ui/prefs-adw.ui:107
#: [email protected]/ui/prefs-adw.ui:118
msgid "Name of .desktop files without .desktop ending"
msgstr "Name der .desktop-Dateien ohne .desktop-Endung"

#: [email protected]/ui/prefs-adw.ui:113
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:44
msgid "Overrides"
msgstr "Überschreibungen"

#: [email protected]/ui/prefs-adw.ui:117
msgid "Chat"
msgstr "Chat"

#: [email protected]/ui/templates-gtk4.ui:46
msgid "DEFAULT"
msgstr "STANDARD"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:10
msgid "Persisted window data serialized to JSON."
msgstr "Persistierte Fensterdaten, die in JSON serialisiert wurden."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:19
msgid "Startup Delay (ms)"
msgstr "Startverzögerung (ms)"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:20
msgid ""
"Period of time in milliseconds to wait between seeing a window and writing "
"it to the in-memory store."
msgstr "Zeitraum in Millisekunden, der zwischen dem Erkennen eines Fensters und dem Schreiben in den In-Memory-Speicher gewartet wird."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:24
msgid "Sync Frequency (ms)"
msgstr "Synchronisationsfrequenz (ms)"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:25
msgid ""
"Frequency in milliseconds to synchronize changes to active windows into the "
"in-memory store."
msgstr "Frequenz in Millisekunden, um Änderungen an aktiven Fenstern in den In-Memory-Speicher zu synchronisieren."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:29
msgid "Save Frequency (ms)"
msgstr "Speicherfrequenz (ms)"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:30
msgid "Frequency in milliseconds to persist the in-memory store to disk."
msgstr "Frequenz in Millisekunden, um den In-Memory-Speicher auf die Festplatte zu persistieren."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:35
msgid "Minimum threshold for matching restored windows."
msgstr "Mindestschwelle für die Übereinstimmung wiederhergestellter Fenster."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:39
msgid "Sync Mode"
msgstr "Synchronisationsmodus"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:45
msgid "Overrides for restored window data."
msgstr "Überschreibungen für wiederhergestellte Fensterdaten."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:50
msgid "Do not update saved window data."
msgstr "Gespeicherte Fensterdaten nicht aktualisieren."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:55
msgid "Follow apps when they are moved to another workspace."
msgstr "Apps folgen, wenn sie in einen anderen Arbeitsbereich verschoben werden."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:59
msgid "Ignore position"
msgstr "Position ignorieren"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:60
msgid "Do not restore windows' position."
msgstr "Fensterposition nicht wiederherstellen."

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:64
msgid "Ignore workspace"
msgstr "Arbeitsbereich ignorieren"

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:65
msgid "Do not restore windows' workspace."
msgstr "Arbeitsbereich der Fenster nicht wiederherstellen."
186 changes: 186 additions & 0 deletions po/smartautomove.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-13 19:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: [email protected]/ui/prefs-adw.ui:5
msgid "General"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:9
msgid "Settings"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:12
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:14
msgid "Debug Logging"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:13
#: [email protected]/ui/prefs-adw.ui:14
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:15
msgid "Write detailed logs about extension behavior."
msgstr ""

#: [email protected]/ui/prefs-adw.ui:19
msgid "Default Synchronization Mode"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:20
#: [email protected]/ui/prefs-adw.ui:21
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:40
msgid "Default mode when synchronizing windows."
msgstr ""

#: [email protected]/ui/prefs-adw.ui:25
#: [email protected]/ui/prefs-gtk4.ui:127
#: [email protected]/ui/templates-gtk4.ui:44
msgid "IGNORE"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:26
#: [email protected]/ui/prefs-gtk4.ui:128
#: [email protected]/ui/templates-gtk4.ui:45
msgid "RESTORE"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:34
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:34
msgid "Match Threshold"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:50
msgid "Sync Frequency (milliseconds)"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:57
#: [email protected]/ui/prefs-adw.ui:64
msgid "Save Frequency (milliseconds)"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:71
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:49
msgid "Freeze Saves"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:78
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:54
msgid "Activate Workspace"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:85
msgid "Ignore Position"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:92
msgid "Ignore Workspace"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:102
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:9
msgid "Saved Windows"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:106
msgid "Email"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:107
#: [email protected]/ui/prefs-adw.ui:118
msgid "Name of .desktop files without .desktop ending"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:113
#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:44
msgid "Overrides"
msgstr ""

#: [email protected]/ui/prefs-adw.ui:117
msgid "Chat"
msgstr ""

#: [email protected]/ui/templates-gtk4.ui:46
msgid "DEFAULT"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:10
msgid "Persisted window data serialized to JSON."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:19
msgid "Startup Delay (ms)"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:20
msgid ""
"Period of time in milliseconds to wait between seeing a window and writing "
"it to the in-memory store."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:24
msgid "Sync Frequency (ms)"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:25
msgid ""
"Frequency in milliseconds to synchronize changes to active windows into the "
"in-memory store."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:29
msgid "Save Frequency (ms)"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:30
msgid "Frequency in milliseconds to persist the in-memory store to disk."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:35
msgid "Minimum threshold for matching restored windows."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:39
msgid "Sync Mode"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:45
msgid "Overrides for restored window data."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:50
msgid "Do not update saved window data."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:55
msgid "Follow apps when they are moved to another workspace."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:59
msgid "Ignore position"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:60
msgid "Do not restore windows' position."
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:64
msgid "Ignore workspace"
msgstr ""

#: [email protected]/schemas/org.gnome.shell.extensions.smart-auto-move.gschema.xml:65
msgid "Do not restore windows' workspace."
msgstr ""
Loading

0 comments on commit ab84731

Please sign in to comment.