Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014881 | Openbravo ERP | B. User interface | public | 2010-10-15 12:13 | 2010-12-30 13:13 |
|
Reporter | networkb | |
Assigned To | alostale | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.50MP22 | |
Target Version | 3.0RC3 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0014881: Calendar always appear in english |
Description | Although you are using the application translated in Spanish Language, when you click on Calendar icon to insert a date in any window all calendar elements still appear in english |
Steps To Reproduce | 1. install spanish translation module (or any other language translation module)
2. go to Sales Management || Transactions || Sales Order || Header : click on calendar icon to enter and Order Date
Realize that Month, Days and indications appear in english |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0015421 | 2.50MP25 | closed | alostale | Calendar always appear in english | related to | defect | 0015592 | 2.50MP26 | closed | alostale | The date selectors don't wokr in mp25 in firefox |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-10-15 12:13 | networkb | New Issue | |
2010-10-15 12:13 | networkb | Assigned To | => dbaz |
2010-10-18 15:01 | dbaz | Note Added: 0031911 | |
2010-10-18 15:01 | dbaz | Assigned To | dbaz => alostale |
2010-10-25 08:55 | alostale | Status | new => scheduled |
2010-12-14 13:24 | alostale | Status | scheduled => acknowledged |
2010-12-14 13:24 | alostale | Status | acknowledged => scheduled |
2010-12-14 13:24 | alostale | fix_in_branch | => pi |
2010-12-14 13:25 | alostale | Target Version | 2.50MP25 => 3.0RC3 |
2010-12-14 13:25 | alostale | fix_in_branch | pi => |
2010-12-14 13:26 | hgbot | Checkin | |
2010-12-14 13:26 | hgbot | Note Added: 0033164 | |
2010-12-14 13:26 | hgbot | Status | scheduled => resolved |
2010-12-14 13:26 | hgbot | Resolution | open => fixed |
2010-12-14 13:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fe902e8d37f159ec4300466e921cf4fe79c2c7cb [^] |
2010-12-14 16:24 | dbaz | Status | resolved => closed |
2010-12-16 22:16 | anonymous | sf_bug_id | 0 => 3138785 |
2010-12-30 13:13 | hudsonbot | Checkin | |
2010-12-30 13:13 | hudsonbot | Note Added: 0033443 | |
2011-01-10 12:12 | alostale | Relationship added | related to 0015592 |
Notes |
|
(0031911)
|
dbaz
|
2010-10-18 15:01
|
|
When we are in a en_US environment this generated line should be
<SCRIPT language="JavaScript" src="../web/js/jscalendar/lang/calendar-en.js" type="text/javascript"></SCRIPT>
and in es_ES should be
<SCRIPT language="JavaScript" src="../web/js/jscalendar/lang/calendar-es.js" type="text/javascript"></SCRIPT>
The problem is that in both cases the result is always "calendar-en.js"
The problem root could be inside
src/org/openbravo/wad/controls/WADDate.java and WADDateTime.java in this piece of code
private void generateJSCode() {
addImport("DateTextBox", "../../../../../web/js/default/DateTextBox.js");
addImport("calendar", "../../../../../web/js/jscalendar/calendar.js");
if (!getData("AD_Language").equals(""))
addImport("calendarLang", "../../../../../web/js/jscalendar/lang/calendar-"
+ getData("AD_Language").substring(0, 2) + ".js");
else
addImport("calendarLang", "../../../../../web/js/jscalendar/lang/calendar-en.js");
generateValidation();
setCalloutJS();
}
That the "if" statement is not working properly. |
|
|
(0033164)
|
hgbot
|
2010-12-14 13:26
|
|
Repository: erp/devel/pi
Changeset: fe902e8d37f159ec4300466e921cf4fe79c2c7cb
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Dec 14 13:25:28 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/fe902e8d37f159ec4300466e921cf4fe79c2c7cb [^]
fixed bug 14881: Calendar always appear in english
---
M src-wad/src/org/openbravo/wad/controls/WADDate.java
M src-wad/src/org/openbravo/wad/controls/WADDateTime.java
A web/js/jscalendar/lang/calendar-lang.js
---
|
|
|
|
|