frinellkd / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

EXHIBIT: Exhibit pulls in files that don't exist #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At least the 2.0 branch, but probably trunk too, try to load this file,
which is a 404:

http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/api/locales/en-
US/locale.js

Original issue reported on code.google.com by GabrielR...@googlemail.com on 3 Apr 2009 at 6:15

GoogleCodeExporter commented 9 years ago

Original comment by stefano.mazzocchi@gmail.com on 3 Apr 2009 at 9:22

GoogleCodeExporter commented 9 years ago
I found a similar problem, which I think comes from the following section in:
http://api.simile-widgets.org/exhibit/2.2.0/exhibit-api.js

This appears to sniff the language from the browser (in my case Firefox) and 
look for
the default language.  In my case this is "en-GB" which does not exist in 2.2.0 
where
the locale folder only has "en"
http://api.simile-widgets.org/exhibit/2.2.0/locales/

<...>
var defaultClientLocales = ("language" in navigator ? navigator.language :
navigator.browserLanguage).split(";");
        for (var l = 0; l < defaultClientLocales.length; l++) {
            var locale = defaultClientLocales[l];
            if (locale != "en") {
                var segments = locale.split("-");
                if (segments.length > 1 && segments[0] != "en") {
                    Exhibit.locales.push(segments[0]);
                }
                Exhibit.locales.push(locale);
            }
        }

<...>

Original comment by jutu...@gmail.com on 20 May 2009 at 12:05

GoogleCodeExporter commented 9 years ago
Is this issue fixed?

Original comment by bhuv...@gmail.com on 13 Feb 2012 at 5:11