Gettexted rc.sysinit started to work for me after I added line:
Code: Select all
LANG=$(cat /etc/profile | grep '^LANG=' | cut -d '=' -f2 )
Code: Select all
# cat /etc/profile | grep '^LANG=' | cut -d '=' -f2
ru_UA.UTF-8
Code: Select all
LANG=$(cat /etc/profile | grep '^LANG=' | cut -d '=' -f2 )
Code: Select all
# cat /etc/profile | grep '^LANG=' | cut -d '=' -f2
ru_UA.UTF-8
Before putting it into init one can try.technosaurus wrote:whenever I have had issues with ncurses based interfaces, it was either:
a. the app needed ncursesw (unlikely if it works in X)
b. the incorrect terminfo was being exported and used ... I would guess that you need /usr/share/terminfo/l/linux and export TERM=linux in the initrd and init script respectively
Code: Select all
TERM=linux-m mp
And slightly faster without g.BarryK wrote:...Note though, I used L18L's original technique of simple sed expressions. The implementation is extremely simple, you can see the 'init' script online:
I think that the "g" only applies to the same line. That is, will translate multiple occurrences of "Password: " on the same line. If "Password: " is on different lines, then "g" is not required.L18L wrote:And slightly faster without g.BarryK wrote:...Note though, I used L18L's original technique of simple sed expressions. The implementation is extremely simple, you can see the 'init' script online:
But password should become
s%"Password: "%"Paßwort: "%g
because translation has to happen more than once.
(And tell the translator to NOT remove g)
Compliment, you have also solved the problem of
done
using
"done"
I was wrongBarryK wrote:...
I think that the "g" only applies to the same line. That is, will translate multiple occurrences of "Password: " on the same line. If "Password: " is on different lines, then "g" is not required.