Skip to content

Commit f774bd6

Browse files
authored
build: don't translate gschemas (#200)
1 parent b3f9b1a commit f774bd6

29 files changed

+992
-1017
lines changed

po/POTFILES.in

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,3 @@ libcinnamon-desktop/gnome-rr-config.c
99
libcinnamon-desktop/gnome-rr-labeler.c
1010
libcinnamon-desktop/gnome-wall-clock.c
1111
libcvc/gvc-mixer-control.c
12-
schemas/org.cinnamon.desktop.a11y.applications.gschema.xml.in.in
13-
schemas/org.cinnamon.desktop.a11y.keyboard.gschema.xml.in.in
14-
schemas/org.cinnamon.desktop.a11y.magnifier.gschema.xml.in.in
15-
schemas/org.cinnamon.desktop.a11y.mouse.gschema.xml.in.in
16-
schemas/org.cinnamon.desktop.background.gschema.xml.in.in
17-
schemas/org.cinnamon.desktop.default-applications.gschema.xml.in.in
18-
schemas/org.cinnamon.desktop.input-sources.gschema.xml.in.in
19-
schemas/org.cinnamon.desktop.interface.gschema.xml.in.in
20-
schemas/org.cinnamon.desktop.keybindings.gschema.xml.in.in
21-
schemas/org.cinnamon.desktop.keybindings.media-keys.gschema.xml.in.in
22-
schemas/org.cinnamon.desktop.lockdown.gschema.xml.in.in
23-
schemas/org.cinnamon.desktop.media-handling.gschema.xml.in.in
24-
schemas/org.cinnamon.desktop.notifications.gschema.xml.in.in
25-
schemas/org.cinnamon.desktop.privacy.gschema.xml.in.in
26-
schemas/org.cinnamon.desktop.screensaver.gschema.xml.in.in
27-
schemas/org.cinnamon.desktop.session.gschema.xml.in.in
28-
schemas/org.cinnamon.desktop.sound.gschema.xml.in.in
29-
schemas/org.cinnamon.desktop.thumbnail-cache.gschema.xml.in.in
30-
schemas/org.cinnamon.desktop.thumbnailers.gschema.xml.in.in
31-
schemas/org.cinnamon.desktop.wm.preferences.gschema.xml.in.in

schemas/meson.build

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,16 @@ desktop_gschemas = [
2424

2525
gschema_conf = configuration_data()
2626
gschema_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))
27-
gschema_conf.set('GETTEXT_PACKAGE', gettext_package)
2827

2928
foreach schema : desktop_gschemas
30-
schema_file = 'org.cinnamon.desktop.' + schema + '.gschema.xml'
29+
schema_file = 'org.cinnamon.desktop.' + schema + '.gschema.xml'
3130

3231
schema_configured = configure_file(
33-
input : schema_file + '.in.in',
34-
output: schema_file + '.in',
35-
configuration : gschema_conf,
36-
install : false,
37-
)
38-
39-
schema_translated = custom_target(schema_file,
40-
input : schema_configured,
32+
input : schema_file + '.in',
4133
output: schema_file,
42-
command : ['intltool-merge', '--quiet', '--xml-style', '--utf8', po_subdir, '@INPUT@', '@OUTPUT@'],
34+
configuration : gschema_conf,
4335
install : true,
44-
install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
45-
build_by_default : true,
36+
install_dir : get_option('datadir') / 'glib-2.0' / 'schemas'
4637
)
4738

4839
endforeach
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<schemalist>
33
<schema id="org.cinnamon.desktop.a11y.applications" path="/org/cinnamon/desktop/a11y/applications/">
44
<key name="screen-keyboard-enabled" type="b">
55
<default>false</default>
6-
<_summary>On-screen keyboard</_summary>
7-
<_description>Whether the on-screen keyboard is turned on.</_description>
6+
<summary>On-screen keyboard</summary>
7+
<description>Whether the on-screen keyboard is turned on.</description>
88
</key>
99
<key name="screen-magnifier-enabled" type="b">
1010
<default>false</default>
11-
<_summary>Screen magnifier</_summary>
12-
<_description>Whether the screen magnifier is turned on.</_description>
11+
<summary>Screen magnifier</summary>
12+
<description>Whether the screen magnifier is turned on.</description>
1313
</key>
1414
<key name="screen-reader-enabled" type="b">
1515
<default>false</default>
16-
<_summary>Screen reader</_summary>
17-
<_description>Whether the screen reader is turned on.</_description>
16+
<summary>Screen reader</summary>
17+
<description>Whether the screen reader is turned on.</description>
1818
</key>
1919
</schema>
2020
</schemalist>
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<schemalist>
3+
<schema id="org.cinnamon.desktop.a11y.keyboard" path="/org/cinnamon/desktop/a11y/keyboard/">
4+
<key name="enable" type="b">
5+
<default>false</default>
6+
<summary>Enable accessibility keyboard shortcuts</summary>
7+
</key>
8+
<key name="feature-state-change-beep" type="b">
9+
<default>false</default>
10+
<summary>Beep when a keyboard accessibility feature changes</summary>
11+
<description>Whether to beep when a keyboard accessibility feature is enabled or disabled.</description>
12+
</key>
13+
<key name="timeout-enable" type="b">
14+
<default>false</default>
15+
<summary>Disable keyboard accessibility after a timeout</summary>
16+
<description>Whether to disable keyboard accessibility after a timeout, useful for shared machines.</description>
17+
</key>
18+
<key name="disable-timeout" type="i">
19+
<default>200</default>
20+
<summary>Duration of the disabling timeout</summary>
21+
<description>Duration of the timeout before disabling the keyboard accessibility.</description>
22+
</key>
23+
<key name="bouncekeys-enable" type="b">
24+
<default>false</default>
25+
<summary>Enable the bounce keys</summary>
26+
<description>Whether the bounce keys keyboard accessibility feature is turned on.</description>
27+
</key>
28+
<key name="bouncekeys-delay" type="i">
29+
<default>300</default>
30+
<summary>Minimum interval in milliseconds</summary>
31+
<description>Ignore multiple presses of the same key within this many milliseconds.</description>
32+
</key>
33+
<key name="bouncekeys-beep-reject" type="b">
34+
<default>false</default>
35+
<summary>Beep when a key is rejected</summary>
36+
<description>Whether to beep when a key is rejected.</description>
37+
</key>
38+
<key name="mousekeys-enable" type="b">
39+
<default>false</default>
40+
<summary>Enable mouse keys</summary>
41+
<description>Whether the mouse keys accessibility feature is turned on.</description>
42+
</key>
43+
<key name="mousekeys-max-speed" type="i">
44+
<default>10</default>
45+
<summary>Pixels per seconds</summary>
46+
<description>How many pixels per second to move at the maximum speed.</description>
47+
</key>
48+
<key name="mousekeys-accel-time" type="i">
49+
<default>300</default>
50+
<summary>How long to accelerate in milliseconds</summary>
51+
<description>How many milliseconds it takes to go from 0 to maximum speed.</description>
52+
</key>
53+
<key name="mousekeys-init-delay" type="i">
54+
<default>300</default>
55+
<summary>Initial delay in milliseconds</summary>
56+
<description>How many milliseconds to wait before mouse movement keys start to operate.</description>
57+
</key>
58+
<key name="slowkeys-enable" type="b">
59+
<default>false</default>
60+
<summary>Enable slow keys</summary>
61+
<description>Whether the slow keys accessibility feature is turned on.</description>
62+
</key>
63+
<key name="slowkeys-delay" type="i">
64+
<default>300</default>
65+
<summary>Minimum interval in milliseconds</summary>
66+
<description>Do not accept a key as being pressed unless held for this many milliseconds.</description>
67+
</key>
68+
<key name="slowkeys-beep-press" type="b">
69+
<default>false</default>
70+
<summary>Beep when a key is first pressed</summary>
71+
<description>Whether to beep when a key is first pressed.</description>
72+
</key>
73+
<key name="slowkeys-beep-accept" type="b">
74+
<default>false</default>
75+
<summary>Beep when a key is accepted</summary>
76+
<description>Whether to beep when a key is accepted.</description>
77+
</key>
78+
<key name="slowkeys-beep-reject" type="b">
79+
<default>false</default>
80+
<summary>Beep when a key is rejected</summary>
81+
<description>Whether to beep when a key is rejected.</description>
82+
</key>
83+
<key name="stickykeys-enable" type="b">
84+
<default>false</default>
85+
<summary>Enable sticky keys</summary>
86+
<description>Whether the sticky keys accessibility feature is turned on.</description>
87+
</key>
88+
<key name="stickykeys-two-key-off" type="b">
89+
<default>false</default>
90+
<summary>Disable when two keys are pressed at the same time</summary>
91+
<description>Whether to disable sticky keys if two keys are pressed at the same time.</description>
92+
</key>
93+
<key name="stickykeys-modifier-beep" type="b">
94+
<default>false</default>
95+
<summary>Beep when a modifier is pressed.</summary>
96+
<description>Whether to beep when a modifier key is pressed.</description>
97+
</key>
98+
<key name="togglekeys-enable-osd" type="b">
99+
<default>false</default>
100+
<summary>Enable toggle keys osd popups when num or capslock are changed</summary>
101+
<description>Whether the toggle keys osd accessibility feature is turned on.</description>
102+
</key>
103+
<key name="togglekeys-enable-beep" type="b">
104+
<default>false</default>
105+
<summary>Enable toggle keys sounds when num or capslock are changed</summary>
106+
<description>Whether the toggle keys beep accessibility feature is turned on.</description>
107+
</key>
108+
<key name="togglekeys-enable" type="b">
109+
<default>false</default>
110+
<summary>deprecated</summary>
111+
<description>deprecated</description>
112+
</key>
113+
<key name="togglekeys-sound-on" type="s">
114+
<default>'/usr/share/cinnamon/sounds/togglekeys-sound-on.ogg'</default>
115+
<summary>Sound to use when turning caps/num lock on</summary>
116+
</key>
117+
<key name="togglekeys-sound-off" type="s">
118+
<default>'/usr/share/cinnamon/sounds/togglekeys-sound-off.ogg'</default>
119+
<summary>Sound to use when turning caps/num lock off</summary>
120+
</key>
121+
</schema>
122+
</schemalist>

schemas/org.cinnamon.desktop.a11y.keyboard.gschema.xml.in.in

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)