View Issue Details

IDProjectCategoryView StatusLast Update
0010284mantisbtlocalizationpublic2009-06-26 12:02
Reportercincinatofurtado Assigned Togiallu  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformLinuxOSGNU/LINUX DEBIAN ETCHOS Version2.6.18-6-686
Product Version1.2.0a3 
Summary0010284: Language auto-detection error
Description

When setting the variable $g_default_language to 'auto' in config_inc.php file, I got a error message when trying to access Mantis:

SYSTEM WARNING: require_once(/var/www/mantis/lang/strings_portugese_brazil.txt) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required '/var/www/mantis/lang/strings_portugese_brazil.txt' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mantis/core/lang_api.php on line 55

The problem was because Mantis auto detects the language in my browser's language (I tried Chrome, Firefox 3.0 and IE6) and try to open the strings_portugese_brazil.txt file, which doesn't exists (look the difference between portugese and portugUese!).

So, I solved just by copying strings_portuguese_brazil.txt to strings_portugese_brazil.txt and I got it working well.

Regards!

Steps To Reproduce

Install Mantis insert the line above in mantis/config_inc.php :
$g_default_language to 'auto' ;

TagsNo tags attached.

Relationships

duplicate of 0010220 closedjreese $p_lang = portugese 

Activities

giallu

giallu

2009-04-03 02:34

reporter   ~0021378

I think this is a duplicate of 0010220, feel free to reopen if you think this is really a different issue.