Page 1 of 1

Urgent: Language Packages needs to be refined/reverted

Posted: Wed 26 Nov 2014, 07:12
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

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

Posted: Tue 02 Dec 2014, 12:44
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