Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
1.4.2
-
b55
-
x86
-
linux
-
Verified
Description
Name: rmT116609 Date: 09/20/2004
A DESCRIPTION OF THE REQUEST :
Add support for the locale gl_ES in the jre for date, currency and date format. This locale identifies the galician language.
JUSTIFICATION :
The galician language (gl_ES) is a official language at Spain and in near future at the European Union. This locale is needed to format dates and number in a intertionalized application.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The currency, number format and date format is identical to Spanish locale (es_ES). The difference is days and months names. The full list of days and months in galician are:
january = "xaneiro"
february = "febreiro"
march = "marzo"
april = "abril"
may = "maio"
june = "xu\u00f1o"
july = "xullo"
august = "agosto"
september = "setembro"
october = "outubro"
november = "novembro"
december = "decembro"
month 13 if applicable = ""
abb january = "xan."
abb february = "feb."
abb march = "mar."
abb april = "abr."
abb may = "maio"
abb june = "xu\u00f1o"
abb july = "xullo"
abb august = "ag."
abb september = "set."
abb october = "oct."
abb november = "nov."
abb december = "dec."
abb month 13 if applicable = ""
Sunday = "domingo"
Monday = "luns"
Tuesday = "martes"
Wednesday = "m\u00e9rcores"
Thursday = "xoves"
Friday = "venres"
Saturday = "sabado"
abb Sunday = "do."
abb Monday = "lu."
abb Tuesday = "ma."
abb Wednesday = "me."
abb Thursday = "xo."
abb Friday = "ve."
abb Saturday = "sa."
ACTUAL -
No locale support
---------- BEGIN SOURCE ----------
import java.util.Locale;
import java.text.DateFormat;
class Test {
public static void main(String[] ar) {
Locale l = new Locale("gl", "ES");
DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, l);
System.out.println(df.format(new Date()));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
1M-^OÀ» Implement the classes sun.text.resources.LocaleElements_gl and sun.text.resources.DateFormatZoneData_gl (search the net for a implementation of other locale).
2M-^OÀ» Copy a .jar with this classes in the $JAVA_HOME/jre/lib/ext directory
(Incident Review ID: 311032)
======================================================================
A DESCRIPTION OF THE REQUEST :
Add support for the locale gl_ES in the jre for date, currency and date format. This locale identifies the galician language.
JUSTIFICATION :
The galician language (gl_ES) is a official language at Spain and in near future at the European Union. This locale is needed to format dates and number in a intertionalized application.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The currency, number format and date format is identical to Spanish locale (es_ES). The difference is days and months names. The full list of days and months in galician are:
january = "xaneiro"
february = "febreiro"
march = "marzo"
april = "abril"
may = "maio"
june = "xu\u00f1o"
july = "xullo"
august = "agosto"
september = "setembro"
october = "outubro"
november = "novembro"
december = "decembro"
month 13 if applicable = ""
abb january = "xan."
abb february = "feb."
abb march = "mar."
abb april = "abr."
abb may = "maio"
abb june = "xu\u00f1o"
abb july = "xullo"
abb august = "ag."
abb september = "set."
abb october = "oct."
abb november = "nov."
abb december = "dec."
abb month 13 if applicable = ""
Sunday = "domingo"
Monday = "luns"
Tuesday = "martes"
Wednesday = "m\u00e9rcores"
Thursday = "xoves"
Friday = "venres"
Saturday = "sabado"
abb Sunday = "do."
abb Monday = "lu."
abb Tuesday = "ma."
abb Wednesday = "me."
abb Thursday = "xo."
abb Friday = "ve."
abb Saturday = "sa."
ACTUAL -
No locale support
---------- BEGIN SOURCE ----------
import java.util.Locale;
import java.text.DateFormat;
class Test {
public static void main(String[] ar) {
Locale l = new Locale("gl", "ES");
DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, l);
System.out.println(df.format(new Date()));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
1M-^OÀ» Implement the classes sun.text.resources.LocaleElements_gl and sun.text.resources.DateFormatZoneData_gl (search the net for a implementation of other locale).
2M-^OÀ» Copy a .jar with this classes in the $JAVA_HOME/jre/lib/ext directory
(Incident Review ID: 311032)
======================================================================
Attachments
Issue Links
- relates to
-
JDK-4052440 RFE: Locale Sensitive Services SPI support
-
- Resolved
-