Hi Thushtha,
How can we localize the texts in "menu" defined in "config.yaml"?

Cheers,
Ruwan

On Thu, Nov 3, 2016 at 8:57 PM, Udara Rathnayake <[email protected]> wrote:

>
>
> On Thu, Nov 3, 2016 at 7:14 PM, Thusitha Kalugamage <[email protected]>
> wrote:
>
>> Hi Ruwan,
>>
>> I think it is decided by the Browser locale,
>> Not sure about it's implementation.
>> @Udara?
>>
> ​You are correct Thusitha. We are using the HTTP Accept-Language header​
>
> ​and the maximum quality value to determine the locale of the user.​
>
>>
>> Regards,
>>
>> On Thu, Nov 3, 2016 at 6:55 PM, Ruwan Abeykoon <[email protected]> wrote:
>>
>>> Hi Thusitha,
>>> Thank you. It works!
>>>
>>> What triggers change of the language bundle? is it a system property or
>>> the browser locale?
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>> On Thu, Nov 3, 2016 at 6:20 PM, Thusitha Kalugamage <[email protected]>
>>> wrote:
>>>
>>>> Hi Ruwan,
>>>>
>>>> You can refer the sample that is with carbon-uuf [1]
>>>> Inside [2] you'll find file called en_US.properties. This is the
>>>> property file which you can use to store keys and values of keywords or
>>>> messages which written in English.
>>>> You can put key values pairs as below.
>>>>
>>>> <Key>:<Value>
>>>> *Ex:- pets-store.all=See all our amazing pets*
>>>>
>>>> When you need to refer these values inside a .hbs you can use the
>>>> following handlebar helper.
>>>>
>>>> *{{t "<Key>"}}*
>>>> *Ex:-  {{t "pets-store.all”}}*
>>>>
>>>>
>>>> [1] https://github.com/wso2/carbon-uuf/tree/master/samples
>>>> <https://github.com/wso2/carbon-uuf/tree/master/samples>
>>>> [2] https://github.com/wso2/carbon-uuf/blob/master/samples/a
>>>> pps/org.wso2.carbon.uuf.sample.pets-store/src/main/lang/en_U
>>>> S.properties
>>>> <https://github.com/wso2/carbon-uuf/blob/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store/src/main/lang/en_US.properties>
>>>>
>>>> Hope this helps.
>>>> Regards,
>>>>
>>>> On Thu, Nov 3, 2016 at 5:47 PM, Ruwan Abeykoon <[email protected]> wrote:
>>>>
>>>>> Hi Devs,
>>>>> What is the recommended way for $subject
>>>>>
>>>>> Cheers,
>>>>> Ruwan
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thusitha Kalugamage
>>>> *Software Engineer*
>>>> Mobile : +94 (0) 774 074370
>>>> Tel       : +94 (0) 112 145 345
>>>> [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Associate Director/Architect**,*
>>> *WSO2, Inc. http://wso2.com <https://wso2.com/signature> *
>>> *lean.enterprise.middleware.*
>>>
>>>
>>
>>
>> --
>> Thusitha Kalugamage
>> *Software Engineer*
>> Mobile : +94 (0) 774 074370
>> Tel       : +94 (0) 112 145 345
>> [email protected]
>>
>
>
>
> --
> Regards,
> UdaraR
>



-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com <https://wso2.com/signature> *
*lean.enterprise.middleware.*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to