Re: How to mark images as untranslatable?



On Fri, 2012-09-28 at 21:05 +0200, Mario Blättermann wrote:
> Hi all,
> 
> I've migrated Glabels from g-d-u to itstool recently. In the course of
> this changes, I've marked some XML tags as untranslatable, like in the
> following example:
> 
>       <tr>
>         <td its:translate="no"><p><code>x0</code></p></td>
>         <td><p>Distance from left edge of sheet to the left edge of
>             the left column of cards/labels in the layout.</p></td>
>       </tr>
> 
> Works fine so far, the XML content from the according table row doesn't
> appear anymore in the *.pot translation template. But this affects
> textual strings only, it doesn't work for images:
> 
>     <figure>
>       <desc><code>Layout</code> parameters</desc>
>       <media its:translate="no" type="image"
> src="figures/glabels-template-layout.png" mime="image/png" style="right">
>         <p><span>Layout</span> Parameters</p>
>       </media>
>     </figure>
> 
> This image doesn't contain any translatable things, just some text which
> is hardcoded in the Glabels' template syntax and must not be changed in
> any case. Where I have to place the its:translate="no" part to let it
> disappear from the translation template?

What version of itstool are you using? This should have been
fixed in 1.1.3 with this commit:

https://gitorious.org/itstool/itstool/commit/1e0fa47194bbfcbd30e402a4897a0856a6045b73

--
Shaun




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]