[gnome-power-manager] gschema <description> and <summary> should be translatable



commit 38e67cf434ed6df277a61ff60559aebf73e3106a
Author: Christopher Aillon <caillon redhat com>
Date:   Sun Feb 20 16:13:09 2011 -0800

    gschema <description> and <summary> should be translatable
    
    GNOME Bug 640848

 data/Makefile.am                            |    8 +-
 data/org.gnome.power-manager.gschema.xml    |  218 ---------------------------
 data/org.gnome.power-manager.gschema.xml.in |  218 +++++++++++++++++++++++++++
 3 files changed, 224 insertions(+), 220 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index ef22dbf..29f1f96 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -21,7 +21,9 @@ $(service_DATA): $(service_in_files) Makefile
 	@sed -e "s|\ servicedir\@|$(bindir)|" $< > $@
 
 @GSETTINGS_RULES@
-gsettings_SCHEMAS = org.gnome.power-manager.gschema.xml
+ INTLTOOL_XML_NOMERGE_RULE@
+gsettings_schemas_in_files = org.gnome.power-manager.gschema.xml.in
+gsettings_SCHEMAS = $(gsettings_schemas_in_files:.gschema.xml.in=.gschema.xml)
 
 pkgdata_DATA =						\
 	gpm-statistics.ui				\
@@ -33,6 +35,7 @@ EXTRA_DIST =						\
 	$(service_in_files)				\
 	$(autostart_in_files)				\
 	$(desktop_in_files)				\
+	$(gsettings_schemas_in_files)			\
 	$(pkgdata_DATA)
 
 clean-local :
@@ -41,4 +44,5 @@ clean-local :
 DISTCLEANFILES =					\
 	gnome-power-manager.desktop			\
 	gnome-power-statistics.desktop			\
-	gnome-power-manager.service
+	gnome-power-manager.service			\
+	org.gnome.power-manager.gschema.xml
diff --git a/data/org.gnome.power-manager.gschema.xml.in b/data/org.gnome.power-manager.gschema.xml.in
new file mode 100644
index 0000000..58c7644
--- /dev/null
+++ b/data/org.gnome.power-manager.gschema.xml.in
@@ -0,0 +1,218 @@
+<schemalist>
+  <enum id="org.gnome.power-manager.IconPolicy">
+    <value nick="present" value="0"/>
+    <value nick="charge" value="1"/>
+    <value nick="low" value="2"/>
+    <value nick="critical" value="3"/>
+    <value nick="never" value="4"/>
+  </enum>
+  <schema id="org.gnome.power-manager" path="/apps/gnome-power-manager/">
+    <key name="backlight-enable" type="b">
+      <default>true</default>
+      <_summary>Allow backlight brightness adjustment</_summary>
+      <_description>If the screen brightness should be changed when switching between AC and battery power.</_description>
+    </key>
+    <key name="backlight-battery-reduce" type="b">
+      <default>true</default>
+      <_summary>Reduce the backlight brightness when on battery power</_summary>
+      <_description>If the screen should be reduced in brightness when the computer is on battery power.</_description>
+    </key>
+    <key name="brightness-dim-battery" type="i">
+      <default>50</default>
+      <_summary>LCD dimming amount when on battery</_summary>
+      <_description>The amount to dim the brightness of the display when on battery power. Possible values are between 0 and 100.</_description>
+    </key>
+    <key name="brightness-ac" type="d">
+      <default>1.0</default>
+      <_summary>LCD brightness when on AC</_summary>
+      <_description>The brightness of the display when on AC power. Possible values are between 0.0 and 1.0.</_description>
+    </key>
+    <key name="use-time-for-policy" type="b">
+      <default>true</default>
+      <_summary>Whether to use time-based notifications</_summary>
+      <_description>If time based notifications should be used. If set to false, then the percentage change is used instead, which may fix a broken ACPI BIOS.</_description>
+    </key>
+    <key name="lock-use-screensaver" type="b">
+      <default>true</default>
+      <_summary>Use gnome-screensaver lock setting</_summary>
+      <_description>Whether to use the screen lock setting of gnome-screensaver to decide if the screen is locked after a hibernate, suspend or blank screen.</_description>
+    </key>
+    <key name="lock-blank-screen" type="b">
+      <default>true</default>
+      <_summary>Lock screen when blanked</_summary>
+      <_description>Whether the screen is locked when the screen is turned off. Only used if lock-use-screensaver is false.</_description>
+    </key>
+    <key name="lock-suspend" type="b">
+      <default>true</default>
+      <_summary>Lock screen on suspend</_summary>
+      <_description>Whether the screen is locked when the computer wakes up from a suspend. Only used if lock-use-screensaver is false.</_description>
+    </key>
+    <key name="lock-hibernate" type="b">
+      <default>true</default>
+      <_summary>Lock screen on hibernate</_summary>
+      <_description>Whether the screen is locked when the computer wakes up from a hibernate. Only used if lock-use-screensaver is false.</_description>
+    </key>
+    <key name="lock-keyring-suspend" type="b">
+      <default>true</default>
+      <_summary>Lock GNOME keyring on sleep</_summary>
+      <_description>Whether the GNOME keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume.</_description>
+    </key>
+    <key name="lock-keyring-hibernate" type="b">
+      <default>true</default>
+      <_summary>Lock GNOME keyring on sleep</_summary>
+      <_description>Whether the GNOME keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume.</_description>
+    </key>
+    <key name="spindown-enable-ac" type="b">
+      <default>false</default>
+      <_summary>If the low-power mode should be enabled when on AC</_summary>
+      <_description>If the system low-power mode should be enabled when on AC power.</_description>
+    </key>
+    <key name="spindown-enable-battery" type="b">
+      <default>true</default>
+      <_summary>If the low-power mode should be enabled when on battery</_summary>
+      <_description>If the system low-power mode should be enabled when on laptop battery power.</_description>
+    </key>
+    <key name="spindown-timeout-ac" type="i">
+      <default>600</default>
+      <_summary>Seconds of inactivity to spin down when on AC</_summary>
+      <_description>The number of seconds of inactivity to spin down the disks when on AC power.</_description>
+    </key>
+    <key name="spindown-timeout-battery" type="i">
+      <default>60</default>
+      <_summary>Seconds of inactivity to spin down when on battery</_summary>
+      <_description>The number of seconds of inactivity to spin down the disks when on battery power.</_description>
+    </key>
+    <key name="notify-perhaps-recall" type="b">
+      <default>true</default>
+      <_summary>If we should show the recalled battery warning for a broken battery</_summary>
+      <_description>If we should show the recalled battery warning for a broken battery. Set this to false only if you know your battery is okay.</_description>
+    </key>
+    <key name="notify-low-capacity" type="b">
+      <default>true</default>
+      <_summary>If we should show the low capacity warning for a broken battery</_summary>
+      <_description>If we should show the low capacity warning for a broken battery.</_description>
+    </key>
+    <key name="notify-discharging" type="b">
+      <default>true</default>
+      <_summary>Notify when AC adapter is disconnected</_summary>
+      <_description>If the user should be notified when the AC adapter is disconnected.</_description>
+    </key>
+    <key name="notify-fully-charged" type="b">
+      <default>false</default>
+      <_summary>Notify when fully charged</_summary>
+      <_description>If a notification message should be displayed when the battery is fully charged.</_description>
+    </key>
+    <key name="notify-sleep-failed" type="b">
+      <default>true</default>
+      <_summary>Notify on a sleep failure</_summary>
+      <_description>If a notification message should be displayed after suspend or hibernate failed.</_description>
+    </key>
+    <key name="notify-sleep-failed-uri" type="s">
+      <default>''</default>
+      <_summary>The URI to show to the user on sleep failure</_summary>
+      <_description>When sleep fails we can show the user a button to help fix the situation. Leave this blank if the button should not be shown.</_description>
+    </key>
+    <key name="notify-low-power-system" type="b">
+      <default>true</default>
+      <_summary>Notify on a low power</_summary>
+      <_description>If a notification message should be displayed when the system battery or UPS is getting low.</_description>
+    </key>
+    <key name="notify-low-power-device" type="b">
+      <default>true</default>
+      <_summary>Notify on a low power</_summary>
+      <_description>If a notification message should be displayed when devices attached to the computer are getting low.</_description>
+    </key>
+    <key name="info-history-graph-points" type="b">
+      <default>true</default>
+      <_summary>Whether we should show the history data points</_summary>
+      <_description>Whether we should show the history data points in the statistics window.</_description>
+    </key>
+    <key name="info-history-graph-smooth" type="b">
+      <default>true</default>
+      <_summary>Whether we should smooth the history data</_summary>
+      <_description>Whether we should smooth the history data in the graph.</_description>
+    </key>
+    <key name="info-history-type" type="s">
+      <default>'power'</default>
+      <_summary>The default graph type to show for history</_summary>
+      <_description>The default graph type to show in the history window.</_description>
+    </key>
+    <key name="info-history-time" type="i">
+      <default>21600</default>
+      <_summary>The maximum time displayed for history</_summary>
+      <_description>The maximum duration of time displayed on the x-axis of the history graph.</_description>
+    </key>
+    <key name="info-stats-graph-points" type="b">
+      <default>true</default>
+      <_summary>Whether we should show the stats data points</_summary>
+      <_description>Whether we should show the stats data points in the statistics window.</_description>
+    </key>
+    <key name="info-stats-graph-smooth" type="b">
+      <default>true</default>
+      <_summary>Whether we should smooth the stats data</_summary>
+      <_description>Whether we should smooth the stats data in the graph.</_description>
+    </key>
+    <key name="info-stats-type" type="s">
+      <default>'power'</default>
+      <_summary>The default graph type to show for stats</_summary>
+      <_description>The default graph type to show in the stats window.</_description>
+    </key>
+    <key name="info-page-number" type="i">
+      <default>0</default>
+      <_summary>The index of the page number to show by default</_summary>
+      <_description>The index of the page number to show by default which is used to return focus to the correct page.</_description>
+    </key>
+    <key name="info-last-device" type="s">
+      <default>''</default>
+      <_summary>The ID of the last device selected</_summary>
+      <_description>The identifier of the last device which is used to return focus to the correct device.</_description>
+    </key>
+    <key name="percentage-low" type="i">
+      <default>10</default>
+      <_summary>Percentage considered low</_summary>
+      <_description>The percentage of the battery when it is considered low. Only valid when use-time-for-policy is false.</_description>
+    </key>
+    <key name="percentage-critical" type="i">
+      <default>3</default>
+      <_summary>Percentage considered critical</_summary>
+      <_description>The percentage of the battery when it is considered critical. Only valid when use-time-for-policy is false.</_description>
+    </key>
+    <key name="percentage-action" type="i">
+      <default>2</default>
+      <_summary>Percentage action is taken</_summary>
+      <_description>The percentage of the battery when the critical action is performed. Only valid when use-time-for-policy is false.</_description>
+    </key>
+    <key name="time-low" type="i">
+      <default>1200</default>
+      <_summary>The time remaining when low</_summary>
+      <_description>The time remaining in seconds of the battery when it is considered low. Only valid when use-time-for-policy is true.</_description>
+    </key>
+    <key name="time-critical" type="i">
+      <default>300</default>
+      <_summary>The time remaining when critical</_summary>
+      <_description>The time remaining in seconds of the battery when it is considered critical. Only valid when use-time-for-policy is true.</_description>
+    </key>
+    <key name="time-action" type="i">
+      <default>120</default>
+      <_summary>The time remaining when action is taken</_summary>
+      <_description>The time remaining in seconds of the battery when critical action is taken. Only valid when use-time-for-policy is true.</_description>
+    </key>
+    <key name="enable-sound" type="b">
+      <default>true</default>
+      <_summary>If sounds should be used</_summary>
+      <_description>If sounds should be used when the power is critically low, or inhibit requests have stopped the policy action.</_description>
+    </key>
+    <key name="show-actions" type="b">
+      <default>true</default>
+      <_summary>If preferences and statistics items should be shown in the context menu</_summary>
+    </key>
+    <key name="icon-policy" enum="org.gnome.power-manager.IconPolicy">
+      <aliases>
+        <alias value='always' target='present'/>
+      </aliases>
+      <default>'present'</default>
+      <_summary>When to show the notification icon</_summary>
+      <_description>Display options for the notification icon.</_description>
+    </key>
+  </schema>
+</schemalist>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]