Re: [cas-user] Re: Cas Default language

2019-02-19 Thread Colin Wilkinson
Hi John,

firstly there is no such locale in java as UK, the locale for UK is en_GB 
see Java Locale “English (United Kingdom)” 
.

Secondly its defined in the wrong location, you have it defined 
application.properties but you need to define it in cas.properties.

So try,
cas.locale.defaultValue=en_GB

you do not need to specific paramName as the default for that value is 
locale

Regards,
Colin

On Tuesday, 19 February 2019 18:28:03 UTC+11, john adz wrote:
>
> Hi,
>
> I'm trying with Chrome incognito. I write what I wrote in 
> application.properties, but still in English. Do I delete the 
> messages.properties file and see the messages_uk.properties file? Do I have 
> to make a change elsewhere?
>
> Thanks,
>
> On Monday, February 18, 2019 at 12:44:23 PM UTC+3, Andy Ng wrote:
>>
>> Looking at the source code here: 
>> https://github.com/apereo/cas/blob/v5.3.7/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppConfiguration.java#L63
>>
>> The locale also affected by Cookie, maybe try using an Chrome Incognito 
>> or similar browser, so that your previous cookie is not stored?
>>
>> - Andy
>>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ba4b931a-cc19-4adf-a14f-80dc3c94c84d%40apereo.org.


Re: [cas-user] Re: Cas Default language

2019-02-19 Thread Charafeddine Youssef
Hi john,

By default CAS use the keys in message.properties. If you want to use any
language in particular, you should write your key message in
messages_uk.properties.

Charaf

Le mar. 19 févr. 2019 à 08:28, john adz  a écrit :

> Hi,
>
> I'm trying with Chrome incognito. I write what I wrote in
> application.properties, but still in English. Do I delete the
> messages.properties file and see the messages_uk.properties file? Do I have
> to make a change elsewhere?
>
> Thanks,
>
> On Monday, February 18, 2019 at 12:44:23 PM UTC+3, Andy Ng wrote:
>>
>> Looking at the source code here:
>> https://github.com/apereo/cas/blob/v5.3.7/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppConfiguration.java#L63
>>
>> The locale also affected by Cookie, maybe try using an Chrome Incognito
>> or similar browser, so that your previous cookie is not stored?
>>
>> - Andy
>>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/a0dd8efa-b39b-43b2-aebb-c1f7d2139ae8%40apereo.org
> 
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAFkC%3DrH9cnO5-i8_LF8ZqiBaXR2B_LpN6Fhk6J_km5gGUAzyNg%40mail.gmail.com.


Re: [cas-user] Re: Cas Default language

2019-02-18 Thread john adz
Hi,

I'm trying with Chrome incognito. I write what I wrote in 
application.properties, but still in English. Do I delete the 
messages.properties file and see the messages_uk.properties file? Do I have 
to make a change elsewhere?

Thanks,

On Monday, February 18, 2019 at 12:44:23 PM UTC+3, Andy Ng wrote:
>
> Looking at the source code here: 
> https://github.com/apereo/cas/blob/v5.3.7/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppConfiguration.java#L63
>
> The locale also affected by Cookie, maybe try using an Chrome Incognito or 
> similar browser, so that your previous cookie is not stored?
>
> - Andy
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a0dd8efa-b39b-43b2-aebb-c1f7d2139ae8%40apereo.org.


Re: [cas-user] Re: Cas Default language

2019-02-18 Thread Andy Ng
Looking at the source code 
here: 
https://github.com/apereo/cas/blob/v5.3.7/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppConfiguration.java#L63

The locale also affected by Cookie, maybe try using an Chrome Incognito or 
similar browser, so that your previous cookie is not stored?

- Andy

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/19b2fd33-279d-4048-b0cd-95b222de1c34%40apereo.org.


Re: [cas-user] Re: Cas Default language

2019-02-17 Thread john adz
Hi,

I added the following lines in application.properties.
Unfortunately, it did not happen. He doesn't see the change here. It comes
in English.

cas.locale.paramName=locale

cas.locale.defaultValue=uk




Thanks,
On Mon, Feb 18, 2019 at 4:20 AM Andy Ng  wrote:

> Hi John,
>
> Try this:
>
> https://apereo.github.io/cas/5.2.x/installation/Configuration-Properties.html#localization
>
> # cas.locale.defaultValue=en
>
>
> See if this works.
>
> - Andy
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/0585cd90-ed4c-4b07-9ce4-33473ff0b079%40apereo.org
> 
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2B4-XFjeXN5-4rzD0TuyLMuyW8KN_BeqB9uci6VbFwQ9xCn34w%40mail.gmail.com.