Last active
March 20, 2018 16:50
-
-
Save Bjwebb/030e0bf13c0ec56b725beafac477bde4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0" | |
xmlns:svg="http://www.w3.org/2000/svg"> | |
<its:translateRule selector="//svg:*" translate="no"/> | |
<its:translateRule selector="//svg:text | //svg:tspan | //svg:textArea | | |
//svg:title | //svg:desc | //svg:metadata | | |
//svg:flowPara" | |
translate="yes"/> | |
</its:rules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fname=`basename "$1" .svg` | |
itstool -i its-rules.xml -o "$fname.po" "$1" | |
podebug --rewrite xxx "$fname.po" > "${fname}_podebug.po" | |
msgfmt "${fname}_podebug.po" -o "${fname}_podebug.mo" | |
itstool -m "${fname}_podebug.mo" -o "${fname}_translated.svg" "$fname.svg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment