Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence 6.12.1 - User Macros - Velocity Template - localization issue Feb-19 to 一月-19

Ramakrishnan Srinivasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2019

Hi, 

I need some help, I have a user macro and using the Velocity template code like the one below I am getting the last month and current month. When my colleagues try in Shanghai, it is not giving correct result, their local character is shown in the Postgreqsql error message like '一月-19' and I am not sure what I have to fix here; 

the month names are set as columns to display after some joins and all

#set($getLastMonth = $action.dateFormatter.getCalendar())
$getLastMonth.setTime($content.getCurrentDate())
$getLastMonth.add(2, -1)
#set($lastMonth=$action.dateFormatter.formatGivenString('MMM-yy',$getLastMonth.getTime()))

#set($getCurrentMonth = $action.dateFormatter.getCalendar())
$getCurrentMonth.setTime($content.getCurrentDate())
#set($currentMonth=$action.dateFormatter.formatGivenString('MMM-yy',$getCurrentMonth.getTime()))

 

Can you please help me on this issue? Is this something I can fix in user macro or something needs to be done in Confluence application?

Thank you

with warm regards

ramki

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2019

That is a tough one.  Google translate says the message shows as "month-19"

Do you colleagues have their user profiles to English or Chinese? If the later, have them try setting their profiles to English. Or create a dummy user you have access to and set the language to Chinese to see what is happening. This appears to be a localization issue.

Ramakrishnan Srinivasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2019

Thank you Bill Bailey, I will try your first suggestion, asking one of them to try English profile setting.

Ramakrishnan Srinivasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2019

hard luck, the user responded that he is using English as the profile, still I am seeing Chinese character in last date and current date

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2019

And their browser is set to English as the default language?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events