GNOME Bugzilla – Bug 447741
Language selection causes problems with firefox's dashed locales
Last modified: 2007-06-16 14:24:53 UTC
Please describe the problem: Firefox returns locales with dashes (eg. pt-BR) instead of underscores (pt_BR), and so a LINGUAS file with underscored locales can't be matched against. Steps to reproduce: 1. Add pt_BR in LINGUAS, pt_BR.po, make 2. Install Quick Locale Switcher Addon in firefox and select pt-BR Actual results: Pages don't show up in Brazilian Portuguese. Expected results: Does this happen every time? Other information: Attaching a patch
Created attachment 89985 [details] [review] Fixes language selection So this is a quick hack to temporarily get the whole list in dashes instead of underscores. This could create a problem if you had both underscores and dashes, but we don't have that. The correct thing would be to modify the library used for matching.
Fixed in rev. 387. Thanks Dimitris.