<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>16544</bug_id>
          
          <creation_ts>2008-08-04 15:49:32 +0400</creation_ts>
          <short_desc>[FR] Паковать переводы, с помощью %find_lang</short_desc>
          <delta_ts>2008-08-04 23:38:19 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>zim</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Slava Semushin">php-coder</reporter>
          <assigned_to name="Nikolay A. Fetisov">naf</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74791</commentid>
    <comment_count>0</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-08-04 15:49:32 +0400</bug_when>
    <thetext>Сейчас в пакет упакованы все переводы.

[c0der@mxxx ~]$ rpm -ql zim G lingua/
/usr/share/zim/lingua/cs.pl
/usr/share/zim/lingua/da.pl
/usr/share/zim/lingua/de.pl
/usr/share/zim/lingua/es.pl
/usr/share/zim/lingua/fr.pl
/usr/share/zim/lingua/gl.pl
/usr/share/zim/lingua/he.pl
/usr/share/zim/lingua/it.pl
/usr/share/zim/lingua/nl.pl
/usr/share/zim/lingua/pt.pl
/usr/share/zim/lingua/ru.pl
/usr/share/zim/lingua/sv.pl

Хотелось бы, чтобы при упаковке использовался скрипт %find_lang и тогда в систему бы устанавливались только необходимые пользователю переводы, а не все доступны.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74792</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2008-08-04 17:02:18 +0400</bug_when>
    <thetext>Есть сильное сомнение в том, что %find_lang можно использовать в данном случае.
Zim не использует gettext, и его переводы - это скрипты на Perl, динамически подгружаемые из основного кода.

Можно разве что вытащить все переводы (ну разве кроме русского), в отдельный субпакет, только вопрос - стоит ли этого экономия 200 кб на диске?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74793</commentid>
    <comment_count>2</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-08-04 17:06:17 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; Есть сильное сомнение в том, что %find_lang можно использовать в данном случае.

%find_lang может паковать не только файлы локализации gettext. У него есть ключик --custom-file-script, с помощью которого его можно обучить искать всё что угодно (для примера см. fluxbox.spec).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74804</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2008-08-04 23:38:18 +0400</bug_when>
    <thetext>Сделано в 0.25-alt2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>