logo       
Google Custom Search
    AddThis Social Bookmark Button

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt/core lang_api.php,1.37,1.38: msg#00002

Subject: mantisbt/core lang_api.php,1.37,1.38
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 ...
<Prev in Thread] Current Thread [Next in Thread>