Adding extra languages into Welcome screen

Adding extra languages into Welcome screen

Pali Rohár
Karma: 1382
2011-12-16 01:17 UTC
Hello,

you may noticed that Maemo 5 Welcome screen (which appears after instering
battery or flashing) does not show all extra installed Maemo 5 translations.

Problem is because, osso_startup_wizard (Welcome screen application) read
language table from library libi18n-locale-resolver0. And that libray read
languages from binary file /usr/share/i18n-locale-resolver/lra_language.data
(and not try to check which translations are installed)

I created small shell script which can modify (add/delete) language strings
(e.g en_US) to that binary file and thus Welcome screen show/hide other
languages.

Script is in Extras(-devel) package locale-resolver-config
http://maemo.org/packages/view/locale-resolver-config/
and install file /usr/sbin/locale-resolver-config

For example adding Slovak language (which is not by default in Maemo) call:
$ locale-resolver-config add sk_SK
and to remove
$ locale-resolver-config del sk_SK

Maintainers of extra Maemo 5 translations could modify their postinst/postrm
scripts to call this script for adding/removing their language to/from Maemo 5
Welcome screen.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk7qnCAACgkQi/DJPQPkQ1J3hgCeIanCYdsE+a74M+KXBog8slNa
DnYAnA6aAgj89iEctWWYMuAd7EcFnDbX
=OIH5
-----END PGP SIGNATURE-----

  •  Reply