About
PPM v2
ref.:
http://murga-linux.com/puppy/viewtopic.php?t=97623
Very difficult to translate. Some observations and some solutions.
- petget
/usr/lib/gtkdialog/
All boxes:
gettext right, translation possible with geany or poeditor, but the gui remain in english...
My no-solution: replace the old 'petget' file in /usr/local/petget... now all works fine.
Please, if anyone has the right solution would be better, the new graphics are better.
- dowloadpkgs.sh
line 37
from
to
- installpreview.sh
line 160
from
Code: Select all
<button><label>More info</label><action>/usr/local/petget/fetchinfo.sh ${TREE1} & </action></button>
to
Code: Select all
<button><label>$(gettext 'More info')</label><action>/usr/local/petget/fetchinfo.sh ${TREE1} & </action></button>
line 167
from
Code: Select all
<label>Install ${TREE1}${ONLYMSG}</label>
to
Code: Select all
<label>$(gettext 'Install') ${TREE1}${ONLYMSG}</label>
line 172
from
to
Code: Select all
<label>$(gettext 'Download-only')</label>
- installpkg.sh
line 137
from
Code: Select all
pupmessage -bg '#ff8080' -fg black ${DISPTIME2} -title "$(gettext 'Package:') ${DLPKG_NAME}" "$(gettext 'Sorry, but this package is already installed. Cannot install it twice.')"
to
translation impossible at the moment.
WARNINGS!!!
There are the same 'voices' in 3 different files.
If the translations are not exactly identical, PPM v2 crashes.
This could create confusion.
Here the strings involved:
- pkg_chooser.sh
line 184
"$(gettext 'Download packages (no install)')")
line 200
"$(gettext 'Step by step installation (classic mode)')")
line 513
<item>'$(gettext 'Auto remove')'</item>
line 514
<item>'$(gettext 'Step by step remove (classic mode)')'</item>
- removemodes.sh
line 190
"$(gettext 'Auto remove')") auto_remove;;
line 191
"$(gettext 'Step by step remove (classic mode)')") classic_remove;;
- installmodes.sh
line 426
"$(gettext 'Download packages (no install)')")
line 454
"$(gettext 'Step by step installation (classic mode)')")
"Are also variables that pass from one script to another. If not identical they do not work"... yeah, this is normal
... but that a translation interfere with the code creating a program crash, I do not think it's normal