summaryrefslogtreecommitdiff
path: root/sql/sql_locale.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mysql.com>2009-10-06 11:02:51 +0500
committerAlexander Barkov <bar@mysql.com>2009-10-06 11:02:51 +0500
commit27936529e06368557e1b662d020a87690af200f4 (patch)
treefaf8af7c0ac5bf9f8ea83f0a0562915ed8818ed5 /sql/sql_locale.cc
parent636ea6a1c464b247a3665bebac7bf28495ac087a (diff)
downloadmariadb-git-27936529e06368557e1b662d020a87690af200f4.tar.gz
Backporting WL#4642 Greek locale for DAYNAME, MONTHNAME, DATE_FORMAT
added: mysql-test/r/locale.result mysql-test/t/locale.test modified: mysql-test/r/variables.result mysql-test/t/variables.test sql/sql_locale.cc
Diffstat (limited to 'sql/sql_locale.cc')
-rw-r--r--sql/sql_locale.cc72
1 files changed, 72 insertions, 0 deletions
diff --git a/sql/sql_locale.cc b/sql/sql_locale.cc
index b59c3f16735..fcfd60e72e6 100644
--- a/sql/sql_locale.cc
+++ b/sql/sql_locale.cc
@@ -3009,6 +3009,77 @@ MY_LOCALE my_locale_zh_HK
/***** LOCALE END zh_HK *****/
+/***** LOCALE BEGIN el_GR: Greek - Greece *****/
+static const char *my_locale_month_names_el_GR[13]=
+{
+ "Ιανουάριος", "Φεβρουάριος", "Μάρτιος",
+ "Απρίλιος", "Μάιος", "Ιούνιος",
+ "Ιούλιος", "Αύγουστος", "Σεπτέμβριος",
+ "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος", NullS
+};
+
+static const char *my_locale_ab_month_names_el_GR[13]=
+{
+ "Ιαν", "Φεβ", "Μάρ",
+ "Απρ", "Μάι", "Ιούν",
+ "Ιούλ","Αύγ", "Σεπ",
+ "Οκτ", "Νοέ", "Δεκ", NullS
+};
+
+static const char *my_locale_day_names_el_GR[8] =
+{
+ "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη",
+ "Παρασκευή", "Σάββατο", "Κυριακή", NullS
+};
+
+static const char *my_locale_ab_day_names_el_GR[8]=
+{
+ "Δευ", "Τρί", "Τετ", "Πέμ",
+ "Παρ", "Σάβ", "Κυρ", NullS
+};
+
+static TYPELIB my_locale_typelib_month_names_el_GR=
+{
+ array_elements(my_locale_month_names_el_GR) - 1,
+ "", my_locale_month_names_el_GR, NULL
+};
+
+static TYPELIB my_locale_typelib_ab_month_names_el_GR=
+{
+ array_elements(my_locale_ab_month_names_el_GR)-1,
+ "", my_locale_ab_month_names_el_GR, NULL
+};
+
+static TYPELIB my_locale_typelib_day_names_el_GR=
+{
+ array_elements(my_locale_day_names_el_GR)-1,
+ "", my_locale_day_names_el_GR, NULL
+};
+
+static TYPELIB my_locale_typelib_ab_day_names_el_GR=
+{
+ array_elements(my_locale_ab_day_names_el_GR) - 1,
+ "", my_locale_ab_day_names_el_GR, NULL
+};
+
+MY_LOCALE my_locale_el_GR
+(
+ 109,
+ "el_GR",
+ "Greek - Greece",
+ FALSE,
+ &my_locale_typelib_month_names_el_GR,
+ &my_locale_typelib_ab_month_names_el_GR,
+ &my_locale_typelib_day_names_el_GR,
+ &my_locale_typelib_ab_day_names_el_GR,
+ 11, /* max mon name length */
+ 9, /* max day name length */
+ ',', /* decimal point el_GR */
+ '.', /* thousands_sep el_GR */
+ "\x80" /* grouping el_GR */
+);
+/***** LOCALE END el_GR *****/
+
/*
The list of all locales.
Note, locales must be ordered according to their
@@ -3126,6 +3197,7 @@ MY_LOCALE *my_locales[]=
&my_locale_no_NO,
&my_locale_sv_FI,
&my_locale_zh_HK,
+ &my_locale_el_GR,
NULL
};