[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp updated OFBIZ-1825: --- Attachment: calendar_I18n.patch Hi, yeah Jacques stupid mistake, i forgott to update the code before submit it :-( I made a few changes. Because i realized, that it was not the simpelst way i choosed. Now there is no Ajax Request anymore. We don't need an extra Service (and the Java overhead). I load the l18n data directly after the calendar_data_select.js in the common screen. What do you think? Cu Sascha > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: Release Branch 9.04 > > Attachments: calendar.patch, calendar_I18n.patch, > calendar_I18n.patch, calendar_sequence.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, calendarModified.patch, CommonScreens.patch, > Existing.jpg, LocalizedDate_it.patch, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp updated OFBIZ-1825: --- Attachment: calendar_I18n.patch Hi, here is my first idea to internationalize the calendar. I moved the calendar to a sepparte folder. So there is one place for all the different locale and format files. An Ajax Request gets the User Locale and loads a *.js file with the Date Format / Language information (if nothing is found english is set as default). For now the Calendar returns a sortable date format to the input field!! Maybe someone can have a looks, but for me it's the simpelst solution to internationalize the calendar. BTW: i uppdaded the calendar to the current version :-) So long Sascha > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: Release Branch 9.04 > > Attachments: calendar.patch, calendar_I18n.patch, > calendar_sequence.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, calendarModified.patch, CommonScreens.patch, > Existing.jpg, LocalizedDate_it.patch, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Ruocco updated OFBIZ-1825: Attachment: CommonScreens.patch This is a patch for the LookupDecorator with the new localized calendar > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: Release Branch 9.3 > > Attachments: calendar.patch, calendar_sequence.patch, > calendarDateSelectColor.patch, calendarDateSelectColor.patch, > calendarModified.patch, CommonScreens.patch, Existing.jpg, > LocalizedDate_it.patch, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Ruocco updated OFBIZ-1825: Attachment: LocalizedDate_it.patch This is the date pattern localized for the italian language > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: Release Branch 9.3 > > Attachments: calendar.patch, calendar_sequence.patch, > calendarDateSelectColor.patch, calendarDateSelectColor.patch, > calendarModified.patch, Existing.jpg, LocalizedDate_it.patch, > Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Ruocco updated OFBIZ-1825: Attachment: calendar_sequence.patch > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: Release Branch 9.3 > > Attachments: calendar.patch, calendar_sequence.patch, > calendarDateSelectColor.patch, calendarDateSelectColor.patch, > calendarModified.patch, Existing.jpg, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruno Busco updated OFBIZ-1825: --- Fix Version/s: (was: SVN trunk) OFBIZ 9.3 > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: OFBIZ 9.3 > > Attachments: calendar.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, calendarModified.patch, Existing.jpg, > Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todor Spasov updated OFBIZ-1825: Attachment: calendarModified.patch > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendar.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, calendarModified.patch, Existing.jpg, > Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Ruocco updated OFBIZ-1825: Comment: was deleted > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendar.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, Existing.jpg, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Ruocco updated OFBIZ-1825: Attachment: calendar.patch > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendar.patch, calendarDateSelectColor.patch, > calendarDateSelectColor.patch, Existing.jpg, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-1825: --- Attachment: calendarDateSelectColor.patch Same patch updated after Scott's clean up (some css tags were removed by error) > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, > calendarDateSelectColor.patch, Existing.jpg, Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-1825: --- Attachment: Existing.jpg > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, Existing.jpg, > Proposition.jpg, WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum updated OFBIZ-1825: --- Attachment: WE_CAL.gif > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, Proposition.jpg, > WE_CAL.gif > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum updated OFBIZ-1825: --- Attachment: (was: WE_CAL.JPG) > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, Proposition.jpg > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum updated OFBIZ-1825: --- Attachment: WE_CAL.JPG Maybe you could use the existing workeffort calendar as a guide. > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, Proposition.jpg > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-1825: --- Attachment: Proposition.jpg > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch, Proposition.jpg > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-1825) Colors and localisation for the calendar
[ https://issues.apache.org/jira/browse/OFBIZ-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-1825: --- Attachment: calendarDateSelectColor.patch > Colors and localisation for the calendar > > > Key: OFBIZ-1825 > URL: https://issues.apache.org/jira/browse/OFBIZ-1825 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS >Affects Versions: SVN trunk >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Fix For: SVN trunk > > Attachments: calendarDateSelectColor.patch > > > I tried to change the calendar colors, to be more "in the OFBiz way". Please > let me you know what you think. > I also changed some colors to respect our CSS best practices (no color names). > Here are some remarks : > Colors > * I kept the 3 chars scheme when it's was obvious. For instance we don't > need to set #00 or #ff when actually #000 or #fff is sufficient. > * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for > choising colors. While doing this change I wondered if we could not authorise > and even recommend to use sandard names for colors as shown in Wikipedia > page. I found it easier to recall a color by its names than by an hexa > number...! As long as we would use this Wikipedia reference I think it could > be possible to use names instead of hexa, WDYT ? > * The days initials are not centered but at left (It's late and I did not > found the reason) > We need to provide a localisation mean. From > http://electronicholas.com/calendar?style=default&format=natural it should > not be too hard. I propose a simple way, maybe we can do better > * More calendar formats in a calendar.properties file (like the euro or > american ones) > * For the moment I think all string are harcoded in calendar_date_select.js > Date.weekdays = $w("S M T W T F S"); > Date.first_day_of_week = 0; > Date.months = $w("January February March April May June July August > September October November December" ); > _translations = { > "OK": "OK", > "Now": "Now", > "Today": "Today" > } > A very simple way (but not very clever I must admit) could be to set a > property for the language to use in calendar.properties file and use it in a > switch statement with "hardcoded" strings in calendar_date_select.js. Is > anybody aware of better ways to do that in Javascript or Prototype ? > BTW I think we should delete calendarstyles.css and calendarTable.css. If > it's ok, I will do it when I will upate the attached patch later. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.