Page 4 of 14

The multilingual wary-500m06 available

Posted: Fri 21 Jan 2011, 07:21
by shinobar
The download size of the wary-500m06.iso is 140MB including 38MB additional language packages.
The core 102MB is loaded at first boot, the needed language pack is loaded when you choose the language.
Try this new multilingual feature.

CHANGES
(wary-500m06) TODO:
  • Oops, I forgot to update pupsaveconfig. still improper shutdown message at no save to flash.
  • Need to apply Barry's fix on sound detection
    against /etc/rc.d/r.csysinit at line 241:

    Code: Select all

     rm -f /dev/mixer 2>/dev/null #110113 make sure removed, see test in /etc/init.d/10alsa.
  • The wget is older version than the original?

i18n for pupscan pwsget video-wizard wakepup2 xdelta_gui

Posted: Fri 21 Jan 2011, 08:09
by rodin.s
Gettexted another 5 scripts. There are scripts only. You'll have to create pot file yourself. I am not sure where to include them, in usr_sbin.pot maybe. I used unusual gettext method in zigbert's pwsget. It was new idea for me. It could also be used in gettexting new PPM interface.

Posted: Sun 23 Jan 2011, 09:22
by oui
hii

what ist with Hindi (official language of India) / Urdu (common tongue with Pakistan), one of the most important language of the world and the language of the next greatest nation of the world with over 0,5 mrd people und 30 y. :wink: , all highly motived get own children and to become the most important people of world :idea: ) ?

(only character fonts are urgently needed. it is possible to write Devanagari a lot of time in diverses Versions of Puppy after copying the char fonts of Debian. I did already include them in the remastered old version of turbo pup. the problem was under the applications: divers applications did operate correctly, other not... and the next problem was the orthography control; I have no experience with Urdu. Urdu has special chars different from arabic)

bye

Supported languages

Posted: Sun 23 Jan 2011, 12:24
by shinobar
oui wrote:what ist with Hindi (official language of India) / Urdu (common tongue with Pakistan)
Thanks oui for joining us.
They are supported bylang_support_all-1.5.sfs at this point of time.
But the lang_support_all-1.5.sfs may be outdated and it shall be updated for Wary-500 in near future.
Also we hope anyone contribute those translation of the desktop and scripts.

m06

Posted: Mon 24 Jan 2011, 18:41
by L18L
Thank you, shinobar and rodin.s, the m06 is really a great step!
specially the inclusion of the language-packs
and seamonkey already localized.
now it up to us translators to improve the translations of the puppy scripts.
Just one suggestion:
We all know what is in welcome1stboot
But I think a newcomer will need to read this informations more than just once. I suggest to repeat the welcome (not only at 1st boot) and include a checkbox (Do not show this information any more) unless the checkbox is ticked, so everyone will be happy.

xorgwizard

Posted: Mon 24 Jan 2011, 18:44
by L18L
L18L wrote:
Quote:
xorgwizard: silently does not anything

solved: was with xvesa
The Dialog was in the error file.
A small message on the screen would have been nicer.
and here is the message (similiar in video-wizard):
insert 5 lines in /usr/sbin/xorgwizard at line 60

Code: Select all

export LANGORG=$LANG

CURRENTX="`readlink /usr/bin/X`"
if [ "$CURRENTX" != "Xorg" ] && [ "`pidof X`" != "" ];then
 Xdialog --title "$(gettext 'Xorg Video Wizard')" --msgbox "$(gettext 'The Xorg X server is not currently running.
Select the Xvesa Video Wizard from the menu. Click OK button to exit...')" 0 0
 exit
fi

mkdir -p /usr/lib/xorg/modules/drivers-backup

i18n for pupscan pwsget video-wizard wakepup2 xdelta_gui

Posted: Mon 24 Jan 2011, 20:23
by L18L
rodin.s wrote:
I am not sure where to include them, in usr_sbin.pot maybe.
I think video-wizard should go into the builtin xorgwizard.po that means being available before the language-pack is installed.

wakepup2 now is in applications.extra (candidates for disappearing?)

I would build a new TEXTDOMAIN (pup_extras, pup_nicetohave ?)
I used unusual gettext method in zigbert's pwsget. It was new idea for me. It could also be used in gettexting new PPM interface.
I never used pwsget, wget is much simpler to use in console and it is fully localized (wget.mo). pwsget is a simple exercise for Gtkdialog without error message if URL not existent, so could you please explain your 'unusual gettext method'?
Thanks in advance

Re: welcome not just at 1st boot

Posted: Mon 24 Jan 2011, 23:16
by shinobar
L18L wrote:Just one suggestion:
We all know what is in welcome1stboot
But I think a newcomer will need to read this informations more than just once. I suggest to repeat the welcome (not only at 1st boot) and include a checkbox (Do not show this information any more) unless the checkbox is ticked, so everyone will be happy.
Good point, L18L!

The LupQ-511 has a link to the welcom1stboot.html at 'help', the index.html.
But now the welcome1stboot is a program...

By the way, do you need the seach box and pulldown to link the documentations on 'help', the index.html?
It takes remarkable time to rebuild index.html(indexgen.sh) for slow PC's.
We can replace the 'help', the index.html with the program /usr/sbin/puppyhelp, to be modified.

But they are not a scope of translation but a suggestion of next wary.

Re: xorgwizard

Posted: Mon 24 Jan 2011, 23:42
by shinobar
L18L wrote:xorgwizard: silently does not anything

solved: was with xvesa
The Dialog was in the error file.
It maybe the problem of translation. Seems no matter Xvesa or Xorg.
See '/tmp/xorgwizard-errors.log'.

Type the command with locale C from a virtual terminal. it works still under Xvesa.

Code: Select all

lang=C xorgwizard

usr_sbin.pot updated

Posted: Tue 25 Jan 2011, 06:13
by shinobar
EDIT: Wait a while. The domain of the video-wizard shall be moved to xorgwizard according to the suggestion of L18L.
Another question is how about video_upgrade_wizard and wizardwizard...

(NOT yet attached the pot file of usr_sbin updated with the new i18n scripts by rodin.s.
You can replace /usr/share/doc/nls/usr_sbin with the extracted.)
It will be inculded in next release of wary-500m.

Re: Supported languages

Posted: Tue 25 Jan 2011, 09:19
by oui
Hi Shinobar

Thank you for your answer
shinobar wrote:
oui wrote:what ist with Hindi (official language of India) / Urdu (common tongue with Pakistan)
Thanks oui for joining us.
They are supported bylang_support_all-1.5.sfs at this point of time.
But the lang_support_all-1.5.sfs may be outdated and it shall be updated for Wary-500 in near future.
Also we hope anyone contribute those translation of the desktop and scripts.
of course I would be able to help to translate.

I do it there already for an other project.

but

a. I am busy now with this matter on the other project (depending of the time I can give daily to such an occupation), it is a very interesting matter: a new experimental project based on the packages of Linux from Scratch

b. I give you the url of the other project per message. the other project is well organized. if you register and loggin in the wiki you will see that the 2d page above is not actual any more because someone did actualize it on English, and for this page English was create as the mother version. the wiki itself controls the changes between the versions...

c. in Puppy we have somewhat what seems to become a chaos :wink: ...

for ex.:

you version of Wary 500 i18 is very interesting for me

but

the version quirky 120 is more interesting for me because of the existence of a KDE4-quirky120.sfs!

and as the all things go separately outside of woof it is a big problem to try to make the joining of the two good ideas in one common goal a wary/quirky4i18&kde

it seems not possible any more to coordinate the actions in the puppy world so that all efforts contribute to a same common thing...

I suppose that you probably have analog ideas concerning your work with i18 and if you see a solution, I would be happy to help you in some times.

salut

'unusual gettext method', countrywizard

Posted: Tue 25 Jan 2011, 16:40
by rodin.s
could you please explain your 'unusual gettext method'?
It may be unusual only for me. I couldn't gettext something within strong quotes the usual way.
I usually do:

Code: Select all

var="<label>something</label>"
with gettext:

Code: Select all

var="<label>$(gettext 'something')</label>"
With strong quotes it didn't work:

Code: Select all

var='<label>something</label>'
and I did it this way:

Code: Select all

var='<label>'$(gettext 'something')'</label>'
I used this also in pup-advert-blocker.

I also have made additional pet for Russian l10n with some things to improve it:
1. Added catalog /root/Startup/ with freememapplet_tray and network_tray. It would be nice to have them gettexted. But I don't know how to add gettext in C-programs so Russian is just hard coded into that binaries.
2. In /usr/share/applications/ I put some translated menu items. I think than Grub(legacy) should be left untranslated. I don't know how to translate that properly and Grub(легати

'unusual gettext method'

Posted: Tue 25 Jan 2011, 20:12
by L18L
Thank you rodin.s
was also for me unusual. Did you try:

Code: Select all

var="<label>$(gettext \"something\")</label>"
I hope your explanation will help others, too :)
and here gettext bash with GTK

I was used to do it this way:

Code: Select all

var="<label>`gettext  \"something\"`</label>"
not strong quotes but backticks. Why backticks? Spent 2 hours now to find the website from where I got it, no success! So take my explanation from memory:
"crackers can corrupt .po files by includung code (between backticks).
If backticks are used in the script then the backtick in the po/mo will create a runtime error and the bad code can do no harm."

for the pup-advert-blocker
I suggest TEXTDOMAIN=pup-advert-blocker ! =script name (starting pup....)
putting more in 1 textdomain makes sense if there are some identical sentences or if a script is called from another.
shinobar, what do you think?
Thanks for bringing the blocker to my attention, very useful!

help

Posted: Tue 25 Jan 2011, 20:33
by L18L
shinobar wrote:
By the way, do you need the seach box and pulldown to link the documentations on 'help', the index.html?
I doubt anyone has used it!
But
Enter the name of a utility program (ex: cat, ls) and click 'Search' button:
shows any command (in puppy or not!) and now I have created something better!
That was the good news
and the bad news: for german only
manpages-de-0.5_NLS.pet (only WHICH is in puppy)
usage: in textconsole type man ls (for example) and the manual for ls is in the browser.

I have browsed in "manpages.<luci's mother>.com" (you know what I mean), there are directories for other languages but almost empty for <language>.UTF8 and <language> not displaying correctly.

Edited 2011-02-07
puppy-manpages_NLS in 13 languages as pet or sfs now available in Localization Project

------
edited 2013-02-07
langpack_de-* contains manpages

gettext methods

Posted: Tue 25 Jan 2011, 20:40
by rodin.s
I use:

Code: Select all

$(gettext "TEXT")
$(gettext 'TEXT')
`gettext \"TEXT\"`
`eval_gettext \"TEXT \\\$VAR\"`
and this new "zigbert method"

Code: Select all

'$(gettext 'TEXT')'

gettext methods

Posted: Tue 25 Jan 2011, 20:50
by L18L
ngettext is also very useful, especially if there is more than 1 plural form in a language.

Re: manpages

Posted: Thu 27 Jan 2011, 01:27
by shinobar
L18L wrote:manpages-de-0.5_NLS.pet (only WHICH is in puppy)
gud, L18L.
As for the Japanese manpages, we are providing with the devx Japanese version. I can extract them from it.

I don't know "manpages.<luci's mother>.com" :roll:

on-the-fly sfs loader

Posted: Thu 27 Jan 2011, 04:12
by shinobar
For your information:
I am now working on improved auto NLS loading system.
The key issue is loading extra sfs files on-the-fly.
I will upload the new designed sfs loader in couple of days.

Manpages

Posted: Thu 27 Jan 2011, 11:21
by L18L
sorry for being too cryptic :(
DISTRO_COMPAT_VERSION of "lucid puppy" :roll:

for the .pet:
It was my first one.
I will make a better one if more languages (ja) available
renaming to manpages_NLS (without de)
and dependency of man

pup-advert-blocker

Posted: Thu 27 Jan 2011, 19:34
by L18L
@rodin.s
tested
success
thank you