dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38072
Re: Internationalization of Web API response info / conflicts?
Hi
We have started changing some of endpoints already, if you e.g. try to get
a invalid data-element /api/dataElements/abc123 you will see the new output
format (xml and json supported, json is default). I have not started
changing the import conflict format yet, and it probably will not be
changed for 2.20, I'm hoping to start a rewrite of the importer in 2.21,
and the change of response format would then end up being in that release.
Besides the import conflicts, if you are still seeing plain text error
messages anywhere, please report back to me and I will replace them with a
proper message.
--
Morten
On Wed, Jun 17, 2015 at 11:48 PM, Lorill Crees <lcrees@xxxxxxxxxx> wrote:
> Thanks Morten.
>
> On a related note, have you defined how you will be changing the response
> messages yet? We've written a rudimentary response message parser as part
> of our app because we get quite inconsistent results from the various web
> api calls. EG: some responses return "conflicts" whereas others return
> "importConflicts". Also we consistently ask for the response in JSON yet
> some responses return HTML regardless which makes parsing the responses
> difficult.
>
> Knowing the changes you have planned will be helpful as it could
> potentially break the way we're currently parsing the results.
>
> By the way, we're working off 2.20 snapshot.
>
> Thanks,
>
> Lorill
>
>
>
> On Tue, Jun 16, 2015 at 7:39 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> Hi
>>
>> No, this is not currently supported. We might support it in a future
>> release, as we are changing our responses messages a bit in 2.20/2.21.
>>
>> --
>> Morten
>>
>> On Wed, Jun 17, 2015 at 5:58 AM, Lorill Crees <lcrees@xxxxxxxxxx> wrote:
>>
>>> Hi All,
>>>
>>> Is it possible to receive messages back from the web api in other
>>> languages? Specifically if there are import conflicts we would like to give
>>> these messages back to the user in their preferred language.
>>>
>>> Thanks,
>>>
>>> Lorill
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
Follow ups
References