~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/linguist-ts-file-format.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/doc/src/linguist-manual.qdoc -->
 
5
<!-- linguist-manual.qdoc -->
6
6
<head>
7
 
  <title>Qt 4.5: Qt Linguist Manual: TS File Format</title>
 
7
  <title>Qt 4.6: Qt Linguist Manual: TS File Format</title>
8
8
  <link rel="prev" href="linguist-programmers.html" />
9
9
  <link rel="contents" href="linguist-manual.html" />
10
10
  <link href="classic.css" rel="stylesheet" type="text/css" />
12
12
<body>
13
13
<table border="0" cellpadding="0" cellspacing="0" width="100%">
14
14
<tr>
15
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
16
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
17
 
<td align="right" valign="top" width="230"></td></tr></table><p>
 
15
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
16
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
17
</tr></table><p>
18
18
[Previous: <a href="linguist-programmers.html">Qt Linguist Manual: Programmers</a>]
19
19
[<a href="linguist-manual.html">Contents</a>]
20
20
</p>
21
21
<h1 class="title">Qt Linguist Manual: TS File Format<br /><span class="subtitle"></span>
22
22
</h1>
23
 
<p>The <tt>.ts</tt> file format used by <i>Qt Linguist</i> is described by the <a href="http://www.w3.org/TR/1998/REC-xml-19980210">DTD</a> presented below, which we include for your convenience. Be aware that the format may change in future Qt releases.</p>
 
23
<p>The TS file format used by <i>Qt Linguist</i> is described by the <a href="http://www.w3.org/TR/1998/REC-xml-19980210">DTD</a> presented below, which we include for your convenience. Be aware that the format may change in future Qt releases.</p>
24
24
<pre> &lt;!--
25
25
  !
26
26
  ! Some notes to the DTD:
57
57
           version CDATA #IMPLIED
58
58
           sourcelanguage CDATA #IMPLIED
59
59
           language CDATA #IMPLIED&gt;
60
 
 &lt;!-- The encoding to use in the .qm file by default. Default is ISO-8859-1. --&gt;
 
60
 &lt;!-- The encoding to use in the QM file by default. Default is ISO-8859-1. --&gt;
61
61
 &lt;!ELEMENT defaultcodec (#PCDATA) &gt;
62
62
 &lt;!ELEMENT context (name?, comment?, (context|message)+) &gt;
63
63
 &lt;!ATTLIST context
77
77
 &lt;!ELEMENT message (location*, source?, oldsource?, comment?, oldcomment?, extracomment?, translatorcomment?, translation?, userdata?, extra-**) &gt;
78
78
 &lt;!--
79
79
  ! If utf8 is true, the defaultcodec is overridden and the message is encoded
80
 
  ! in UTF-8 in the .qm file.
 
80
  ! in UTF-8 in the QM file.
81
81
   --&gt;
82
82
 &lt;!ATTLIST message
83
83
           id CDATA #IMPLIED
93
93
  ! is omitted, the &quot;current&quot; one is used. For the 1st location in a message,
94
94
  ! &quot;current&quot; is the filename used for the 1st location of the previous message.
95
95
  ! For subsequent locations, it is the filename used for the previous location.
96
 
  ! A single .ts file has either all absolute or all relative locations.
 
96
  ! A single TS file has either all absolute or all relative locations.
97
97
   --&gt;
98
98
 &lt;!ATTLIST location
99
99
           filename CDATA #IMPLIED
129
129
 &lt;!--
130
130
  ! The translation variants have a priority between 1 (&quot;highest&quot;) and 9 (&quot;lowest&quot;)
131
131
  ! Typically longer translations get a higher priority.
132
 
  ! If omitted, the order of appearance of the variants in the .ts files is used.
 
132
  ! If omitted, the order of appearance of the variants in the TS files is used.
133
133
   --&gt;
134
134
 &lt;!ATTLIST lengthvariant
135
135
           priority (1|2|3|4|5|6|7|8|9) #IMPLIED&gt;</pre>
139
139
</p>
140
140
<p /><address><hr /><div align="center">
141
141
<table width="100%" cellspacing="0" border="0"><tr class="address">
142
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
143
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
144
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
145
 
</tr></table></div></address></body>
 
142
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
143
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
144
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
145
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
146
146
</html>