dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #47016
Re: Cannot change locale in DEV
Browser = Version 53.0.2785.116 (64-bit ) on Ubuntu
All I am doing is changing the locale from English to Spanish (or vice
versa).
On Mon, Oct 3, 2016 at 2:30 PM, Nicolay Ramm <nicolay@xxxxxxxxx> wrote:
> I also tried in incognito mode on https://play.dhis2.org/dev/ and I got
> no error..
>
> What exactly are you doing? And which browser/version are you on?
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
>> same error.
>>
>> Still cache?
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm <nicolay@xxxxxxxxx> wrote:
>>
>>> Keep in mind that the system settings API endpoint only accepts
>>> text/plain, not json. So the value should be just es without quotes,
>>> not "es" with quotes:
>>>
>>> curl -u admin:district https://play.dhis2.org/dev/api
>>> /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
>>> jason.p.pickering@xxxxxxxxx> wrote:
>>>
>>>> OK. I tried a direct post without the app,and got the same thing. Will
>>>> try again however just to be sure.
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm <nicolay@xxxxxxxxx> wrote:
>>>>
>>>>> Hi Jason,
>>>>>
>>>>> is this happening with the settings app? It sounds like an issue that
>>>>> was fixed recently, where plain text values were being encoded as JSON.
>>>>>
>>>>> As long as you're running v25.0.5 or higher of the settings app, you
>>>>> should be fine. Check the browser console when you start the app. The
>>>>> version included with the latest snapshot should actually be v25.0.6, so
>>>>> your browser cache may be stale.
>>>>>
>>>>>
>>>>> Best regards,
>>>>>
>>>>>
>>>>> Nicolay Ramm
>>>>> Front end developer, DHIS 2
>>>>> University of Oslo
>>>>> https://www.dhis2.org
>>>>>
>>>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>>>> jason.p.pickering@xxxxxxxxx> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>> There seem to be some issues updating a users locale in the latest
>>>>>> dev snapshot. It is not possible to update a users locale.
>>>>>>
>>>>>> POST to
>>>>>>
>>>>>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>>>>>
>>>>>> with "es" (the header sent by the app when swtiching from English to
>>>>>> Spanish)
>>>>>>
>>>>>> yields an HTTP 500
>>>>>>
>>>>>> {
>>>>>> "httpStatus": "Internal Server Error",
>>>>>> "httpStatusCode": 500,
>>>>>> "status": "ERROR",
>>>>>> "message": "Invalid locale format: \"es\""
>>>>>> }
>>>>>>
>>>>>>
>>>>>> With GET to the same URL yields
>>>>>>
>>>>>> Unexpected 'e'
>>>>>>
>>>>>> which seems strange.
>>>>>>
>>>>>> Version:2.25-SNAPSHOT
>>>>>> Build revision:0cf6645
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>> --
>>>>>> Jason P. Pickering
>>>>>> email: jason.p.pickering@xxxxxxxxx
>>>>>> tel:+46764147049
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.pickering@xxxxxxxxx
>> tel:+46764147049
>>
>
>
--
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049
Follow ups
References