summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/convert_to_satin.inx6
-rw-r--r--templates/embroider.inx14
-rw-r--r--templates/flip.inx8
-rw-r--r--templates/input.inx4
-rw-r--r--templates/install.inx8
-rw-r--r--templates/layer_commands.inx14
-rw-r--r--templates/object_commands.inx14
-rw-r--r--templates/output.inx4
-rw-r--r--templates/params.inx8
-rw-r--r--templates/print.inx8
-rw-r--r--templates/simulate.inx8
-rw-r--r--templates/zip.inx6
12 files changed, 60 insertions, 42 deletions
diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.inx
index 446e4b5c..50886d4a 100644
--- a/templates/convert_to_satin.inx
+++ b/templates/convert_to_satin.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>{% trans %}Convert Line to Satin{% endtrans %}</name>
- <id>org.inkstitch.convert_to_satin</id>
+ <id>org.inkstitch.convert_to_satin.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">convert_to_satin</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch" />
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/embroider.inx b/templates/embroider.inx
index f4a78d73..d89b4d6f 100644
--- a/templates/embroider.inx
+++ b/templates/embroider.inx
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>{% trans %}Embroider{% endtrans %}</name>
- <id>org.inkstitch.embroider</id>
+ <id>org.inkstitch.embroider.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
- <param name="collapse_len_mm" type="float" min="0.0" max="10.0" gui-text="{% trans %}Collapse length (mm){% endtrans %}" gui-description="{% trans %}Jump stitches smaller than this will be treated as normal stitches.{% endtrans %}">3.0</param>
- <param name="hide_layers" type="boolean" gui-text="{% trans %}Hide other layers{% endtrans %}" gui-description="{% trans %}Hide all other top-level layers when the embroidery layer is generated, in order to make stitching discernible.{% endtrans %}">true</param>
- <param name="output_format" type="optiongroup" gui-text="{% trans %}Output file format{% endtrans %}" appearance="minimal">
+ <param name="collapse_len_mm" type="float" min="0.0" max="10.0" _gui-text="{% trans %}Collapse length (mm){% endtrans %}" _gui-description="{% trans %}Jump stitches smaller than this will be treated as normal stitches.{% endtrans %}">3.0</param>
+ <param name="hide_layers" type="boolean" _gui-text="{% trans %}Hide other layers{% endtrans %}" _gui-description="{% trans %}Hide all other top-level layers when the embroidery layer is generated, in order to make stitching discernible.{% endtrans %}">true</param>
+ <param name="output_format" type="optiongroup" _gui-text="{% trans %}Output file format{% endtrans %}" appearance="minimal">
{% for format, description in formats %}
<_option value="{{ format }}">{{ _(description) }} ({{ format | upper }})</_option>
{% endfor %}
@@ -14,12 +14,14 @@
<_option value="{{ format }}">{{ _(description) }} ({{ format | upper }}) [{{ _("DEBUG") }}]</_option>
{% endfor %}
</param>
- <param name="path" type="string" gui-text="{% trans %}Directory{% endtrans %}" gui-description="{% trans %}Leave empty to save the output in Inkscape's extension directory.{% endtrans %}"></param>
+ <param name="path" type="string" _gui-text="{% trans %}Directory{% endtrans %}" _gui-description="{% trans %}Leave empty to save the output in Inkscape's extension directory.{% endtrans %}"></param>
<param name="extension" type="string" gui-hidden="true">embroider</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/flip.inx b/templates/flip.inx
index 6ce7c6ef..22bcdd36 100644
--- a/templates/flip.inx
+++ b/templates/flip.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Flip Satin Columns{% endtrans %}</name>
- <id>org.inkstitch.flip_satins</id>
+ <name>{% trans %}Flip Satin Columns{% endtrans %}</_name>
+ <id>org.inkstitch.flip_satins.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">flip</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/input.inx b/templates/input.inx
index 1e50d841..d2a0d678 100644
--- a/templates/input.inx
+++ b/templates/input.inx
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{{ format | upper }} file input</name>
- <id>org.inkstitch.input.{{ format }}</id>
+ <name>{{ format | upper }} file input</_name>
+ <id>org.inkstitch.input.{{ format }}.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<input>
diff --git a/templates/install.inx b/templates/install.inx
index 9ee020fe..503e1e03 100644
--- a/templates/install.inx
+++ b/templates/install.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Install add-ons for Inkscape{% endtrans %}</name>
- <id>org.inkstitch.install</id>
+ <name>{% trans %}Install add-ons for Inkscape{% endtrans %}</_name>
+ <id>org.inkstitch.install.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">install</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/layer_commands.inx b/templates/layer_commands.inx
index e04d2540..acf0f199 100644
--- a/templates/layer_commands.inx
+++ b/templates/layer_commands.inx
@@ -1,19 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Add Layer Commands{% endtrans %}</name>
- <id>org.inkstitch.layer_commands</id>
+ <name>{% trans %}Add Layer Commands{% endtrans %}</_name>
+ <id>org.inkstitch.layer_commands.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="description" type="description">{% trans %}Commands will be added to the currently-selected layer.{% endtrans %}</param>
{% for command, description in layer_commands %}
- <param name="{{ command }}" type="boolean" gui-text="{{ _(description) }}">false</param>
+ <param name="{{ command }}" type="boolean" _gui-text="{{ _(description) }}">false</param>
{% endfor %}
<param name="extension" type="string" gui-hidden="true">layer_commands</param>
<effect>
<object-type>all</object-type>
- <effects-menu>
- <submenu name="Ink/Stitch" />
- </effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
+ </submenu>
</effect>
<script>
<command reldir="extensions" interpreter="python">inkstitch.py</command>
diff --git a/templates/object_commands.inx b/templates/object_commands.inx
index 71f9d0b3..024a694b 100644
--- a/templates/object_commands.inx
+++ b/templates/object_commands.inx
@@ -1,17 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Attach Commands{% endtrans %}</name>
- <id>org.inkstitch.commands</id>
+ <name>{% trans %}Attach Commands{% endtrans %}</_name>
+ <id>org.inkstitch.commands.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
{% for command, description in object_commands %}
- <param name="{{ object }}" type="boolean" gui-text="{{ _(description ) }}">false</param>
+ <param name="{{ object }}" type="boolean" _gui-text="{{ _(description ) }}">false</param>
{% endfor %}
<effect>
<object-type>all</object-type>
- <effects-menu>
- <submenu name="Ink/Stitch" />
- </effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
+ </submenu>
</effect>
<script>
<command reldir="extensions" interpreter="python">inkstitch.py</command>
diff --git a/templates/output.inx b/templates/output.inx
index b517ea70..87befee4 100644
--- a/templates/output.inx
+++ b/templates/output.inx
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{{ format | upper }} file output</name>
- <id>org.inkstitch.output.{{ format }}</id>
+ <name>{{ format | upper }} file output</_name>
+ <id>org.inkstitch.output.{{ format }}.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<output>
diff --git a/templates/params.inx b/templates/params.inx
index 2397be8e..1d06e56f 100644
--- a/templates/params.inx
+++ b/templates/params.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Params{% endtrans %}</name>
- <id>org.inkstitch.params</id>
+ <name>{% trans %}Params{% endtrans %}</_name>
+ <id>org.inkstitch.params.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">params</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/print.inx b/templates/print.inx
index 2670d30e..eee9c55e 100644
--- a/templates/print.inx
+++ b/templates/print.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Print{% endtrans %}</name>
- <id>org.inkstitch.print</id>
+ <name>{% trans %}Print{% endtrans %}</_name>
+ <id>org.inkstitch.print.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">print</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/simulate.inx b/templates/simulate.inx
index 7a0174a3..4a517994 100644
--- a/templates/simulate.inx
+++ b/templates/simulate.inx
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Simulate{% endtrans %}</name>
- <id>org.inkstitch.simulate</id>
+ <name>{% trans %}Simulate{% endtrans %}</_name>
+ <id>org.inkstitch.simulate.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="extension" type="string" gui-hidden="true">simulate</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu name="Ink/Stitch"/>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}English{% endtrans %}" />
+ </submenu>
</effects-menu>
</effect>
<script>
diff --git a/templates/zip.inx b/templates/zip.inx
index 9af05ab9..bf01dea2 100644
--- a/templates/zip.inx
+++ b/templates/zip.inx
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>embroidery ZIP file output</name>
- <id>org.inkstitch.output.zip</id>
+ <name>embroidery ZIP file output</_name>
+ <id>org.inkstitch.output.zip.{{ locale }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<output>
@@ -12,7 +12,7 @@
<dataloss>true</dataloss>
</output>
{% for format, description in formats %}
- <param name="format-{{ format }}" type="boolean" gui-text=".{{ format | upper }}: {{ _(description) }}">false</param>
+ <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ _(description) }}">false</param>
{% endfor %}
<param name="extension" type="string" gui-hidden="true">zip</param>
<script>