Skip to main content

Search and Top Navigation

#14593 closed bug (notabug)

Opened September 22, 2015 12:35AM UTC

Closed September 22, 2015 04:07PM UTC

Language files stored on github are not consistent

Reported by: jobst Owned by:
Priority: minor Milestone: none
Component: ui.core Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:
Description

Hi.

The language file stored in/at

https://github.com/jquery/jquery-ui/tree/master/ui/i18n

are inconsistent.

For example the file for en-au contains

datepicker.regional[ "en-AU" ] = {

while the file for it contains

datepicker.regional.it = {

making the setting for the default language when using the datepicker tricky to call.

Should it not be consistent as in

datepicker.regional["en-AU"] = {

datepicker.regional["it"] = {

In that case I only have to call the initialisation as

datepicker.setDefaults( datepicker.regional["it"] );

or

datepicker.setDefaults( datepicker.regional["en-au"] );

In case of the Italian language file it would raise an error "not defined".

thanks

Jobst

Attachments (0)
Change History (2)

Changed September 22, 2015 12:52AM UTC by jobst comment:1

Above was my first submission ... and it did not format as I thought it would, apologies.

It should have been:

Should it not be consistent as in

    datepicker.regional['en-AU'] = {
  or
    datepicker.regional['it'] = {

In that case I only have to call the initialisation as

    datepicker.setDefaults(  datepicker.regional["it"] );
  or
    datepicker.setDefaults(  datepicker.regional["en-us"] );

In the case of the current italian file it raises an error "undefined".

Changed September 22, 2015 04:07PM UTC by scottgonzalez comment:2

resolution: → notabug
status: newclosed

There's nothing tricky or inconsistent here. We use dot notation when bracket notation isn't necessary. You can use either in your code.