DHIS2 Configuration: Program Rules allowing multi lingual

Hi DHIS2 CoP,

Juan´s here. I am working on implementing DHIS2 within an organisation that is looking to have the program we are working on, multilingual. Some logic within the program requires Program Rules and showing some warnings, however, we do not seen to have a way to actually translate or extract the users language settings.

Are there any plans to making this happen? Either the possiblity to translate Program Rules if there is an action involving showing text, or to have a Variable that would extract the users language so we can create multiple Program Rules in a per language basis?

Looking forward for your thoughts,

Hi @Juan_Flamenco

Thank you for your post. Although I’m pretty sure this can’t be achieved using Program Rules, but maybe a capture plugin? (cc: @eirikhaugstulen ?)

Dear Juan,

You should be able to translate the “content” (warning, error etc) of a program rule. However, your request made me realize that it is only possible through the API and not in the frontend through h the Translations app yet.

https://dhis2.atlassian.net/browse/DHIS2-5587

Can you have a look at the docs linked in this issue and see if you’re able to do the translation in the API?

Best,
Karoline
DHIS2 Product Manager

1 Like