Merge lp:~mmakonnen/openerp-web/70_am_datejs_redo into lp:openerp-web/7.0

Proposed by Michael Telahun Makonnen
Status: Merged
Merge reported by: Xavier (Open ERP)
Merged at revision: not available
Proposed branch: lp:~mmakonnen/openerp-web/70_am_datejs_redo
Merge into: lp:openerp-web/7.0
Diff against target: 199 lines (+195/-0)
1 file modified
am-ET.js (+195/-0)
To merge this branch: bzr merge lp:~mmakonnen/openerp-web/70_am_datejs_redo
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+141307@code.launchpad.net

Description of the change

This change adds an Amharic (Ethiopia) file for DateJS javascript library. It is necessary in order for the web client to function when the Amharic language is selected from the OpenERP server.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'am-ET.js'
2--- am-ET.js 1970-01-01 00:00:00 +0000
3+++ am-ET.js 2012-12-27 08:52:19 +0000
4@@ -0,0 +1,195 @@
5+Date.CultureInfo = {
6+ /* Culture Name */
7+ name: "am-ET",
8+ englishName: "Amharic (Ethiopia)",
9+ nativeName: "አምሃርኛ (ኢትዮጵያ)",
10+
11+ /* Day Name Strings */
12+ dayNames: ["እሁድ", "ሰኞ", "ማክሰኞ", "ረብዑ", "ሃሙስ", "ዓርብ", "ቅዳሜ"],
13+ abbreviatedDayNames: ["እሁድ", "ሰኞ", "ማክሰ", "ረብዑ", "ሃሙስ", "ዓርብ", "ቅዳሜ"],
14+ shortestDayNames: ["እሁ", "ሰኞ", "ማክ", "ረብ", "ሃሙ", "ዓር", "ቅዳ"],
15+ firstLetterDayNames: ["እ", "ሰ", "ማ", "ረ", "ሃ", "ዓ", "ቅ"],
16+
17+ /* Month Name Strings */
18+ monthNames: ["ጃንዋሪ", "ፌብሩዋሪ", "ማርች", "አፕሪል", "ሜይ", "ጁን", "ጁላይ", "ኦገስት", "ሴፕቴምበር", "ኦክቶበር", "ኖቬምበር", "ዲሴምበር"],
19+ abbreviatedMonthNames: ["ጃንዋ", "ፌብሩ", "ማርች", "አፕሪ", "ሜይ", "ጁን", "ጁላይ", "ኦገስ", "ሴፕቴ", "ኦክቶ", "ኖቬም", "ዲሴም"],
20+
21+ /* AM/PM Designators */
22+ amDesignator: "ከቀኑ",
23+ pmDesignator: "ከለሊቱ",
24+
25+ firstDayOfWeek: 1,
26+ twoDigitYearMax: 2029,
27+
28+ /**
29+ * The dateElementOrder is based on the order of the
30+ * format specifiers in the formatPatterns.DatePattern.
31+ *
32+ * Example:
33+ <pre>
34+ shortDatePattern dateElementOrder
35+ ------------------ ----------------
36+ "M/d/yyyy" "mdy"
37+ "dd/MM/yyyy" "dmy"
38+ "yyyy-MM-dd" "ymd"
39+ </pre>
40+ *
41+ * The correct dateElementOrder is required by the parser to
42+ * determine the expected order of the date elements in the
43+ * string being parsed.
44+ */
45+ dateElementOrder: "dmy",
46+
47+ /* Standard date and time format patterns */
48+ formatPatterns: {
49+ shortDate: "dd/MM/yyyy",
50+ longDate: "dd MMMM yyyy",
51+ shortTime: "HH:mm",
52+ longTime: "HH:mm:ss",
53+ fullDateTime: "dd MMMM yyyy HH:mm:ss",
54+ sortableDateTime: "yyyy-MM-ddTHH:mm:ss",
55+ universalSortableDateTime: "yyyy-MM-dd HH:mm:ssZ",
56+ rfc1123: "ddd, dd MMM yyyy HH:mm:ss GMT",
57+ monthDay: "dd MMMM",
58+ yearMonth: "MMMM yyyy"
59+ },
60+
61+ /**
62+ * NOTE: If a string format is not parsing correctly, but
63+ * you would expect it parse, the problem likely lies below.
64+ *
65+ * The following regex patterns control most of the string matching
66+ * within the parser.
67+ *
68+ * The Month name and Day name patterns were automatically generated
69+ * and in general should be (mostly) correct.
70+ *
71+ * Beyond the month and day name patterns are natural language strings.
72+ * Example: "next", "today", "months"
73+ *
74+ * These natural language string may NOT be correct for this culture.
75+ * If they are not correct, please translate and edit this file
76+ * providing the correct regular expression pattern.
77+ *
78+ * If you modify this file, please post your revised CultureInfo file
79+ * to the Datejs Forum located at http://www.datejs.com/forums/.
80+ *
81+ * Please mark the subject of the post with [CultureInfo]. Example:
82+ * Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)
83+ *
84+ * We will add the modified patterns to the master source files.
85+ *
86+ * As well, please review the list of "Future Strings" section below.
87+ */
88+ regexPatterns: {
89+ jan: /^jan(uary)?/i,
90+ feb: /^feb(ruary)?/i,
91+ mar: /^mar(ch)?/i,
92+ apr: /^apr(il)?/i,
93+ may: /^may/i,
94+ jun: /^jun(e)?/i,
95+ jul: /^jul(y)?/i,
96+ aug: /^aug(ust)?/i,
97+ sep: /^sep(t(ember)?)?/i,
98+ oct: /^oct(ober)?/i,
99+ nov: /^nov(ember)?/i,
100+ dec: /^dec(ember)?/i,
101+
102+ sun: /^su(n(day)?)?/i,
103+ mon: /^mo(n(day)?)?/i,
104+ tue: /^tu(e(s(day)?)?)?/i,
105+ wed: /^we(d(nesday)?)?/i,
106+ thu: /^th(u(r(s(day)?)?)?)?/i,
107+ fri: /^fr(i(day)?)?/i,
108+ sat: /^sa(t(urday)?)?/i,
109+
110+ future: /^next/i,
111+ past: /^last|past|prev(ious)?/i,
112+ add: /^(\+|aft(er)?|from|hence)/i,
113+ subtract: /^(\-|bef(ore)?|ago)/i,
114+
115+ yesterday: /^yes(terday)?/i,
116+ today: /^t(od(ay)?)?/i,
117+ tomorrow: /^tom(orrow)?/i,
118+ now: /^n(ow)?/i,
119+
120+ millisecond: /^ms|milli(second)?s?/i,
121+ second: /^sec(ond)?s?/i,
122+ minute: /^mn|min(ute)?s?/i,
123+ hour: /^h(our)?s?/i,
124+ week: /^w(eek)?s?/i,
125+ month: /^m(onth)?s?/i,
126+ day: /^d(ay)?s?/i,
127+ year: /^y(ear)?s?/i,
128+
129+ shortMeridian: /^(a|p)/i,
130+ longMeridian: /^(a\.?m?\.?|p\.?m?\.?)/i,
131+ timezone: /^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,
132+ ordinalSuffix: /^\s*(st|nd|rd|th)/i,
133+ timeContext: /^\s*(\:|a(?!u|p)|p)/i
134+ },
135+
136+ timezones: [{name:"UTC", offset:"-000"}, {name:"GMT", offset:"-000"}, {name:"EST", offset:"-0500"}, {name:"EDT", offset:"-0400"}, {name:"CST", offset:"-0600"}, {name:"CDT", offset:"-0500"}, {name:"MST", offset:"-0700"}, {name:"MDT", offset:"-0600"}, {name:"PST", offset:"-0800"}, {name:"PDT", offset:"-0700"}]
137+};
138+
139+/********************
140+ ** Future Strings **
141+ ********************
142+ *
143+ * The following list of strings may not be currently being used, but
144+ * may be incorporated into the Datejs library later.
145+ *
146+ * We would appreciate any help translating the strings below.
147+ *
148+ * If you modify this file, please post your revised CultureInfo file
149+ * to the Datejs Forum located at http://www.datejs.com/forums/.
150+ *
151+ * Please mark the subject of the post with [CultureInfo]. Example:
152+ * Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)b
153+ *
154+ * English Name Translated
155+ * ------------------ -----------------
156+ * about about
157+ * ago ago
158+ * date date
159+ * time time
160+ * calendar calendar
161+ * show show
162+ * hourly hourly
163+ * daily daily
164+ * weekly weekly
165+ * bi-weekly bi-weekly
166+ * fortnight fortnight
167+ * monthly monthly
168+ * bi-monthly bi-monthly
169+ * quarter quarter
170+ * quarterly quarterly
171+ * yearly yearly
172+ * annual annual
173+ * annually annually
174+ * annum annum
175+ * again again
176+ * between between
177+ * after after
178+ * from now from now
179+ * repeat repeat
180+ * times times
181+ * per per
182+ * min (abbrev minute) min
183+ * morning morning
184+ * noon noon
185+ * night night
186+ * midnight midnight
187+ * mid-night mid-night
188+ * evening evening
189+ * final final
190+ * future future
191+ * spring spring
192+ * summer summer
193+ * fall fall
194+ * winter winter
195+ * end of end of
196+ * end end
197+ * long long
198+ * short short
199+ */