[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Mime-types in Russian
- From: Aleksej Bobylev <al.bobylev@xxxxxxxxx>
- Date: Sun, 14 Nov 2010 17:14:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=+Ks8LP3aC27D33tgey90GkMFq/PkZMYCXRRwT8S6tnM=; b=xw5mmQqa7QBULOZnxPxhy7EfjI+GKqMkzIdwuXwqSydBaYnmcikxpPf5JFMK6A0vIO 8Qt+6SWQ2K44o6hbWfn7mtFAFtwSjW3IStD7ZBaIaIPwNMJJqLx1xk4iD7ksXI9MW5Kc pf6T+ArYV8v6Oe0V6XspDpGZ21j53E7eZVD5M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=WwNHEbAliKL+M5SERHdBXNnndFV5EbylLGDsvOx0IZvllAWr23wbYCS5U5RV2Yb17q rDUEr2ca2Fp+BwrtX13Wm1Lzc5/fx3pcGUH/5zBNn3M4S/ozKY9vZZDCljWOLX5dJkXr kyhtm9aBRa//su87ljpamkglDwHQ7Fr8CD7qE=
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/