View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003493 | mantisbt | localization | public | 2004-01-07 20:26 | 2004-02-06 16:16 |
| Reporter | spinneratz | Assigned To | vboctor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18.0 | ||||
| Summary | 0003493: Missing string $s_bug_deleted in german translation | ||||
| Description | In strings_german.txt there is no string $s_bug_deleted. This results in an error (APPLICATION WARNING #300: FEHLER: Textelement nicht gefunden.), when deleting bugs. | ||||
| Tags | No tags attached. | ||||
| Attached Files | 3493_use_missing_strings_from_english.diff (1,071 bytes)
Index: core/lang_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/lang_api.php,v
retrieving revision 1.15
diff -u -r1.15 lang_api.php
--- core/lang_api.php 24 Feb 2003 13:09:34 -0000 1.15
+++ core/lang_api.php 8 Jan 2004 21:55:10 -0000
@@ -29,14 +29,19 @@
if ( $g_lang_current == $p_lang ) {
return;
}
-
+
// define current language here so that when custom_strings_inc is
// included it knows the current language
$g_lang_current = $p_lang;
$t_lang_dir = dirname ( dirname ( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR;
+
+
+ if ( strcasecmp( $p_lang, "english" ) !== 0 ) {
+ require_once( $t_lang_dir . 'strings_english.txt' );
+ }
require_once( $t_lang_dir . 'strings_'.$p_lang.'.txt' );
-
+
# Allow overriding strings declared in the language file.
# custom_strings_inc.php can use $g_active_language
$t_custom_strings = dirname ( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'custom_strings_inc.php';
| ||||
|
The main problem here is not that the string is missing from the German translation. The problem is that Mantis should use the English version for missing strings (rather than prompting an error). Please report another issue for strings that are missing/not-translated in the German language, with their corresponding translation. Thanks in advance. This is now fixed in CVS. |
|