Libzypp/Dependencies/Language

Şuraya atla: kullan, ara

Language dependant packages

Language dependant package are usually translations, fonts, or input methods. There might be more, but all follow the same schema:

Dependencies

Language dependant packages have a language dependency. That is, they are dormant if this language is not required and become active once the user selects the language (either as primary or as additional).

Most also have a parent dependency, expressing for which package they provide language specific data (i.e. susehelp-de provides translations for susehelp)

Expressing dependencies in .spec files

Both above mentioned dependencies are expressed as special type of provides in the package's .spec file:

provides: locale(parent:locale;locale;...)

If there is no parent, just omit the parent: part.

locale is a complete locale (i.e. en_US) or just the language part (i.e. en)

Examples

yast2-trans-de provides german language support for yast2:

yast2-trans-de
provides: locale(yast2:de)

xmanja provides japanese language support (without any parent)

xmanja
provides: locale(ja)

Support for multiple locales can be expressed by separating them with semicolon:

fitzefatze
provides: locale(aa;bb;cc;dd)

Look here for the internal implementation.


back ...

Last edit in Trac '02/28/06 10:39:48' by 'kkaempf'


Last edit in Trac '02/28/06 10:39:48' by 'kkaempf'


Last edit in Trac '02/28/06 10:39:48' by 'kkaempf'


Last edit in Trac '02/28/06 10:39:48' by 'kkaempf'


Last edit in Trac '02/28/06 10:39:48' by 'kkaempf'