Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I set localization for workflow function "date"?
#1
I am using the following for confirmation of appointments:

PHP Code:
$(general : (__WorkflowFunction__format_date($date_start,'d. F Y') ) 

Gives something like this:

Quote:08. January 2019

That is German date structure but English vocabulary.
I would like to keep the long month names.
But they are displayed in English language.
Is there a way to change the localization?
Reply
#2
That is a complicated server/php configuration so I prefer using the translation module in coreBOS.

  •  create records for each month in cbtranslation module Key: January,  Translation: Januar,  module: cbtranslation
    • it is important to set the module to cbtranslation as that has a special meaning of "the whole application"
  • now, in the workflow use
    Code:
    translate(format_date('2017-06-20','F'))


Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)