summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/convert_to_satin.inx4
-rw-r--r--templates/embroider.inx18
-rw-r--r--templates/flip.inx4
-rw-r--r--templates/input.inx6
-rw-r--r--templates/install.inx4
-rw-r--r--templates/layer_commands.inx10
-rw-r--r--templates/object_commands.inx13
-rw-r--r--templates/output.inx6
-rw-r--r--templates/params.inx6
-rw-r--r--templates/print.inx6
-rw-r--r--templates/simulate.inx6
-rw-r--r--templates/zip.inx8
12 files changed, 45 insertions, 46 deletions
diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.inx
index d71b2081..446e4b5c 100644
--- a/templates/convert_to_satin.inx
+++ b/templates/convert_to_satin.inx
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Convert Line to Satin</_name>
+ <name>{% trans %}Convert Line to Satin{% endtrans %}</name>
<id>org.inkstitch.convert_to_satin</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
@@ -8,7 +8,7 @@
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu _name="Embroidery" />
+ <submenu name="Ink/Stitch" />
</effects-menu>
</effect>
<script>
diff --git a/templates/embroider.inx b/templates/embroider.inx
index 7c6544db..f4a78d73 100644
--- a/templates/embroider.inx
+++ b/templates/embroider.inx
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Embroider</_name>
- <id>jonh.embroider</id>
+ <name>{% trans %}Embroider{% endtrans %}</name>
+ <id>org.inkstitch.embroider</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="Collapse length (mm)" _gui-description="Jump stitches smaller than this will be treated as normal stitches.">3.0</param>
- <param name="hide_layers" type="boolean" _gui-text="Hide other layers" _gui-description="Hide all other top-level layers when the embroidery layer is generated, in order to make stitching discernable.">true</param>
- <param name="output_format" type="optiongroup" _gui-text="Output file format" 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>
+ <_option value="{{ format }}">{{ _(description) }} ({{ format | upper }})</_option>
{% endfor %}
{% for format, description in debug_formats %}
- <_option value="{{ format }}">{{ description }} ({{ format | upper }}) [DEBUG]</_option>
+ <_option value="{{ format }}">{{ _(description) }} ({{ format | upper }}) [{{ _("DEBUG") }}]</_option>
{% endfor %}
</param>
- <param name="path" type="string" _gui-text="Directory" _gui-description="Leave empty to save the output in Inkscape's extension directory."></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="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/flip.inx b/templates/flip.inx
index f129b8d9..6ce7c6ef 100644
--- a/templates/flip.inx
+++ b/templates/flip.inx
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Flip Satin Columns</_name>
+ <name>{% trans %}Flip Satin Columns{% endtrans %}</name>
<id>org.inkstitch.flip_satins</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
@@ -8,7 +8,7 @@
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu _name="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/input.inx b/templates/input.inx
index 15ccdef8..1e50d841 100644
--- a/templates/input.inx
+++ b/templates/input.inx
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>{{ format | upper }} file input</_name>
+ <name>{{ format | upper }} file input</name>
<id>org.inkstitch.input.{{ format }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<input>
<extension>.{{ format }}</extension>
<mimetype>application/x-embroidery-{{ format }}</mimetype>
- <_filetypename>Ink/Stitch: {{ description }} (.{{ format }})</_filetypename>
- <_filetypetooltip>convert {{ format | upper }} file to Ink/Stitch manual-stitch paths</_filetypetooltip>
+ <_filetypename>Ink/Stitch: {{ _(description) }} (.{{ format }})</_filetypename>
+ <_filetypetooltip>{{ _("convert %(file_extension)s file to Ink/Stitch manual-stitch paths") % dict(file_extension=format.upper()) }}</_filetypetooltip>
</input>
<param name="extension" type="string" gui-hidden="true">input</param>
<script>
diff --git a/templates/install.inx b/templates/install.inx
index 7275e13a..9ee020fe 100644
--- a/templates/install.inx
+++ b/templates/install.inx
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Install add-ons for Inkscape</_name>
+ <name>{% trans %}Install add-ons for Inkscape{% endtrans %}</name>
<id>org.inkstitch.install</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
@@ -8,7 +8,7 @@
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu _name="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/layer_commands.inx b/templates/layer_commands.inx
index 7eadd094..e04d2540 100644
--- a/templates/layer_commands.inx
+++ b/templates/layer_commands.inx
@@ -1,16 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Add Layer Commands</_name>
+ <name>{% trans %}Add Layer Commands{% endtrans %}</name>
<id>org.inkstitch.layer_commands</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
- <param name="description" type="description">Commands will be added to the currently-selected layer.</param>
- <param name="ignore_layer" type="boolean" _gui-text="Ignore layer (do not stitch any objects in this layer)">false</param>
+ <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>
+ {% endfor %}
<param name="extension" type="string" gui-hidden="true">layer_commands</param>
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu _name="Embroidery" />
+ <submenu name="Ink/Stitch" />
</effects-menu>
</effect>
<script>
diff --git a/templates/object_commands.inx b/templates/object_commands.inx
index bba8602b..71f9d0b3 100644
--- a/templates/object_commands.inx
+++ b/templates/object_commands.inx
@@ -1,19 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Attach Commands</_name>
+ <name>{% trans %}Attach Commands{% endtrans %}</name>
<id>org.inkstitch.commands</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
- <param name="fill_start" type="boolean" _gui-text="Fill stitch starting position">false</param>
- <param name="fill_end" type="boolean" _gui-text="Fill stitch ending position">false</param>
- <param name="stop" type="boolean" _gui-text="Stop after sewing this object">false</param>
- <param name="trim" type="boolean" _gui-text="Trim thread after sewing this object">false</param>
- <param name="ignore_object" type="boolean" _gui-text="Ignore this object (do not stitch)">false</param>
- <param name="extension" type="string" gui-hidden="true">object_commands</param>
+ {% for command, description in object_commands %}
+ <param name="{{ object }}" type="boolean" gui-text="{{ _(description ) }}">false</param>
+ {% endfor %}
<effect>
<object-type>all</object-type>
<effects-menu>
- <submenu _name="Embroidery" />
+ <submenu name="Ink/Stitch" />
</effects-menu>
</effect>
<script>
diff --git a/templates/output.inx b/templates/output.inx
index 4f971fb3..b517ea70 100644
--- a/templates/output.inx
+++ b/templates/output.inx
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>{{ format | upper }} file output</_name>
+ <name>{{ format | upper }} file output</name>
<id>org.inkstitch.output.{{ format }}</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<output>
<extension>.{{ format }}</extension>
<mimetype>application/x-embroidery-{{ format }}</mimetype>
- <_filetypename>Ink/Stitch: {{ description }} (.{{ format }})</_filetypename>
- <_filetypetooltip>Save design in {{ format | upper }} format using Ink/Stitch</_filetypetooltip>
+ <_filetypename>Ink/Stitch: {{ _(description) }} (.{{ format }})</_filetypename>
+ <_filetypetooltip>{{ _("Save design in %(file_extension)s format using Ink/Stitch") % dict(file_extension=format.upper()) }}</_filetypetooltip>
<dataloss>true</dataloss>
</output>
<param name="extension" type="string" gui-hidden="true">output</param>
diff --git a/templates/params.inx b/templates/params.inx
index 7b3b4e63..2397be8e 100644
--- a/templates/params.inx
+++ b/templates/params.inx
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Params</_name>
- <id>jonh.embroider.params</id>
+ <name>{% trans %}Params{% endtrans %}</name>
+ <id>org.inkstitch.params</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="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/print.inx b/templates/print.inx
index edc96a4c..2670d30e 100644
--- a/templates/print.inx
+++ b/templates/print.inx
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Print</_name>
- <id>jonh.embroider.print</id>
+ <name>{% trans %}Print{% endtrans %}</name>
+ <id>org.inkstitch.print</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="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/simulate.inx b/templates/simulate.inx
index 66f892d8..7a0174a3 100644
--- a/templates/simulate.inx
+++ b/templates/simulate.inx
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Simulate</_name>
- <id>jonh.embroider.simulate</id>
+ <name>{% trans %}Simulate{% endtrans %}</name>
+ <id>org.inkstitch.simulate</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="Embroidery"/>
+ <submenu name="Ink/Stitch"/>
</effects-menu>
</effect>
<script>
diff --git a/templates/zip.inx b/templates/zip.inx
index c85e849f..9af05ab9 100644
--- a/templates/zip.inx
+++ b/templates/zip.inx
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>embroidery ZIP file output</_name>
+ <name>embroidery ZIP file output</name>
<id>org.inkstitch.output.zip</id>
<dependency type="executable" location="extensions">inkstitch.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<output>
<extension>.zip</extension>
<mimetype>application/zip</mimetype>
- <_filetypename>Ink/Stitch: ZIP export multiple formats (.zip)</_filetypename>
- <_filetypetooltip>Create a ZIP with multiple embroidery file formats using Ink/Stitch</_filetypetooltip>
+ <_filetypename>{{ _("Ink/Stitch: ZIP export multiple formats (.zip)") }}"</_filetypename>
+ <_filetypetooltip>{{ _("Create a ZIP with multiple embroidery file formats using Ink/Stitch") }}</_filetypetooltip>
<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>