[greenstone-users] question about gsprintf,please help me

From qq6@cs.waikato.ac.nz
DateTue Dec 16 10:00:37 2008
Subject [greenstone-users] question about gsprintf,please help me
In-Reply-To (4105c9810812122139y7e9ea093q4ba0af2705057e9f-mail-gmail-com)
Hi Amin

"$linetext =~ s/(s*)#s+Updateds+(d?d-DDD-dddd)s*$//i;"
intended to clean up the string by deleting blank spaces,#,blank space
followed by "Updated" and date with empty. Please see
http://www.comp.leeds.ac.uk/Perl/sandtr.html#remembering for more details.

In your case, there might be some special characters in your translations,
for which the expression couldn't handle properly. If you could find those
special characters that will be help for developers to find a solution.
And the way to do it is not difficult. Try to write an simple Perl code to
pass all your translated strings with this expression, then you might find
the problem.

Regards
Quan

> hello every one
> can any body out there tell me what is the line 231 in file
> gs2buildperllibgsprintf.pm is good for ?
> i wanted to traslate the strings.properties inside gs2buildperllib to
> persian
> but when i made a strings_fa.properties file like other traslations and
> saved it az utf-8 it returnd an error while
> trying to load the gli
> so i traced back the error and got to the line 231 in file
> gs2buildperllibgsprintf.pm and that wolude be the line below
> $linetext =~
> s/(s*)#s+Updateds+(d?d-DDD-dddd)s*$//i;
> becouse of this line my xml out put from the file downloadeinfo.pl wasent
> well formed
> and i got the error when i was trying to load the gli
> but when i commented out the line 231 in file
> gs2buildperllibgsprintf.pm
> my errors where gone and the gli loaded perfectly whit my traslations in
> there own palceses
> so sombody please tell me what is this line good for and
> it apears this line was making my utf-8 code to have some syntax error in
> it
> !!!!!
> if that problem was spose to be a bug shoulde i report it in the tracs ?
> please help me
> tnx every one
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>