aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-09-08 22:53:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-09-08 22:56:36 +0200
commitb3a400f6db9a97b982915af2a9b4a3aacdf72c29 (patch)
treec0fb915d93e8fb836e4a9b76b59dcb02e5f596ec /data
parent98ae0c7fa6fa8f66605e72310e85e43ae82a3024 (diff)
downloadayatana-indicator-display-b3a400f6db9a97b982915af2a9b4a3aacdf72c29.tar.gz
ayatana-indicator-display-b3a400f6db9a97b982915af2a9b4a3aacdf72c29.tar.bz2
ayatana-indicator-display-b3a400f6db9a97b982915af2a9b4a3aacdf72c29.zip
data/: Rename org.ayatana.display.gschema.xml.in to org.ayatana.indicator.display.gschema.xml. Fix and simplify translations of .gschema.xml strings with it.
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt8
-rw-r--r--data/org.ayatana.indicator.display.gschema.xml (renamed from data/org.ayatana.display.gschema.xml.in)10
2 files changed, 6 insertions, 12 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 17ddf23..b7a68dc 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -4,14 +4,8 @@ find_package(GSettings)
## GSettings schema
##
-set (SCHEMA_NAME "org.ayatana.display.gschema.xml")
+set (SCHEMA_NAME "org.ayatana.indicator.display.gschema.xml")
set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}")
-set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in")
-
-# generate the .xml file using intltool
-find_package(Intltool REQUIRED)
-set (ENV{LC_ALL} "C")
-intltool_merge_translations("${SCHEMA_FILE_IN}" "${SCHEMA_FILE}" ALL UTF8 STYLE "xml" NO_TRANSLATIONS)
# let GSettings do the rest
find_package(GSettings REQUIRED)
diff --git a/data/org.ayatana.display.gschema.xml.in b/data/org.ayatana.indicator.display.gschema.xml
index afcd996..9afa253 100644
--- a/data/org.ayatana.display.gschema.xml.in
+++ b/data/org.ayatana.indicator.display.gschema.xml
@@ -10,15 +10,15 @@
<schema id="org.ayatana.indicator.display" path="/org/ayatana/indicator/display/">
<key name="rotation-lock" type="b">
<default>false</default>
- <_summary>Lock rotation</_summary>
- <_description>
+ <summary>Lock rotation</summary>
+ <description>
Lock automatic display rotation.
- </_description>
+ </description>
</key>
<key name="orientation-lock" enum="org.ayatana.indicator.display.ScreenOrientation">
<default>"none"</default>
- <_summary>Orientation lock</_summary>
- <_description>Locks orientation to a specific value.</_description>
+ <summary>Orientation lock</summary>
+ <description>Locks orientation to a specific value.</description>
</key>
</schema>
</schemalist>