Commit 24a6c0e8 authored by Gervase Markham's avatar Gervase Markham

Bug 1226865 - bug fixes to localization documentation.

parent ca3c99b1
...@@ -189,7 +189,7 @@ for a component. ``IF comp.bug_count > 1`` means "if there are more than one bug ...@@ -189,7 +189,7 @@ for a component. ``IF comp.bug_count > 1`` means "if there are more than one bug
Let's say your language has to deal with three plural forms and that the terms "bug" and Let's say your language has to deal with three plural forms and that the terms "bug" and
"pending" should be declensed as well. "pending" should be declensed as well.
First, you'll have to populate the :file:`/template/en/default/global/variables.none.tmp` First, you'll have to populate the :file:`/template/en/default/global/variables.none.tmpl`
file with the declensions for "bug", which would give something like: file with the declensions for "bug", which would give something like:
.. code-block:: text .. code-block:: text
......
...@@ -49,7 +49,8 @@ also use a four-letter locale code, e.g. ``pt-BR`` for Brazilian Portuguese or ...@@ -49,7 +49,8 @@ also use a four-letter locale code, e.g. ``pt-BR`` for Brazilian Portuguese or
``zh-CN`` for Chinese (Simplified). In the rest of this guide, your locale ``zh-CN`` for Chinese (Simplified). In the rest of this guide, your locale
code will be represented by ``ab-CD``. code will be represented by ``ab-CD``.
Then, run: Open a terminal and go to your Bugzilla installation's top-level directory
and then run:
:command:`contrib/new-locale.pl ab-CD` :command:`contrib/new-locale.pl ab-CD`
......
...@@ -23,8 +23,8 @@ Though I recommend that you read the documents stated above, here are a few rule ...@@ -23,8 +23,8 @@ Though I recommend that you read the documents stated above, here are a few rule
<ul> <ul>
<li>In <code>index.rst</code> files, never localize what is under the <code>.. toctree::</code> directive: these are file names.</li> <li>In <code>index.rst</code> files, never localize what is under the <code>.. toctree::</code> directive: these are file names.</li>
<li>Never localize a term surrounded with a double dot and two colons. For instance: <code><mark>.. warning::</mark> <span class="green">This is a warning.</span></code>. This <li>Never localize a term surrounded with a double dot and two colons. For instance: <code><mark>.. warning::</mark> This is a warning</code>. This
will be automatically localized if necessary at compilation time. You can localize what is located after, in green in this example.</li> will be automatically localized if necessary at compilation time. You can localize any text that comes after ("This is a warning" in this example).</li>
<li>Exception: do not localize what is located after the directive <code>.. highlight:: console</code>. The word console here is for formatting purpose.</li> <li>Exception: do not localize what is located after the directive <code>.. highlight:: console</code>. The word console here is for formatting purpose.</li>
<li>Do not localize a term surrounded with two colons or with the signs lesser than and greater than: <li>Do not localize a term surrounded with two colons or with the signs lesser than and greater than:
<code>:<mark>ref</mark>:`<span class="green">Démarrage rapide</span>&lt;<mark>quick-start</mark>&gt;`</code>. "ref" is a reserved word and "quick-start" is a file name. In the following syntax example, do not localize "using" <code>:<mark>ref</mark>:`<span class="green">Démarrage rapide</span>&lt;<mark>quick-start</mark>&gt;`</code>. "ref" is a reserved word and "quick-start" is a file name. In the following syntax example, do not localize "using"
......
...@@ -10,4 +10,7 @@ Bugzilla administrator will untar in their ``$BUGZILLA_HOME`` directory. ...@@ -10,4 +10,7 @@ Bugzilla administrator will untar in their ``$BUGZILLA_HOME`` directory.
This command will find all of the files you've localized and put them into This command will find all of the files you've localized and put them into
an appropriate tarball. Don't forget to replace both instances of ``ab-CD``: an appropriate tarball. Don't forget to replace both instances of ``ab-CD``:
Open a terminal and go to your Bugzilla installation's top-level directory
and then run:
:command:`find -name "ab-CD" -print0 -o -path "./data" -prune | tar -cjvf ../bugzilla-ab-CD.tar.bz2 --null -T -` :command:`find -name "ab-CD" -print0 -o -path "./data" -prune | tar -cjvf ../bugzilla-ab-CD.tar.bz2 --null -T -`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment