From: Teemu A. <in...@us...> - 2005-03-23 19:18:37
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/I18N In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22537/I18N Modified Files: Initializer.pm Log Message: 1) Changed logging in I18N to be less intrusive 2) I18N returns requested key itself with [_\d+] replaced if no translation is found and debugging is off 3) Improved logic in deciding the user language Index: Initializer.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/I18N/Initializer.pm,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Initializer.pm 18 Mar 2005 04:09:50 -0000 1.14 --- Initializer.pm 23 Mar 2005 19:17:57 -0000 1.15 *************** *** 146,150 **** if ( $all_messages->{ $lang }{ $key } ) { my $source = $all_messages->{ $lang }{SOURCE}{ $key }; ! $log->warn( "DUPLICATE MESSAGE KEY FOUND. Key '$key' from ", "'$file' was already found in message file ", --- 146,151 ---- if ( $all_messages->{ $lang }{ $key } ) { my $source = $all_messages->{ $lang }{SOURCE}{ $key }; ! $log->is_debug && ! $log->debug( "DUPLICATE MESSAGE KEY FOUND. Key '$key' from ", "'$file' was already found in message file ", |