Name : perl-Lingua-Preferred
| |
Version : 0.2.4
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 17:00:45
|
Group : Development/Libraries/Perl
| Source RPM : perl-Lingua-Preferred-0.2.4-lp155.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl extension to choose a language
|
Description :
Often human-readable information is available in more than one language. Which should you use? This module provides a way for the user to specify possible languages in order of preference, and then to pick the best language of those available. Different \'dialects\' given by the \'territory\' part of the language specifier (such as en, en_GB, and en_US) are also supported.
The routine \'which_lang()\' picks the best language from a list of alternatives. The arguments are:
The return code is which language to use. This will always be an element of the available languages list.
The cleverness of this module (if you can call it that) comes from inferring implicit language preferences based on the explicit list passed in. For example, if you say that en is acceptable, then en_IE and en_DK will presumably be acceptable too (but not as good as just plain en). If you give your language as en_US, then en is almost as good, with the other dialects of en following soon afterwards.
If there is a tie between two choices, as when two dialects of the same language are available and neither is explicitly preferred, or when none of the available languages appears in the user39s list, then the choice appearing earlier in the available list is preferred.
Sometimes, the automatic inferring of related dialects is not what you want, because a language dialect may be very different to the \'main\' language, for example Swiss German or some forms of English. For this case, the special form \'XX_*\' is available. If you dislike Mexican Spanish (as a completely arbitrary example), then \'[ \'es\', \'es_*\', \'es_MX\' ]\' would rank this dialect below any other dialect of es (but still acceptable). You don39t have to explicitly list every other dialect of Spanish before es_MX.
So for example, supposing \'AATTavail\' contains the languages available:
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-L/15.5/noarch |