Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28140/core
Modified Files:
lang_api.php
Log Message:
Fixed #5693: Use English language if a string is not found in other languages.
Index: lang_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/lang_api.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- lang_api.php 24 May 2005 23:22:47 -0000 1.37
+++ lang_api.php 1 Jun 2005 13:19:31 -0000 1.38
@@ -218,9 +218,14 @@
if ( lang_exists( $p_string, $t_lang ) ) {
return $g_lang_strings[ $t_lang ][ $p_string];
} else {
- error_parameters( $p_string );
- trigger_error( ERROR_LANG_STRING_NOT_FOUND, WARNING );
- return '';
+ if ( $t_lang == 'english' ) {
+ error_parameters( $p_string );
+ trigger_error( ERROR_LANG_STRING_NOT_FOUND,
WARNING );
+ return '';
+ } else {
+ # if string is not found in a language other
than english, then retry using the english language.
+ return lang_get( $p_string, 'english' );
+ }
}
}
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|