Skip to content

Commit

Permalink
SAK-39961 - Days of week are seen in english in Section Info while us…
Browse files Browse the repository at this point in the history
…ing basque language
  • Loading branch information
danielmerino authored and Miguel Pellicer committed May 7, 2018
1 parent 9a6feec commit 09143e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ private List<String> getDayList() {
private List<String> getAbbreviatedDayList() {
List<String> list = new ArrayList<String>();
ResourceLoader rl = new ResourceLoader();
DateFormatSymbols dfs = new DateFormatSymbols(rl.getLocale());
DateFormatSymbols dfs = DateFormatSymbols.getInstance(rl.getLocale());
String[] daysOfWeek = dfs.getShortWeekdays();
if(meeting.isMonday())
list.add(daysOfWeek[Calendar.MONDAY]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ public static Time convertStringToTime(String str, boolean am) {

// Set the am/pm flag to ensure that the time is parsed properly
if(am) {
str = str + " " + new DateFormatSymbols(new ResourceLoader().getLocale()).getAmPmStrings()[0];
str = str + " " + DateFormatSymbols.getInstance(new ResourceLoader().getLocale()).getAmPmStrings()[0];
} else {
str = str + " " + new DateFormatSymbols(new ResourceLoader().getLocale()).getAmPmStrings()[1];
str = str + " " + DateFormatSymbols.getInstance(new ResourceLoader().getLocale()).getAmPmStrings()[1];
}

String pattern = (str.indexOf(':') != -1) ? JsfUtil.TIME_PATTERN_LONG : JsfUtil.TIME_PATTERN_SHORT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public String getSunday() {

protected void initDaysOfWeek(){
ResourceLoader rl = new ResourceLoader();
DateFormatSymbols dfs = new DateFormatSymbols(rl.getLocale());
DateFormatSymbols dfs = DateFormatSymbols.getInstance(rl.getLocale());
daysOfWeek = dfs.getWeekdays();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public String getCapPM(){
return this.capPM;
}
private void localizeParameters(){
DateFormatSymbols dsf = new DateFormatSymbols(new ResourceLoader().getLocale());
DateFormatSymbols dsf = DateFormatSymbols.getInstance(new ResourceLoader().getLocale());
String[] amPmString = dsf.getAmPmStrings();
capAM = amPmString[0];
capPM = amPmString[1];
Expand Down

0 comments on commit 09143e2

Please sign in to comment.