You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2021/07/09 17:21:01 UTC
[jira] [Created] (DAFFODIL-2543) Internationalization support
Steve Lawrence created DAFFODIL-2543:
----------------------------------------
Summary: Internationalization support
Key: DAFFODIL-2543
URL: https://issues.apache.org/jira/browse/DAFFODIL-2543
Project: Daffodil
Issue Type: New Feature
Reporter: Steve Lawrence
At some point, we may want to consider internationalization support.
One approach here is to create a custom string interpolater, e.g.
{code:scala}
i"This message can be internationalized: ${withArguments}"
{code}
We likely want to create a macro for this, so that the raw message becomes the key to look up the internationalized string in the i18n database based on locale, and then the arguments are used to format the value found.
Note that DAFFODIL-2510 changed all logging to use "s" string interpolation, and DAFFODIL-2542 suggests changing all of our diagnostics to use string interpolation as well. Once that is complete, switching to a new "i" interpolator becomes fairly straight forward.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)