From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 23 Jan 2002 19:05:21 +0300 From: "Dmitry V. Levin" To: devel@altlinux.ru Message-ID: <20020123160521.GC28869@ldv.office.alt-linux.org> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wxDdMuZNg1r63Hyj" Content-Disposition: inline X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Subject: [devel] [jbj@JBJ.ORG: Re: localised rpm -qi] Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: devel@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Archived-At: List-Archive: List-Post: --wxDdMuZNg1r63Hyj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline JFYI ----- Forwarded message from Jeff Johnson ----- Date: Wed, 23 Jan 2002 10:30:40 -0500 From: Jeff Johnson To: rpm-list@redhat.com Subject: Re: localised rpm -qi On Wed, Jan 23, 2002 at 03:56:41PM +0100, Tomas Zellerin wrote: > Hello, > > is it possible to have more descriptions etc. in a rpm package, one for > each (suported) locale, so that rpm -qi[p] outputs the proper one, > similarily to the way gettext does it? If so, please point me to proper RTFM. You can add locale specific text to a spec file by using Summary(L1): Group(L1): %description -l L1 where L1 is a locale However, be forewarned: On a Red Hat system (possibly others), if the specspo package is installed, summary/group/description are read from specspo msgstr's, not from the package. No Red Hat package has any locale specific text in packages any more. The specspo mechanism does a 2 level lookup using dgettext, first to do the string mapping from a known token (assuming package "foo" group tag) msgid "foo(Group)" msgstr "the usual C locale text for Group:" then finally to get the locale specific msgstr msgid "the usual C locale text for Group:" msgstr "the final locale text for Group:" The locations for "locale collections" (dunno what to call this, kinda like i18n domains) is configured with the macro %_i18ndomains, a colon seperated set of directory names. For example, the file /etc/rpm/macros.specspo contains %_i18ndomains redhat-dist which directs the summary/group/description lookup mechanism to /usr/share/locale/cs/LC_MESSAGES/redhat-dist.mo etc. The en_US locale is used (abused?) to do the 1st level lookup above, the 2nd level lookup is then performed as usual. HTH 73 de Jeff -- Jeff Johnson ARS N3NPQ jbj@jbj.org (jbj@redhat.com) Chapel Hill, NC _______________________________________________ Rpm-list mailing list Rpm-list@redhat.com https://listman.redhat.com/mailman/listinfo/rpm-list ----- End forwarded message ----- Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@alt-linux.org ALT Linux Team http://www.altlinux.com/ Fandra Project http://www.fandra.org/ +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. --wxDdMuZNg1r63Hyj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8Tt9B9viEa8HiNCkRAtd9AJ9BcP0LRPofDoWOzTpnaNTHF8X4OQCeJHIa v3wzp1UYpKdbprRGX4+b0lk= =TV4E -----END PGP SIGNATURE----- --wxDdMuZNg1r63Hyj--