Bug 173: CLOSED
tazpkg -h output in English, irrespective of user's locale
Date: 2017-02-10 - Creator: hgt - Priority standard - 7 messages
tazpkg -hshows help text always in English, because in /usr/libexec/tazpkg/help the variable DOC is set to /usr/share/doc/tazpkg/tazpkg.html which is a link to /usr/share/doc/tazpkg/tazpkg.en.html. To show help text in the language the user has choosen in his locale setting, I suggest to insert if [ -f /usr/share/doc/tazpkg/tazpkg.${LANG:0:2}.html ]; then DOC="/usr/share/doc/tazpkg/tazpkg.${LANG:0:2}.html"; fi after DOC='/usr/share/doc/tazpkg/tazpkg.html' in /usr/libexec/tazpkg/help
Affected package(s): tazpkg
Messages
ERROR: sourcing msg.2
USER="Lexeii"
DATE="2017-02-10 21:24"
MSG="`tazlocale` should do the work:
http://hg.slitaz.org/slitaz-tools/file/781f12e0836c/tinyutils/tazlocale
Some script called tazlocale without options at a boot time: you should read
the message "Setting system locale to..." and then many symlinks should be
fixed to point to your system locale.
The other deal, I think we should execute "tazlocale" in the post-install rules
for tazpkg package, not only at a boot time, to get correct symlinks right
after the package install. It also correct to some other packages affected."
ERROR: sourcing msg.3
USER="Lexeii"
DATE="2017-02-10 21:25"
MSG="`tazlocale` should do the work:
http://hg.slitaz.org/slitaz-tools/file/781f12e0836c/tinyutils/tazlocale
Some script called tazlocale without options at a boot time: you should read
the message "Setting system locale to..." and then many symlinks should be
fixed to point to your system locale.
The other deal, I think we should execute "tazlocale" in the post-install rules
for tazpkg package, not only at a boot time, to get correct symlinks right
after the package install. It also correct to some other packages affected."
By: hgt on 2017-02-11 16:04
I prepared a file /usr/libexec/tazpkg/help and tested it on my SliTaz system with LANG=de_DE@euro.UTF-8, where it worked fine. How can I transfer this file?
ERROR: sourcing msg.6
USER="Lexeii"
DATE="2017-02-12 03:03"
MSG="Hmmm...
Something went wrong.
The garbage "bug bugs.cgi check-bugs.sh config.cgi favicon.ico images lib
plugins README
spam style.css"
instead of the asterisk I used for the unordered list.
Let's re-try with the dash:
Ref.:
- http://hg.slitaz.org/tazpkg/rev/942
- http://cook.slitaz.org/cooker.cgi?pkg=tazpkg"
By: Lexeii on 2017-02-12 03:04
Hi HGT, I believe, the commit #942 and tazpkg-942 should do the job. Ref.: - hg.slitaz.org/tazpkg/rev/942 - cook.slitaz.org/cooker.cgi?pkg=tazpkg
By: hgt on 2017-02-13 15:37
I just tried tazpkg-942 and it works fine.
By: pankso on 2017-02-16 21:17
Hi hgt, Can you please send me an mail to pankso@slitaz.org so I can give you acces to SliTaz Hg repos :-) Warm regards