globalize icon indicating copy to clipboard operation
globalize copied to clipboard

What's "Globalization"?

Open yucca42 opened this issue 15 years ago • 1 comments

Trying to use the revamped jQuery Global, i.e. Globalization, in the most obvious way...

I get the error message "Globalization is not defined". Apparently the reason is that Globalization.all.js uses the identifier "Globalization".

So there's presumably something not quite finished yet in the transition or there is something one should do (define "Globalization"?) before calling the methods, but what? (The documentation is silent about this.)

yucca42 avatar Jun 19 '11 13:06 yucca42

The globinfo directory is no longer and what was lib/globalize.cultures.js (for a few days) is now lib/cultures/globalize.cultures.js.

See examples/browser/index.html. Instead of

    <script src="jquery/lib/globalize.cultures.js"></script>
    <script src="jquery/globinfo/Globalization.all.js"></script>
    <script>alert(Globalize.format(new Date(),"D","fi"))</script>

it should be

    <script src="lib/globalize.js"></script>
    <script src="lib/cultures/globalize.cultures.js"></script>
    <script>alert(Globalize.format(new Date(),"D","fi"))</script>

rdworth avatar Jun 19 '11 14:06 rdworth