dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27591
Re: API for pulling Multilingual Labels?
Its actually this resource URL:
api/me/profile
On Wed, Jan 15, 2014 at 12:49 PM, Rodolfo Melia <rmelia@xxxxxxxxxxxx> wrote:
> Hi Lars - we were about to use the locale values on api/me, but the info
> is not being returned. We tried Sierra Leone demo as well as dev - somehow
> is gone. Would it be possible to get this back? Thanks !
>
> *Rodolfo Meliá*
> *Principal | *rmelia@xxxxxxxxxxxx
> Skype: rod.melia | +44 777 576 4090 | +1 708 872 7636
> www.knowming.com
>
>
> On Sat, Dec 14, 2013 at 1:19 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>wrote:
>
>>
>>
>>>
>>>> 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
>>
>>
>
Follow ups
References