View Issue Details

IDProjectCategoryView StatusLast Update
0004528mantisbtlocalizationpublic2004-11-06 06:52
Reporterryandesign Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0 
Fixed in Version0.19.1 
Summary0004528: Error on logout page with language=auto
Description

When I log out, a PHP error occurs, in that it can't find the file "strings_auto.txt".

Additional Information

Warning: lang_load(/Library/WebServer/mantis/mantis-0.19.0/lang/strings_auto.txt) [function.lang-load.html]: failed to open stream: No such file or directory in mantis/mantis-0.19.0/core/lang_api.php on line 37
called from lang_load('auto') in mantis/mantis-0.19.0/core/lang_api.php on line 126
called from lang_ensure_loaded('auto') in mantis/mantis-0.19.0/core/lang_api.php on line 202
called from lang_get('charset') in mantis/mantis-0.19.0/core/print_api.php on line 34
called from print_header_redirect('https://www.example.com/mantis/login_page.php') in mantis/mantis-0.19.0/logout_page.php on line 21

TagsNo tags attached.

Relationships

has duplicate 0004643 closedthraxisp Unable to send reminders to people with language set to "Auto" 
has duplicate 0004800 closedWanderer Can't handle auto-language-setting 
related to 0004606 closedthraxisp emails have non-english strings in relationship section 

Activities

bier0012

bier0012

2004-09-13 06:22

reporter   ~0007539

Same thing happens to me while trying to log in with language=auto
Workaround for me was to change the value to my local language like "lanuage=german"

ryandesign

ryandesign

2004-09-13 07:25

reporter   ~0007548

The other workaround for now would be to copy your default language file to "strings_auto.txt", or if you're handy with the shell, to make that a symlink to your default language file.

cd /path/to/mantis/lang
ln -s strings_german.txt strings_auto.txt

CHofmann

CHofmann

2004-09-22 11:20

reporter   ~0007683

Same thing also applies if you try to request a lost password.

thraxisp

thraxisp

2004-09-22 12:12

reporter   ~0007686

$g_default_language can be set to 'auto', but $g_fallback_language cannot be (in case the browser language can't be figured out).

The checks for language not set, and 'auto' need to be reversed.

thraxisp

thraxisp

2004-09-22 12:47

reporter   ~0007689

fixed in CVS, order of auto, null language checks reversed to allow $g_default_language to be 'auto'.