Urgent: Language Packages needs to be refined/reverted

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

Urgent: Language Packages needs to be refined/reverted

#1 Post by LazY Puppy »

Hi, Language Package Builders.

Please do check your work since some translations are destroying useful functions.

Example:

Code: Select all

FPATH="/usr/sbin/lazy_sfs_load"
TEST=`stat -c %F "$FPATH"`
if [ "$TEST" = "symbolic link" ]; then
	FPATH=`stat -c %N "$FPATH" | cut -f3 -d '\`'`
	FPATH=${FPATH%?}
fi
If $TEST is returned as 'symbolic link' $FPATH contains its target in the end.

After installing a Language Package $TEST doesn't return as 'symbolic link' anymore. Instead it returns translated - e.g. for DE: it returns as 'symbolischer Link' or 'Symbolischer Link'.

Code TEST=`stat -c %F "$FPATH"` is not usable anymore after this, except one would check for all possible translations - which would be a ugly pain.

There was a second issue related to that, which I can't found at the moment, but will post as soon as I'm stumbling over it.

RSH

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Urgent: Language Packages needs to be refined/reverted

#2 Post by L18L »

Hi lazy coder
LazY Puppy wrote:Code TEST=`stat -c %F "$FPATH"` is not usable anymore after this, except one would check for all possible translations - which would be a ugly pain.
Look into

Code: Select all

stat --help
and select an option other than %F

Post Reply