diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-02-18 23:20:42 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-02-18 23:20:42 +0200 |
commit | 7557dfd9393eefc9bb65e1f43059227cfc7e22db (patch) | |
tree | 2cfd383e54be4da3d431bbe209976726870a312c /data | |
parent | 0ec72c75e3348cccedfb2f6adaf6aea899035f98 (diff) | |
download | metacity-7557dfd9393eefc9bb65e1f43059227cfc7e22db.tar.gz |
use upstream gettext & itstool
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 3 | ||||
-rw-r--r-- | data/applications/Makefile.am | 22 | ||||
-rw-r--r-- | data/applications/metacity.desktop.in | 17 | ||||
-rw-r--r-- | data/keybindings/50-metacity-navigation.xml | 80 | ||||
-rw-r--r-- | data/keybindings/50-metacity-system.xml | 14 | ||||
-rw-r--r-- | data/keybindings/50-metacity-windows.xml | 64 | ||||
-rw-r--r-- | data/keybindings/Makefile.am | 19 | ||||
-rw-r--r-- | data/keybindings/keybindings.its | 10 | ||||
-rw-r--r-- | data/keybindings/keybindings.pot | 246 | ||||
-rw-r--r-- | data/schemas/Makefile.am | 17 | ||||
-rw-r--r-- | data/schemas/org.gnome.metacity.gschema.xml | 93 |
11 files changed, 585 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 38625224..7cb5ad54 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,7 +1,10 @@ NULL = SUBDIRS = \ + applications \ + keybindings \ pkgconfig \ + schemas \ ui \ $(NULL) diff --git a/data/applications/Makefile.am b/data/applications/Makefile.am new file mode 100644 index 00000000..369846a1 --- /dev/null +++ b/data/applications/Makefile.am @@ -0,0 +1,22 @@ +NULL = + +desktop_in_files = \ + metacity.desktop.in \ + $(NULL) + +desktopdir=$(datadir)/applications +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) + +%.desktop: %.desktop.in + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \ + -d $(top_srcdir)/po && mv $@-t $@ + +EXTRA_DIST = \ + $(desktop_in_files) \ + $(NULL) + +CLEANFILES = \ + $(desktop_DATA) \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/data/applications/metacity.desktop.in b/data/applications/metacity.desktop.in new file mode 100644 index 00000000..bb53bb29 --- /dev/null +++ b/data/applications/metacity.desktop.in @@ -0,0 +1,17 @@ +[Desktop Entry] +Type=Application +Name=Metacity +Exec=metacity +NoDisplay=true +# name of loadable control center module +X-GNOME-WMSettingsModule=metacity +# name we put on the WM spec check window +X-GNOME-WMName=Metacity +# back compat only +X-GnomeWMSettingsLibrary=metacity +X-GNOME-Bugzilla-Bugzilla=GNOME +X-GNOME-Bugzilla-Product=metacity +X-GNOME-Bugzilla-Component=general +X-GNOME-Autostart-Phase=WindowManager +X-GNOME-Provides=windowmanager +X-GNOME-Autostart-Notify=true diff --git a/data/keybindings/50-metacity-navigation.xml b/data/keybindings/50-metacity-navigation.xml new file mode 100644 index 00000000..4311ce6a --- /dev/null +++ b/data/keybindings/50-metacity-navigation.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<KeyListEntries schema="org.gnome.desktop.wm.keybindings" + group="system" + name="Navigation" + wm_name="Metacity" + package="metacity"> + + <KeyListEntry name="move-to-workspace-1" + description="Move window to workspace 1" /> + + <KeyListEntry name="move-to-workspace-2" + description="Move window to workspace 2" /> + + <KeyListEntry name="move-to-workspace-3" + description="Move window to workspace 3" /> + + <KeyListEntry name="move-to-workspace-4" + description="Move window to workspace 4" /> + + <KeyListEntry name="move-to-workspace-left" + description="Move window one workspace to the left" /> + + <KeyListEntry name="move-to-workspace-right" + description="Move window one workspace to the right" /> + + <KeyListEntry name="move-to-workspace-up" + description="Move window one workspace up" /> + + <KeyListEntry name="move-to-workspace-down" + description="Move window one workspace down" /> + + <KeyListEntry name="switch-windows" + description="Switch windows" /> + + <KeyListEntry name="switch-applications" + description="Switch applications" /> + + <KeyListEntry name="switch-group" + description="Switch windows of an application" /> + + <KeyListEntry name="switch-panels" + description="Switch system controls" /> + + <KeyListEntry name="cycle-windows" + description="Switch windows directly" /> + + <KeyListEntry name="cycle-group" + description="Switch windows of an app directly" /> + + <KeyListEntry name="cycle-panels" + description="Switch system controls directly" /> + + <KeyListEntry name="show-desktop" + description="Hide all normal windows" /> + + <KeyListEntry name="switch-to-workspace-1" + description="Switch to workspace 1" /> + + <KeyListEntry name="switch-to-workspace-2" + description="Switch to workspace 2" /> + + <KeyListEntry name="switch-to-workspace-3" + description="Switch to workspace 3" /> + + <KeyListEntry name="switch-to-workspace-4" + description="Switch to workspace 4" /> + + <KeyListEntry name="switch-to-workspace-left" + description="Move to workspace left" /> + + <KeyListEntry name="switch-to-workspace-right" + description="Move to workspace right" /> + + <KeyListEntry name="switch-to-workspace-up" + description="Move to workspace above" /> + + <KeyListEntry name="switch-to-workspace-down" + description="Move to workspace below" /> + +</KeyListEntries> diff --git a/data/keybindings/50-metacity-system.xml b/data/keybindings/50-metacity-system.xml new file mode 100644 index 00000000..d6ea705b --- /dev/null +++ b/data/keybindings/50-metacity-system.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<KeyListEntries schema="org.gnome.desktop.wm.keybindings" + group="system" + name="System" + wm_name="Metacity" + package="metacity"> + + <KeyListEntry name="panel-run-dialog" + description="Show the run command prompt" /> + + <KeyListEntry name="panel-main-menu" + description="Show the applications menu" /> + +</KeyListEntries> diff --git a/data/keybindings/50-metacity-windows.xml b/data/keybindings/50-metacity-windows.xml new file mode 100644 index 00000000..c7777890 --- /dev/null +++ b/data/keybindings/50-metacity-windows.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<KeyListEntries schema="org.gnome.desktop.wm.keybindings" + group="system" + name="Windows" + wm_name="Metacity" + package="metacity"> + + <KeyListEntry name="activate-window-menu" + description="Activate the window menu" /> + + <KeyListEntry name="toggle-fullscreen" + description="Toggle fullscreen mode" /> + + <KeyListEntry name="toggle-maximized" + description="Toggle maximization state" /> + + <KeyListEntry name="maximize" + description="Maximize window" /> + + <KeyListEntry name="unmaximize" + description="Restore window" /> + + <KeyListEntry name="toggle-shaded" + description="Toggle shaded state" /> + + <KeyListEntry name="close" + description="Close window" /> + + <KeyListEntry name="minimize" + description="Minimize window" /> + + <KeyListEntry name="begin-move" + description="Move window" /> + + <KeyListEntry name="begin-resize" + description="Resize window" /> + + <KeyListEntry name="toggle-on-all-workspaces" + description="Toggle window on all workspaces or one" /> + + <KeyListEntry name="raise-or-lower" + description="Raise window if covered, otherwise lower it" /> + + <KeyListEntry name="raise" + description="Raise window above other windows" /> + + <KeyListEntry name="lower" + description="Lower window below other windows" /> + + <KeyListEntry name="maximize-vertically" + description="Maximize window vertically" /> + + <KeyListEntry name="maximize-horizontally" + description="Maximize window horizontally" /> + + <KeyListEntry name="toggle-tiled-left" + schema="org.gnome.metacity.keybindings" + description="View split on left" /> + + <KeyListEntry name="toggle-tiled-right" + schema="org.gnome.metacity.keybindings" + description="View split on right" /> + +</KeyListEntries> diff --git a/data/keybindings/Makefile.am b/data/keybindings/Makefile.am new file mode 100644 index 00000000..82804f92 --- /dev/null +++ b/data/keybindings/Makefile.am @@ -0,0 +1,19 @@ +NULL = + +keybindingsdir = @GNOME_KEYBINDINGS_KEYSDIR@ +keybindings_DATA = \ + 50-metacity-navigation.xml \ + 50-metacity-system.xml \ + 50-metacity-windows.xml \ + $(NULL) + +keybindings.pot: $(keybindings_DATA) keybindings.its + $(AM_V_GEN) $(ITSTOOL) -i keybindings.its -o $@ $(keybindings_DATA) + +EXTRA_DIST = \ + $(keybindings_DATA) \ + keybindings.its \ + keybindings.pot \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/data/keybindings/keybindings.its b/data/keybindings/keybindings.its new file mode 100644 index 00000000..71336a2f --- /dev/null +++ b/data/keybindings/keybindings.its @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" + xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0" + version="2.0"> + <its:translateRule selector="/KeyListEntries" translate="no" /> + <its:translateRule selector="//KeyListEntries/@name" translate="yes" /> + + <its:translateRule selector="/KeyListEntry" translate="no" /> + <its:translateRule selector="//KeyListEntry/@description" translate="yes" /> +</its:rules> diff --git a/data/keybindings/keybindings.pot b/data/keybindings/keybindings.pot new file mode 100644 index 00000000..66c2e2bf --- /dev/null +++ b/data/keybindings/keybindings.pot @@ -0,0 +1,246 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2016-02-18 23:06+0200\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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: 50-metacity-navigation.xml/KeyListEntries@name +#: 50-metacity-navigation.xml:6 +msgid "Navigation" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:9 +msgid "Move window to workspace 1" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:12 +msgid "Move window to workspace 2" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:15 +msgid "Move window to workspace 3" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:18 +msgid "Move window to workspace 4" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:21 +msgid "Move window one workspace to the left" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:24 +msgid "Move window one workspace to the right" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:27 +msgid "Move window one workspace up" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:30 +msgid "Move window one workspace down" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:33 +msgid "Switch windows" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:36 +msgid "Switch applications" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:39 +msgid "Switch windows of an application" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:42 +msgid "Switch system controls" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:45 +msgid "Switch windows directly" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:48 +msgid "Switch windows of an app directly" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:51 +msgid "Switch system controls directly" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:54 +msgid "Hide all normal windows" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:57 +msgid "Switch to workspace 1" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:60 +msgid "Switch to workspace 2" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:63 +msgid "Switch to workspace 3" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:66 +msgid "Switch to workspace 4" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:69 +msgid "Move to workspace left" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:72 +msgid "Move to workspace right" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:75 +msgid "Move to workspace above" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-navigation.xml:78 +msgid "Move to workspace below" +msgstr "" + +#. (itstool) path: 50-metacity-system.xml/KeyListEntries@name +#: 50-metacity-system.xml:6 +msgid "System" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-system.xml:9 +msgid "Show the run command prompt" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-system.xml:12 +msgid "Show the applications menu" +msgstr "" + +#. (itstool) path: 50-metacity-windows.xml/KeyListEntries@name +#: 50-metacity-windows.xml:6 +msgid "Windows" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:9 +msgid "Activate the window menu" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:12 +msgid "Toggle fullscreen mode" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:15 +msgid "Toggle maximization state" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:18 +msgid "Maximize window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:21 +msgid "Restore window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:24 +msgid "Toggle shaded state" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:27 +msgid "Close window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:30 +msgid "Minimize window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:33 +msgid "Move window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:36 +msgid "Resize window" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:39 +msgid "Toggle window on all workspaces or one" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:42 +msgid "Raise window if covered, otherwise lower it" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:45 +msgid "Raise window above other windows" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:48 +msgid "Lower window below other windows" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:51 +msgid "Maximize window vertically" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:54 +msgid "Maximize window horizontally" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:58 +msgid "View split on left" +msgstr "" + +#. (itstool) path: KeyListEntries/KeyListEntry@description +#: 50-metacity-windows.xml:62 +msgid "View split on right" +msgstr "" + diff --git a/data/schemas/Makefile.am b/data/schemas/Makefile.am new file mode 100644 index 00000000..b3a48f45 --- /dev/null +++ b/data/schemas/Makefile.am @@ -0,0 +1,17 @@ +NULL = + +gsettings_SCHEMAS = \ + org.gnome.metacity.gschema.xml \ + $(NULL) + +@GSETTINGS_RULES@ + +EXTRA_DIST = \ + $(gsettings_SCHEMAS) \ + $(NULL) + +CLEANFILES = \ + *.gschema.valid \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/data/schemas/org.gnome.metacity.gschema.xml b/data/schemas/org.gnome.metacity.gschema.xml new file mode 100644 index 00000000..9f1952fe --- /dev/null +++ b/data/schemas/org.gnome.metacity.gschema.xml @@ -0,0 +1,93 @@ +<schemalist gettext-domain="metacity"> + + <enum id="org.gnome.metacity.MetaPlacementMode"> + <value nick="smart" value="0" /> + <value nick="cascade" value="1" /> + <value nick="center" value="2" /> + <value nick="origin" value="3" /> + <value nick="random" value="4" /> + </enum> + + <schema id="org.gnome.metacity" path="/org/gnome/metacity/"> + + <key name="compositing-manager" type="b"> + <default>true</default> + <summary>Compositing Manager</summary> + <description> + Determines whether Metacity is a compositing manager. + </description> + </key> + + <key name="reduced-resources" type="b"> + <default>false</default> + <summary>If true, trade off usability for less resource usage</summary> + <description> + If true, Metacity will give the user less feedback by using wireframes, + avoiding animations, or other means. This is a significant reduction + in usability for many users, but may allow legacy applications to + continue working, and may also be a useful tradeoff + for terminal servers. + + However, the wireframe feature is disabled when accessibility is on. + </description> + </key> + + <key name="edge-tiling" type="b"> + <default>true</default> + <summary>Enable edge tiling when dropping windows on screen edges</summary> + <description> + If enabled, dropping windows on vertical screen edges maximizes them + vertically and resizes them horizontally to cover half of the available + area. Dropping windows on the top screen edge maximizes them completely. + </description> + </key> + + <key name="placement-mode" enum="org.gnome.metacity.MetaPlacementMode"> + <default>'smart'</default> + <summary>Window placement behavior</summary> + <description> + Metacity's default window-placement behavior is smart (first-fit), + similar to behaviors in some other window managers. It will try to tile + windows so that they do not overlap. Set this option to "smart" for this + behavior. + + This option can be set to "center" to place new windows in the centers + of their workspaces, "origin" for the upper-left corners of the + workspaces, or "random" to place new windows at random locations within + their workspaces. + </description> + </key> + + <key name="alt-tab-thumbnails" type="b"> + <default>false</default> + <summary>Show window content thumbnail in Alt-Tab</summary> + <description> + If set to true, Metacity will show window content thumbnails in the + Alt-Tab window instead of only icons. + </description> + </key> + + <key name="theme" type="s"> + <default>'Adwaita'</default> + <summary>Current theme</summary> + <description> + The theme determines the appearance of window borders, titlebar, + and so forth. + </description> + </key> + + </schema> + + <schema id="org.gnome.metacity.keybindings" path="/org/gnome/metacity/keybindings/"> + + <key name="toggle-tiled-left" type="as"> + <default><![CDATA[['<Super>Left']]]></default> + </key> + + <key name="toggle-tiled-right" type="as"> + <default><![CDATA[['<Super>Right']]]></default> + </key> + + </schema> + +</schemalist> |