Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 5ab010e37991249ab4adaa24d6e39c6e > files > 55

qt5-qtdoc-5.1.1-2.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- i18n.qdoc -->
  <title>Translation Rules for Plurals | QtDoc 5.1</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader"></div>
<div class="content">
<div class="line">
<div class="content mainContent">
  <link rel="prev" href="i18n-source-translation.html" />
<p class="naviNextPrevious headerNavi">
<a class="prevPage" href="i18n-source-translation.html">Writing Source Code for Translation</a>
</p><p/>
<h1 class="title">Translation Rules for Plurals</h1>
<span class="subtitle"></span>
<!-- $$$i18n-plural-rules.html-description -->
<div class="descr"> <a name="details"></a>
<p>The table below shows the specific rules that are produced by Qt Linguist and <tt>lrelease</tt> for a selection of languages. Cells marked <i>otherwise</i> indicate the form used when none of the other rules are appropriate for a specific language.</p>
<table class="generic" width="80%">
 <thead><tr class="qt-style"><th >Language</th><th >Rule 1</th><th >Rule 2</th><th >Rule 3</th></tr></thead>
<tr valign="top" class="odd"><td >English</td><td ><tt>n == 1</tt></td><td ><i>otherwise</i></td><td >N/A</td></tr>
<tr valign="top" class="even"><td >French</td><td ><tt>n &lt; 2</tt></td><td ><i>otherwise</i></td><td >N/A</td></tr>
<tr valign="top" class="odd"><td >Czech</td><td ><tt>n % 100 == 1</tt></td><td ><tt>n % 100 &gt;= 2 &amp;&amp; n % 100 &lt;= 4</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="even"><td >Irish</td><td ><tt>n == 1</tt></td><td ><tt>n == 2</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="odd"><td >Latvian</td><td ><tt>n % 10 == 1&amp;&amp; n % 100 != 11</tt></td><td ><tt>n != 0</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="even"><td >Lithuanian</td><td ><tt>n % 10 == 1&amp;&amp; n % 100 != 11</tt></td><td ><tt>n % 100 != 12 &amp;&amp; n % 10 == 2</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="odd"><td >Macedonian</td><td ><tt>n % 10 == 1</tt></td><td ><tt>n % 10 == 2</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="even"><td >Polish</td><td ><tt>n == 1</tt></td><td ><tt>n % 10 &gt;= 2 &amp;&amp; n % 10 &lt;= 4 &amp;&amp; (n % 100 &lt; 10 || n % 100 &gt; 20)</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="odd"><td >Romanian</td><td ><tt>n == 1</tt></td><td ><tt>n == 0|| (n % 100 &gt;= 1 &amp;&amp; n % 100 &lt;= 20)</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="even"><td >Russian</td><td ><tt>n % 10 == 1&amp;&amp; n % 100 != 11</tt></td><td ><tt>n % 10 &gt;= 2 &amp;&amp; n % 10 &lt;= 4 &amp;&amp; (n % 100 &lt; 10 || n % 100 &gt; 20)</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="odd"><td >Slovak</td><td ><tt>n == 1</tt></td><td ><tt>n &gt;= 2 &amp;&amp; n &lt;= 4</tt></td><td ><i>otherwise</i></td></tr>
<tr valign="top" class="even"><td >Japanese</td><td ><i>otherwise</i></td><td >N/A</td><td >N/A</td></tr>
</table>
<p>The rules themselves are not documented and are internal to Qt Linguist and <tt>lrelease</tt>.</p>
</div>
<!-- @@@i18n-plural-rules.html -->
<p class="naviNextPrevious footerNavi">
<a class="prevPage" href="i18n-source-translation.html">Writing Source Code for Translation</a>
</p>
</div>
</div>
</div>
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>