Skip to content

Commit

Permalink
Merge pull request #129 from yast/pot_from_xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 22, 2018
2 parents 24361e0 + 2c1a86f commit 4c8d6f8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
11 changes: 11 additions & 0 deletions build-tools/scripts/control_to_glade.xsl
Expand Up @@ -42,6 +42,17 @@
</xsl:element>
</xsl:template>

<!--
Allow processing also the XSL files which contain translations.
Handle it like an XML file, just replace the root <xsl:stylesheet> tag
by <interface> as expected by xgettext in *.glade files.
-->
<xsl:template match="/xsl:stylesheet">
<interface>
<xsl:apply-templates select="node()|@*"/>
</interface>
</xsl:template>

<!-- remove the remaining non-matched text -->
<xsl:template match="text()">
</xsl:template>
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-devtools.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 22 14:28:19 UTC 2018 - lslezak@suse.cz

- Allow extracting the translatable texts alsom from XSL files
(bsc#1083720)
- 4.0.5

-------------------------------------------------------------------
Thu Mar 1 07:41:49 UTC 2018 - lslezak@suse.cz

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-devtools.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-devtools
Version: 4.0.4
Version: 4.0.5
Release: 0
Url: http://github.com/yast/yast-devtools

Expand Down

0 comments on commit 4c8d6f8

Please sign in to comment.