As you have no doubt noted while working your way along the message list,
this is a problem that has occurred for others as well, see subject "Re:
map-locale.js unexistant for en-US"

The detailed comments by Alex_Z in my message of 2/16 appear to be more to
the point of the problem I am trying to resolve.

> This error is intended to be benign, but my apologies if it's causing
> you trouble.
> 
> The rationale behind it is as follows: the locale of the user's browser
> (e.g., "zh-TW" for Chinese in Taiwan) is used to load localization
> bundles in a particular sequence:
> 
>   en
>   zh
>   zh-TW
> 
> "en" is loaded because that's intended to be the default / standard
> bundle of localization resources, and the other bundles override it.
> This is so that when a new string is introduced into "en", forgetting to
> update other localization bundles doesn't break Exhibit for other
> locales--that English string is simply used in the other locales and
> somebody in those locales will come back and bug us about it.
> 
> Now Exhibit attempts to load both "zh" and "zh-TW" even if they don't
> exist, or even if only one of them exists. This "try and fail" approach
> avoids us having a registry of locales that we support. I don't know if
> that's a good idea or not. I think most Javascript APIs out there don't
> do much sophisticated internationalization / localization so that I can
> adopt their best practices.
> 
> David
> 
> Bruce Robertson wrote:
>> While investigating this I find that there is an error, a link to a non
>> existent resource.
>> 
>> There is a link or refernce to a locale in folder en-us but this folder does
>> not exist.
>> 
>> You can locate this error as follows:
>> 
>> Use Safari with Web Inspector installed.
>> 
>> Go to <http://simile.mit.edu/exhibit/examples/nobelists/nobelists.html>
>> 
>> Choose Inspect Element
>> 
>> In result, choose Console
>> 
>> Note 4 results:
>> 
>> Resource interpreted as script but transferred with MIME type text/html.
>> http://static.similie.edu/exhibit/extensions-2.0/time/locales/en-us/locale.j
>> s
>> 
>> Resource interpreted as script but transferred with MIME type text/html.
>> http://static.similie.edu/exhibit/api-2.0/locales/en-us/locale.js
>> 
>> SyntaxError: Parse error
>> http://static.similie.edu/exhibit/extensions-2.0/time/locales/en-us/locale.j
>> s
>> Line 1
>> 
>> SyntaxError: Parse error
>> http://static.similie.edu/exhibit/api-2.0/locales/en-us/locale.js
>> Line 1
>> 
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>   
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
> 

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to