>
>
>> Also, when you are in a custom form - how can you know what language is
>> the current user set to?
>>
> I imagine needing to add some extra text, which will need multiple
>> translations. We can embed such text on the HTML of the page, as long as we
>> know what's the current language, and then display accordingly.
>>
>>
> Good point. That and other user settings should be easily available in the
> web api, probably at /api/me. Will try to fix that shortly.
>
>
Hi Rodolfo and James,
you can now access settings for the currently logged in user at:
/api/me/profile
{
- firstName: "Tom",
- surname: "Wakiki",
- ...
- settings:
{
- keyMessageEmailNotification: "false",
- keyUiLocale: "en",
- keyDbLocale: "en",
- keyMessageSmsNotification: "false"
}
}
Lars
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp