/usr/share/gtk-doc/html/libglade/libglade-i18n.html is in libglade2-dev 1:2.6.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Internationalisation with Libglade</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
<link rel="home" href="index.html" title="Libglade - Graphical Interface Description Loader API">
<link rel="up" href="libglade-notes.html" title="Libglade Programming Notes">
<link rel="prev" href="libglade-modules.html" title="Libglade Modules">
<link rel="next" href="libglade-extending.html" title="Extending Libglade">
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="libglade-notes.html" title="Libglade Programming Notes">
<link rel="chapter" href="libglade-dtd.html" title="Glade 2.0 File Format">
<link rel="part" href="libglade-lib.html" title="Part I. Libglade Library Reference">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="libglade-modules.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libglade-notes.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Libglade - Graphical Interface Description Loader API</th>
<td><a accesskey="n" href="libglade-extending.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="libglade-i18n"></a>Internationalisation with Libglade</h2></div></div></div>
<p>Glade files mark properties for translation with the
<em class="parameter"><code>translatable</code></em> property of the
<code class="sgmltag-element"><property></code> element:</p>
<pre class="programlisting">
<widget class="GtkLabel" id="label1">
<property name="label" translatable="yes">Foo</property>
...
</widget>
</pre>
<p>Libglade will translate marked properties using the
translation domain specified in the
<code class="function">glade_xml_new()</code> (or the default domain if
<code class="constant">NULL</code>).</p>
<p>Libglade also supports disambiguating properties by
prefixing them with a |-separated context string, e.g.
"Menu/Printer|Open" vs. "Menu/File|Open". You must tell Libglade that
the property has a prefix by setting the <em class="parameter"><code>context</code></em>
attribute of the <code class="sgmltag-element"><property></code> element to "yes".
To learn more about this technique, read the chapter "How to use
gettext in GUI programs" in the gettext manual, and see the GLib
API documentation for g_strip_context().
</p>
<p>To add the strings found in a glade file to your
translation catalog template through the use of
<span class="command"><strong>intltool</strong></span>. (XXXX - does this actually work
yet?).</p>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.12</div>
</body>
</html>
|