http://wiki.rosalab.com/ru/index.php?title=Localization_policy&feed=atom&action=history
Localization policy - История изменений
2024-03-28T20:59:36Z
История изменений этой страницы в вики
MediaWiki 1.26.4
http://wiki.rosalab.com/ru/index.php?title=Localization_policy&diff=6878&oldid=prev
PastorDi в 11:32, 30 мая 2012
2012-05-30T11:32:52Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='ru'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Версия 11:32, 30 мая 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Строка 1:</td>
<td colspan="2" class="diff-lineno">Строка 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Категория:Translation and localization<del class="diffchange diffchange-inline">|</del>Packaging Policies]]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Категория:Translation and localization<ins class="diffchange diffchange-inline">]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">[[Категория:</ins>Packaging Policies]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{Введение|This policy details how language support is implemented in ROSA Linux.}}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{Введение|This policy details how language support is implemented in ROSA Linux.}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
PastorDi
http://wiki.rosalab.com/ru/index.php?title=Localization_policy&diff=6877&oldid=prev
PastorDi в 11:32, 30 мая 2012
2012-05-30T11:32:18Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='ru'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Версия 11:32, 30 мая 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Строка 1:</td>
<td colspan="2" class="diff-lineno">Строка 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[<del class="diffchange diffchange-inline">Category</del>:Translation and localization<del class="diffchange diffchange-inline">]]</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[<ins class="diffchange diffchange-inline">Категория</ins>:Translation and localization<ins class="diffchange diffchange-inline">|</ins>Packaging Policies]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Category:</del>Packaging Policies]]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{<ins class="diffchange diffchange-inline">Введение</ins>|This policy details how language support is implemented in ROSA Linux.}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{<del class="diffchange diffchange-inline">introduction</del>|This policy details how language support is implemented in ROSA Linux.}}</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l78" >Строка 78:</td>
<td colspan="2" class="diff-lineno">Строка 77:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><hr></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><hr></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{<del class="diffchange diffchange-inline">message</del>|This Policy is based on the [http://wiki.mandriva.com/en/Packaging_%26_Localisation_policy Mandriva Packaging and Localization Policy].}}</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{<ins class="diffchange diffchange-inline">Примечание</ins>|This Policy is based on the [http://wiki.mandriva.com/en/Packaging_%26_Localisation_policy Mandriva Packaging and Localization Policy].}}</div></td></tr>
</table>
PastorDi
http://wiki.rosalab.com/ru/index.php?title=Localization_policy&diff=5293&oldid=prev
D uragan: added category
2012-02-09T08:10:26Z
<p>added category</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='ru'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Версия 08:10, 9 февраля 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Строка 1:</td>
<td colspan="2" class="diff-lineno">Строка 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Translation and localization]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Packaging Policies]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Packaging Policies]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{introduction|This policy details how language support is implemented in ROSA Linux.}}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{introduction|This policy details how language support is implemented in ROSA Linux.}}</div></td></tr>
</table>
D uragan
http://wiki.rosalab.com/ru/index.php?title=Localization_policy&diff=5290&oldid=prev
D uragan: Adopted localization policy
2012-02-09T07:29:32Z
<p>Adopted localization policy</p>
<p><b>Новая страница</b></p><div>[[Category:Packaging Policies]]<br />
{{introduction|This policy details how language support is implemented in ROSA Linux.}}<br />
<br />
<br />
== RPM Macros ==<br />
=== %lang ===<br />
<br />
A file can be flagged <tt>%lang(LANG)</tt>. This means it will only be installed if LANG is in <tt>%''install''langs</tt>:<br />
<br />
<pre><br />
$ cat /etc/rpm/macros<br />
%''install''langs en:fr:ja<br />
</pre><br />
<br />
Normally, you should not mark files by yourself. You should '''always use {{macro|%find_lang}}''' which should do everything for you.<br />
<br />
<br />
=== %find_lang ===<br />
Use macro {{macro|%find_lang}} to collect and mark locale-dependent files.<br />
<br />
Synopsis:<br />
<br />
<pre><br />
%find_lang name [filelist]<br />
</pre><br />
<br />
The macro {{macro|%find_lang}} searches the directories {{file|/usr/share/locale}} and {{file|/usr/share/locale/*/LC_MESSAGES}} for <tt>name</tt>.mo files. It also searches gnome/help/name and kde''/share/doc/HTML/'''/name directories for a localized documentation. Then it creates the file filelist where the files are marked by the respective %lang(locale) tag and also by the %doc tag. Such a file list can be then passed to the %files tag via -f option. See below for an example.<br />
<br />
The optional <tt>filelist</tt> defines the name of the file where the generated list of files is stored. <tt>name</tt>.lang is used if not defined.<br />
<br />
Example:<br />
<br />
<pre><br />
%install<br />
...<br />
%find_lang %{name} # generate a special file list<br />
...<br />
<br />
%files -f %{name}.lang # use the special file list<br />
%defattr(-,root,root) # list the other files<br />
%doc README<br />
...<br />
</pre><br />
<br />
<br />
== Explicit %lang ==<br />
In some cases, you may need to add things not handled by %find_lang. Example from numlock.spec:<br />
<br />
<pre><br />
%files<br />
%defattr(755,root,root)<br />
...<br />
%lang(cs) /usr/X11R6/man/cs/man1/*<br />
%lang(et) /usr/X11R6/man/et/man1/*<br />
%lang(eu) /usr/X11R6/man/eu/man1/*<br />
...<br />
</pre><br />
<br />
<br />
== %lang drawback ==<br />
When adding a language on a installed system, the %lang flagged files in already installed packages are not added. This is why localedrake only propose languages chosen during installation.<br />
<br />
<br />
== One package per language ==<br />
<tt>%lang</tt> is quite nice for "not too big" language dependent files. When the size is quite big, it's interesting to create separate packages:<br />
<br />
* to reduce the size of the package when one install over network<br />
* to allow users to choose which l10n packages to mirror<br />
* to create distributions with only the wanted l10n packages<br />
<br />
The per language package should:<br />
<br />
* be named alike <tt>openoffice.org-l10n-LANG</tt> or <tt>man-pages-LANG</tt>, where <tt>LANG</tt> is the locale name (eg: fr, pt_BR...)<br />
* provide a virtual package alike <tt>openoffice.org-l10n</tt> or <tt>man-pages-l10n</tt> or <tt>aspell-dictionary</tt> (this allow <tt>Suggest: aspell-dictionary</tt>, ''!! work in progress !!'')<br />
* require the corresponding locale, to allow a simple heuristic to choose the best package (eg: if <tt>locales-fr</tt> is installed, choose <tt>aspell-fr</tt> because <tt>aspell-fr</tt> requires <tt>locales-fr</tt>)<br />
<br />
<hr><br />
<br />
{{message|This Policy is based on the [http://wiki.mandriva.com/en/Packaging_%26_Localisation_policy Mandriva Packaging and Localization Policy].}}</div>
D uragan