[gnome-builder] build: make gschema translatable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: make gschema translatable
- Date: Tue, 26 Apr 2016 06:04:18 +0000 (UTC)
commit 9a88e593d4822d187d000140d5f8b3182a84ee96
Author: Christian Hergert <christian hergert me>
Date: Mon Apr 25 23:03:42 2016 -0700
build: make gschema translatable
configure.ac | 15 +++-
data/gsettings/Makefile.am | 6 --
.../org.gnome.builder.build.gschema.xml.in | 10 ++
.../org.gnome.builder.editor.gschema.xml.in | 94 ++++++++++++++++++++
...rg.gnome.builder.editor.language.gschema.xml.in | 34 +++++++
...org.gnome.builder.extension-type.gschema.xml.in | 9 ++
data/gsettings/org.gnome.builder.gschema.xml.in | 34 +++++++
.../org.gnome.builder.plugin.gschema.xml.in | 9 ++
.../org.gnome.builder.project-tree.gschema.xml.in | 19 ++++
.../org.gnome.builder.terminal.gschema.xml.in | 7 ++
.../org.gnome.builder.workbench.gschema.xml.in | 39 ++++++++
po/POTFILES.in | 10 ++
12 files changed, 278 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0100304..7525e4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,7 @@ dnl ***********************************************************************
AC_INIT([gnome-builder],
[builder_version],
[builder_bugreport_url],
+ [gnome-builder],
[https://wiki.gnome.org/Apps/Builder])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/main.c])
@@ -57,8 +58,8 @@ dnl ***********************************************************************
AX_REQUIRE_DEFINED([IT_PROG_INTLTOOL])
IT_PROG_INTLTOOL([0.50.1])
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
-AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
+AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
@@ -474,7 +475,6 @@ AC_CONFIG_FILES([
data/Makefile
data/fonts/Makefile
- data/gsettings/org.gnome.builder.code-insight.gschema.xml
data/gsettings/Makefile
data/icons/Makefile
data/icons/hicolor/Makefile
@@ -483,6 +483,17 @@ AC_CONFIG_FILES([
data/template-glib-1.0.pc
data/org.gnome.Builder.desktop.in
+ data/gsettings/org.gnome.builder.build.gschema.xml
+ data/gsettings/org.gnome.builder.code-insight.gschema.xml
+ data/gsettings/org.gnome.builder.editor.gschema.xml
+ data/gsettings/org.gnome.builder.editor.language.gschema.xml
+ data/gsettings/org.gnome.builder.extension-type.gschema.xml
+ data/gsettings/org.gnome.builder.gschema.xml
+ data/gsettings/org.gnome.builder.plugin.gschema.xml
+ data/gsettings/org.gnome.builder.project-tree.gschema.xml
+ data/gsettings/org.gnome.builder.terminal.gschema.xml
+ data/gsettings/org.gnome.builder.workbench.gschema.xml
+
doc/Makefile
doc/examples/Makefile
doc/examples/scripts/Makefile
diff --git a/data/gsettings/Makefile.am b/data/gsettings/Makefile.am
index 853a020..e23a787 100644
--- a/data/gsettings/Makefile.am
+++ b/data/gsettings/Makefile.am
@@ -15,10 +15,4 @@ gsettings_SCHEMAS = \
@GSETTINGS_RULES@
-EXTRA_DIST = $(gsettings_SCHEMAS)
-
-GITIGNOREFILES = \
- org.gnome.builder.code-insight.gschema.xml \
- $(NULL)
-
-include $(top_srcdir)/git.mk
diff --git a/data/gsettings/org.gnome.builder.build.gschema.xml.in
b/data/gsettings/org.gnome.builder.build.gschema.xml.in
new file mode 100644
index 0000000..0a7ce7f
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.build.gschema.xml.in
@@ -0,0 +1,10 @@
+<schemalist>
+ <schema id="org.gnome.builder.build" path="/org/gnome/builder/build/" gettext-domain="gnome-builder">
+ <key name="parallel" type="i">
+ <default>-1</default>
+ <range min="-1" max="512"/>
+ <summary>Build Parallelism</summary>
+ <description>Number of workers to use when performing builds. -1 for sensible default. 0 for number of
CPU.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.editor.gschema.xml.in
b/data/gsettings/org.gnome.builder.editor.gschema.xml.in
new file mode 100644
index 0000000..864a41b
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.editor.gschema.xml.in
@@ -0,0 +1,94 @@
+<schemalist>
+
+ <flags id="org.gnome.builder.editor.DrawSpaces">
+ <value nick="space" value="1"/>
+ <value nick="tab" value="2"/>
+ <value nick="newline" value="4"/>
+ <value nick="nbsp" value="8"/>
+ <value nick="leading" value="16"/>
+ <value nick="text" value="32"/>
+ <value nick="trailing" value="64"/>
+ </flags>
+
+ <schema id="org.gnome.builder.editor" path="/org/gnome/builder/editor/" gettext-domain="gnome-builder">
+ <key name="keybindings" type="s">
+ <choices>
+ <choice value="default"/>
+ <choice value="emacs"/>
+ <choice value="vim"/>
+ </choices>
+ <default>'default'</default>
+ </key>
+ <key name="restore-insert-mark" type="b">
+ <default>true</default>
+ <summary>Restore last position</summary>
+ <description>Jump to the last position when reopening a file</description>
+ </key>
+ <key name="show-line-changes" type="b">
+ <default>true</default>
+ <summary>Show modified lines</summary>
+ <description>If enabled, the editor will show line additions and changes next to the source
code.</description>
+ </key>
+ <key name="highlight-current-line" type="b">
+ <default>false</default>
+ <summary>Highlight current line</summary>
+ <description>If enabled, the editor will highlight the line containing the cursor.</description>
+ </key>
+ <key name="highlight-matching-brackets" type="b">
+ <default>false</default>
+ <summary>Highlight matching brackets</summary>
+ <description>If enabled, the editor will highlight matching brackets.</description>
+ </key>
+ <key name="show-line-numbers" type="b">
+ <default>true</default>
+ <summary>Show line numbers</summary>
+ <description>If enabled, the editor will show line numbers.</description>
+ </key>
+ <key name="smart-backspace" type="b">
+ <default>true</default>
+ <summary>Smart Backspace</summary>
+ <description>Backspace will remove additional spaces to keep you aligned to the indentation
size.</description>
+ </key>
+ <key name="smart-home-end" type="b">
+ <default>true</default>
+ <summary>Smart Home and End</summary>
+ <description>Whether or not Home moves to first non-space character.</description>
+ </key>
+ <key name="show-grid-lines" type="b">
+ <default>true</default>
+ <summary>Show grid lines</summary>
+ <description>If enabled, the editor will show grid lines in the document.</description>
+ </key>
+ <key name="font-name" type="s">
+ <default>"Monospace 11"</default>
+ </key>
+ <key name="style-scheme-name" type="s">
+ <default>"builder"</default>
+ </key>
+ <key name="scroll-offset" type="i">
+ <range min="0" max="999"/>
+ <default>0</default>
+ </key>
+ <key name="show-map" type="b">
+ <default>false</default>
+ <summary>Show overview map</summary>
+ <description>If enabled, Builder will display an overview map of the source file next to the
editor.</description>
+ </key>
+ <key name="auto-hide-map" type="b">
+ <default>false</default>
+ <summary>Automatically Hide Overview Map</summary>
+ <description>If enabled, Builder will automatically hide the overview map when mouse focus leaves the
editor, or a timeout occurs.</description>
+ </key>
+ <key name="draw-spaces" flags="org.gnome.builder.editor.DrawSpaces">
+ <default>[]</default>
+ <summary>Draw Spaces</summary>
+ <description>The various types of space to draw in the editor.</description>
+ </key>
+ <key name="overscroll" type="i">
+ <default>10</default>
+ <range min="-999" max="999"/>
+ <summary>Overscroll</summary>
+ <description>The number of lines to scroll beyond the end of the buffer.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.editor.language.gschema.xml.in
b/data/gsettings/org.gnome.builder.editor.language.gschema.xml.in
new file mode 100644
index 0000000..1129aa5
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.editor.language.gschema.xml.in
@@ -0,0 +1,34 @@
+<schemalist>
+ <schema id="org.gnome.builder.editor.language" gettext-domain="gnome-builder">
+ <key name="auto-indent" type="b">
+ <default>true</default>
+ </key>
+ <key name="indent-width" type="i">
+ <range min="-1" max="32"/>
+ <default>-1</default>
+ </key>
+ <key name="insert-spaces-instead-of-tabs" type="b">
+ <default>false</default>
+ </key>
+ <key name="insert-matching-brace" type="b">
+ <default>false</default>
+ </key>
+ <key name="overwrite-braces" type="b">
+ <default>true</default>
+ </key>
+ <key name="show-right-margin" type="b">
+ <default>true</default>
+ </key>
+ <key name="right-margin-position" type="i">
+ <range min="32" max="500"/>
+ <default>80</default>
+ </key>
+ <key name="tab-width" type="i">
+ <range min="1" max="120"/>
+ <default>8</default>
+ </key>
+ <key name="trim-trailing-whitespace" type="b">
+ <default>true</default>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.extension-type.gschema.xml.in
b/data/gsettings/org.gnome.builder.extension-type.gschema.xml.in
new file mode 100644
index 0000000..b80271a
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.extension-type.gschema.xml.in
@@ -0,0 +1,9 @@
+<schemalist>
+ <schema id="org.gnome.builder.extension-type" gettext-domain="gnome-builder">
+ <key name="enabled" type="b">
+ <default>true</default>
+ <summary>Enabled</summary>
+ <description>If the type within the extension is enabled.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.gschema.xml.in b/data/gsettings/org.gnome.builder.gschema.xml.in
new file mode 100644
index 0000000..95f1f25
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.gschema.xml.in
@@ -0,0 +1,34 @@
+<schemalist>
+ <schema id="org.gnome.builder" path="/org/gnome/builder/" gettext-domain="gnome-builder">
+ <key name="window-size" type="(ii)">
+ <default>(-1, -1)</default>
+ <summary>Window size</summary>
+ <description>Window size (width and height).</description>
+ </key>
+ <key name="window-position" type="(ii)">
+ <default>(-1,-1)</default>
+ <summary>Window position</summary>
+ <description>Window position (x and y).</description>
+ </key>
+ <key name="window-maximized" type="b">
+ <default>true</default>
+ <summary>Window maximized</summary>
+ <description>Window maximized state</description>
+ </key>
+ <key name="night-mode" type="b">
+ <default>false</default>
+ <summary>Night Mode</summary>
+ <description>Prefer dark application chrome.</description>
+ </key>
+ <key name="enable-project-miners" type="b">
+ <default>true</default>
+ <summary>Mine projects</summary>
+ <description>Search directories for projects.</description>
+ </key>
+ <key name="projects-directory" type="s">
+ <default>"Projects"</default>
+ <summary>Projects directory</summary>
+ <description>Directory for all builder projects</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.plugin.gschema.xml.in
b/data/gsettings/org.gnome.builder.plugin.gschema.xml.in
new file mode 100644
index 0000000..28b3df4
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.plugin.gschema.xml.in
@@ -0,0 +1,9 @@
+<schemalist>
+ <schema id="org.gnome.builder.plugin" gettext-domain="gnome-builder">
+ <key name="enabled" type="b">
+ <default>true</default>
+ <summary>Enabled</summary>
+ <description>If the plugin should be enabled</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.project-tree.gschema.xml.in
b/data/gsettings/org.gnome.builder.project-tree.gschema.xml.in
new file mode 100644
index 0000000..25f7f4b
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.project-tree.gschema.xml.in
@@ -0,0 +1,19 @@
+<schemalist>
+ <schema id="org.gnome.builder.project-tree" path="/org/gnome/builder/project-tree/"
gettext-domain="gnome-builder">
+ <key name="show" type="b">
+ <default>true</default>
+ <summary>Show Project Sidebar</summary>
+ <description>If enabled, the sidebar will be visible in the editor workspace.</description>
+ </key>
+ <key name="show-icons" type="b">
+ <default>true</default>
+ <summary>Show Icons</summary>
+ <description>If enabled, the project tree will display icons next to each item.</description>
+ </key>
+ <key name="show-ignored-files" type="b">
+ <default>false</default>
+ <summary>Show Ignored Files</summary>
+ <description>If enabled, the project tree will display files that are ignored by the VCS.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.terminal.gschema.xml.in
b/data/gsettings/org.gnome.builder.terminal.gschema.xml.in
new file mode 100644
index 0000000..8b9d4aa
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.terminal.gschema.xml.in
@@ -0,0 +1,7 @@
+<schemalist>
+ <schema id="org.gnome.builder.terminal" path="/org/gnome/builder/terminal/" gettext-domain="gnome-builder">
+ <key name="font-name" type="s">
+ <default>"Monospace 11"</default>
+ </key>
+ </schema>
+</schemalist>
diff --git a/data/gsettings/org.gnome.builder.workbench.gschema.xml.in
b/data/gsettings/org.gnome.builder.workbench.gschema.xml.in
new file mode 100644
index 0000000..d957396
--- /dev/null
+++ b/data/gsettings/org.gnome.builder.workbench.gschema.xml.in
@@ -0,0 +1,39 @@
+<schemalist>
+ <schema id="org.gnome.builder.workbench" path="/org/gnome/builder/workbench/"
gettext-domain="gnome-builder">
+ <key name="left-visible" type="b">
+ <default>true</default>
+ <summary>Show Left Panel</summary>
+ <description>If enabled, the left panel will be displayed.</description>
+ </key>
+ <key name="left-position" type="i">
+ <range min="1" max="1000"/>
+ <default>250</default>
+ <summary>Left Panel Position</summary>
+ <description>The width in pixel units of the left panel.</description>
+ </key>
+
+ <key name="right-visible" type="b">
+ <default>true</default>
+ <summary>Show Right Panel</summary>
+ <description>If enabled, the right panel will be displayed.</description>
+ </key>
+ <key name="right-position" type="i">
+ <range min="1" max="1000"/>
+ <default>250</default>
+ <summary>Right Panel Position</summary>
+ <description>The width in pixel units of the right panel.</description>
+ </key>
+
+ <key name="bottom-visible" type="b">
+ <default>true</default>
+ <summary>Show Bottom Panel</summary>
+ <description>If enabled, the bottom panel will be displayed.</description>
+ </key>
+ <key name="bottom-position" type="i">
+ <range min="1" max="1000"/>
+ <default>200</default>
+ <summary>Bottom Panel Position</summary>
+ <description>The width in pixel units of the bottom panel.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 28ce538..f68f543 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -11,6 +11,16 @@ contrib/tmpl/tmpl-template-locator.c
contrib/xml/xml-reader.c
data/org.gnome.Builder.appdata.xml.in
data/org.gnome.Builder.desktop.in.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.build.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.code-insight.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.editor.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.editor.language.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.extension-type.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.plugin.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.project-tree.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.terminal.gschema.xml.in
+[type: gettext/gsettings]data/gsettings/org.gnome.builder.workbench.gschema.xml.in
[type: gettext/glade]data/gtk/menus.ui
data/style-schemes/builder-dark.xml
data/style-schemes/builder.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]