From 5482074a1dbbb006e7abcc552dbf6c3590bb60ef Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 11 Sep 2022 14:11:45 +0200 Subject: data/: Fix translation of .gschema.xml file. --- data/CMakeLists.txt | 7 ------- data/org.ayatana.indicator.power.gschema.xml | 24 ++++++++++++++++++++++++ data/org.ayatana.indicator.power.gschema.xml.in | 24 ------------------------ 3 files changed, 24 insertions(+), 31 deletions(-) create mode 100644 data/org.ayatana.indicator.power.gschema.xml delete mode 100644 data/org.ayatana.indicator.power.gschema.xml.in (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index e269b30..c445b3c 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -3,13 +3,6 @@ ## set (SCHEMA_NAME "org.ayatana.indicator.power.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.indicator.power.gschema.xml b/data/org.ayatana.indicator.power.gschema.xml new file mode 100644 index 0000000..1e30e31 --- /dev/null +++ b/data/org.ayatana.indicator.power.gschema.xml @@ -0,0 +1,24 @@ + + + + + + + + + false + Show time in Menu Bar + Whether or not to show the time in the menu bar. + + + false + Show percentage in Menu Bar + Whether or not to show the percentage in the menu bar. + + + "present" + When to show the battery status in the menu bar? + Options for when to show battery status. Valid options are "present", "charge", and "never". + + + diff --git a/data/org.ayatana.indicator.power.gschema.xml.in b/data/org.ayatana.indicator.power.gschema.xml.in deleted file mode 100644 index 867173a..0000000 --- a/data/org.ayatana.indicator.power.gschema.xml.in +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - false - <_summary>Show time in Menu Bar - <_description>Whether or not to show the time in the menu bar. - - - false - <_summary>Show percentage in Menu Bar - <_description>Whether or not to show the percentage in the menu bar. - - - "present" - <_summary>When to show the battery status in the menu bar? - <_description>Options for when to show battery status. Valid options are "present", "charge", and "never". - - - -- cgit v1.2.3