Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no argument for setting the output character encoding directly, but this should <em>in pratice</em> not be a problem, as your PO editor will automatically use an appropriate character encoding when saving the PO file (one that supports all the characters used in the translation), and replace <code>CHARSET</code> in the file with the name of the encoding. If it doesn’t, file a bug.</p> <p>The only problem would be if the POT file contained non-ASCII characters, but <code>xgettext</code> <em>does</em> have a <code>--from-code</code> argument for this, which specifies the encoding of the <em>input</em> files. If the input contains non-ASCII characters and <code>--from-code</code> is set to the correct encoding, the output POT file will have the character encoding set to UTF-8 (this need not be equal to the input character encoding). However, if the input files only contain ASCII characters, <code>--from-code=UTF-8</code> will unfortunately have no effect.</p> <p><code>msginit</code> does in fact automatically set the character encoding to something ‘appropriate’ for the chosen target locale. However, the list of locale to character encoding pairs seems outdated; UTF-8 is now really the best choice for all languages.</p> <p>An alternative would be to use <a href="http://translate.sourceforge.net/wiki/toolkit/pot2po" rel="noreferrer"><code>pot2po</code></a> instead of <code>msginit</code>. This always uses UTF-8 automatically, AFAICS. However, unlike <code>msginit</code>, it does not automatically fill out the plural forms of the PO file, which may or may not be a problem (some think it is the job of the PO editor to do this).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload