The input field is larger now, very good
HTML pages in /usr/share/doc/help/<language-code>/xxx.htm are shown
Because I am a little bit lazy in translating I was searching a solution to get localized pages from the web.
The pages from /root/.packages/PKGS_HOMEPAGES are english only, of course. But there is an easy way to show a localized page from the web instead. Tested example:
python will show http://www.python.org/
I have put a file PKGS_HOMEPAGES into /usr/share/locale/de
content
Code: Select all
python http://wiki.python.de/
apply code in /usr/bin/pman line 290
Code: Select all
#w464 search pkg homepages db...
pPATTERN='^'"${NAME}"' '
# search localized homepages db by L18L
HOMESITE="`grep -i "$pPATTERN" /usr/share/locale/${lng2}/PKGS_HOMEPAGES | head -n 1 | cut -f 2 -d ' '`"
[ "$HOMESITE" = "" ] && HOMESITE="`grep -i "$pPATTERN" /root/.packages/PKGS_HOMEPAGES | head -n 1 | cut -f 2 -d ' '`"
if [ "$SECTION" = "" -a "$HOMESITE" != "" ];then
redirecting HTML page in /usr/share/doc/help/de/python.htm which was my first solution.
Note: if python_DOC is installed then the english manpage of python will be displayed. Therefore using _DOC.pet is not recommended for NLS users.
feedback welcome
PS: rox-Filer homepage has just french and italian
edited 2011-02-23
/usr/share/doc/help/<language-code>/PKGS_HOMEPAGES also might be a good location for the localized HOMEPAGES