L10n:Localizing Overview: Difference between revisions

m
(more...)
Line 41: Line 41:


=Localize the files=
=Localize the files=
To do this, you can use all-in-one tools, such as MozillaTranslator, or your favourite UTF-8–aware text-editor.
To do this, you can use all-in-one tools, such as [[L10n:MozillaTranslator|MozillaTranslator]], or your favourite UTF-8–aware text-editor.


Ensure you translate the directory structure (from <tt>../en-US/..</tt> to <tt>../ab-CD/..</tt>) as well.
Ensure you translate the directory structure (from <tt>../en-US/..</tt> to <tt>../ab-CD/..</tt>) as well.
Line 57: Line 57:
<p class="note"> when testing a 7z-based installer, use a faster compression ratio rather than one geared for smaller installer files. Only when you have checked that the installer works correctly should you recompress for minimum size.</p>
<p class="note"> when testing a 7z-based installer, use a faster compression ratio rather than one geared for smaller installer files. Only when you have checked that the installer works correctly should you recompress for minimum size.</p>


For the smallest possible installer, ensure that none of the archive files within the installer (eg XPI files) are compressed and use the following command:
For the smallest possible installer, ensure that none of the archive files within the installer (eg XPI files) are compressed; then use the following command:
<pre class="code">7z a -t7z stage\app.7z *.* -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3</pre>
<pre class="code">7z a -t7z stage\app.7z *.* -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3</pre>
This assumes that you are in the directory with all the necessary files, and the archive will be put in a sub-directory called <tt>stage/</tt>.
This assumes that you are in the directory with all the necessary files, and the archive will be put in a sub-directory called <tt>stage/</tt>.
90

edits