Skip to content

Commit

Permalink
build: don't translate gschemas (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
okaestne committed Nov 8, 2021
1 parent b3f9b1a commit f774bd6
Show file tree
Hide file tree
Showing 29 changed files with 992 additions and 1,017 deletions.
20 changes: 0 additions & 20 deletions po/POTFILES.in
Expand Up @@ -9,23 +9,3 @@ libcinnamon-desktop/gnome-rr-config.c
libcinnamon-desktop/gnome-rr-labeler.c
libcinnamon-desktop/gnome-wall-clock.c
libcvc/gvc-mixer-control.c
schemas/org.cinnamon.desktop.a11y.applications.gschema.xml.in.in
schemas/org.cinnamon.desktop.a11y.keyboard.gschema.xml.in.in
schemas/org.cinnamon.desktop.a11y.magnifier.gschema.xml.in.in
schemas/org.cinnamon.desktop.a11y.mouse.gschema.xml.in.in
schemas/org.cinnamon.desktop.background.gschema.xml.in.in
schemas/org.cinnamon.desktop.default-applications.gschema.xml.in.in
schemas/org.cinnamon.desktop.input-sources.gschema.xml.in.in
schemas/org.cinnamon.desktop.interface.gschema.xml.in.in
schemas/org.cinnamon.desktop.keybindings.gschema.xml.in.in
schemas/org.cinnamon.desktop.keybindings.media-keys.gschema.xml.in.in
schemas/org.cinnamon.desktop.lockdown.gschema.xml.in.in
schemas/org.cinnamon.desktop.media-handling.gschema.xml.in.in
schemas/org.cinnamon.desktop.notifications.gschema.xml.in.in
schemas/org.cinnamon.desktop.privacy.gschema.xml.in.in
schemas/org.cinnamon.desktop.screensaver.gschema.xml.in.in
schemas/org.cinnamon.desktop.session.gschema.xml.in.in
schemas/org.cinnamon.desktop.sound.gschema.xml.in.in
schemas/org.cinnamon.desktop.thumbnail-cache.gschema.xml.in.in
schemas/org.cinnamon.desktop.thumbnailers.gschema.xml.in.in
schemas/org.cinnamon.desktop.wm.preferences.gschema.xml.in.in
17 changes: 4 additions & 13 deletions schemas/meson.build
Expand Up @@ -24,25 +24,16 @@ desktop_gschemas = [

gschema_conf = configuration_data()
gschema_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))
gschema_conf.set('GETTEXT_PACKAGE', gettext_package)

foreach schema : desktop_gschemas
schema_file = 'org.cinnamon.desktop.' + schema + '.gschema.xml'
schema_file = 'org.cinnamon.desktop.' + schema + '.gschema.xml'

schema_configured = configure_file(
input : schema_file + '.in.in',
output: schema_file + '.in',
configuration : gschema_conf,
install : false,
)

schema_translated = custom_target(schema_file,
input : schema_configured,
input : schema_file + '.in',
output: schema_file,
command : ['intltool-merge', '--quiet', '--xml-style', '--utf8', po_subdir, '@INPUT@', '@OUTPUT@'],
configuration : gschema_conf,
install : true,
install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
build_by_default : true,
install_dir : get_option('datadir') / 'glib-2.0' / 'schemas'
)

endforeach
@@ -1,20 +1,20 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="org.cinnamon.desktop.a11y.applications" path="/org/cinnamon/desktop/a11y/applications/">
<key name="screen-keyboard-enabled" type="b">
<default>false</default>
<_summary>On-screen keyboard</_summary>
<_description>Whether the on-screen keyboard is turned on.</_description>
<summary>On-screen keyboard</summary>
<description>Whether the on-screen keyboard is turned on.</description>
</key>
<key name="screen-magnifier-enabled" type="b">
<default>false</default>
<_summary>Screen magnifier</_summary>
<_description>Whether the screen magnifier is turned on.</_description>
<summary>Screen magnifier</summary>
<description>Whether the screen magnifier is turned on.</description>
</key>
<key name="screen-reader-enabled" type="b">
<default>false</default>
<_summary>Screen reader</_summary>
<_description>Whether the screen reader is turned on.</_description>
<summary>Screen reader</summary>
<description>Whether the screen reader is turned on.</description>
</key>
</schema>
</schemalist>
122 changes: 122 additions & 0 deletions schemas/org.cinnamon.desktop.a11y.keyboard.gschema.xml.in
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="org.cinnamon.desktop.a11y.keyboard" path="/org/cinnamon/desktop/a11y/keyboard/">
<key name="enable" type="b">
<default>false</default>
<summary>Enable accessibility keyboard shortcuts</summary>
</key>
<key name="feature-state-change-beep" type="b">
<default>false</default>
<summary>Beep when a keyboard accessibility feature changes</summary>
<description>Whether to beep when a keyboard accessibility feature is enabled or disabled.</description>
</key>
<key name="timeout-enable" type="b">
<default>false</default>
<summary>Disable keyboard accessibility after a timeout</summary>
<description>Whether to disable keyboard accessibility after a timeout, useful for shared machines.</description>
</key>
<key name="disable-timeout" type="i">
<default>200</default>
<summary>Duration of the disabling timeout</summary>
<description>Duration of the timeout before disabling the keyboard accessibility.</description>
</key>
<key name="bouncekeys-enable" type="b">
<default>false</default>
<summary>Enable the bounce keys</summary>
<description>Whether the bounce keys keyboard accessibility feature is turned on.</description>
</key>
<key name="bouncekeys-delay" type="i">
<default>300</default>
<summary>Minimum interval in milliseconds</summary>
<description>Ignore multiple presses of the same key within this many milliseconds.</description>
</key>
<key name="bouncekeys-beep-reject" type="b">
<default>false</default>
<summary>Beep when a key is rejected</summary>
<description>Whether to beep when a key is rejected.</description>
</key>
<key name="mousekeys-enable" type="b">
<default>false</default>
<summary>Enable mouse keys</summary>
<description>Whether the mouse keys accessibility feature is turned on.</description>
</key>
<key name="mousekeys-max-speed" type="i">
<default>10</default>
<summary>Pixels per seconds</summary>
<description>How many pixels per second to move at the maximum speed.</description>
</key>
<key name="mousekeys-accel-time" type="i">
<default>300</default>
<summary>How long to accelerate in milliseconds</summary>
<description>How many milliseconds it takes to go from 0 to maximum speed.</description>
</key>
<key name="mousekeys-init-delay" type="i">
<default>300</default>
<summary>Initial delay in milliseconds</summary>
<description>How many milliseconds to wait before mouse movement keys start to operate.</description>
</key>
<key name="slowkeys-enable" type="b">
<default>false</default>
<summary>Enable slow keys</summary>
<description>Whether the slow keys accessibility feature is turned on.</description>
</key>
<key name="slowkeys-delay" type="i">
<default>300</default>
<summary>Minimum interval in milliseconds</summary>
<description>Do not accept a key as being pressed unless held for this many milliseconds.</description>
</key>
<key name="slowkeys-beep-press" type="b">
<default>false</default>
<summary>Beep when a key is first pressed</summary>
<description>Whether to beep when a key is first pressed.</description>
</key>
<key name="slowkeys-beep-accept" type="b">
<default>false</default>
<summary>Beep when a key is accepted</summary>
<description>Whether to beep when a key is accepted.</description>
</key>
<key name="slowkeys-beep-reject" type="b">
<default>false</default>
<summary>Beep when a key is rejected</summary>
<description>Whether to beep when a key is rejected.</description>
</key>
<key name="stickykeys-enable" type="b">
<default>false</default>
<summary>Enable sticky keys</summary>
<description>Whether the sticky keys accessibility feature is turned on.</description>
</key>
<key name="stickykeys-two-key-off" type="b">
<default>false</default>
<summary>Disable when two keys are pressed at the same time</summary>
<description>Whether to disable sticky keys if two keys are pressed at the same time.</description>
</key>
<key name="stickykeys-modifier-beep" type="b">
<default>false</default>
<summary>Beep when a modifier is pressed.</summary>
<description>Whether to beep when a modifier key is pressed.</description>
</key>
<key name="togglekeys-enable-osd" type="b">
<default>false</default>
<summary>Enable toggle keys osd popups when num or capslock are changed</summary>
<description>Whether the toggle keys osd accessibility feature is turned on.</description>
</key>
<key name="togglekeys-enable-beep" type="b">
<default>false</default>
<summary>Enable toggle keys sounds when num or capslock are changed</summary>
<description>Whether the toggle keys beep accessibility feature is turned on.</description>
</key>
<key name="togglekeys-enable" type="b">
<default>false</default>
<summary>deprecated</summary>
<description>deprecated</description>
</key>
<key name="togglekeys-sound-on" type="s">
<default>'/usr/share/cinnamon/sounds/togglekeys-sound-on.ogg'</default>
<summary>Sound to use when turning caps/num lock on</summary>
</key>
<key name="togglekeys-sound-off" type="s">
<default>'/usr/share/cinnamon/sounds/togglekeys-sound-off.ogg'</default>
<summary>Sound to use when turning caps/num lock off</summary>
</key>
</schema>
</schemalist>
122 changes: 0 additions & 122 deletions schemas/org.cinnamon.desktop.a11y.keyboard.gschema.xml.in.in

This file was deleted.

0 comments on commit f774bd6

Please sign in to comment.