Mime-types in Russian

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


I use SliTaz stable with Russian localization. I'm wonder, why SliTaz have mime
files in number of languages in /usr/share/mime (Russian included), but I still
have properties of files in English?

What is my locale?
$ export
....
export LANG='ru_RU'
export LC_ALL='ru_RU'
....

When I change 'ru' to 'ru_RU' in content of mime files, then I get what I need!
I write small script (run as root):

# sed -i -e 's/xml:lang="ru"/xml:lang="ru_RU"/g' \
	`find /usr/share/mime -name *.xml`

Also I tried to change it to 'ru*' for universality, but it not works (mime
files are changed of course, but I still got English default descriptions).

My locale folder: /usr/share/locale/ru/LC_MESSAGES


So, we have 2 decisions:
  - change 'ru' to 'ru_RU' in mime files;
  - change 'ru_RU' to 'ru' in locale (is it possible?)

I looking up the files in /usr/share/mime, not all of them have multilingual
support. Some of them are not included in SliTaz ISO and came with packages.
And many of them have a line inside:

<!--Created automatically by update-mime-database. DO NOT EDIT!-->

When I run as root:
# update-mime-database /usr/share/mime
my mime files are changed (new date-time), but I can't see the changes inside
of them.

So, we need manual edit all mime files (in package 'shared-mime-info' and
other)? And what about other languages?

--
Lexeii

---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/