[Geomoose-users] Translation to pt-br

James Klassen klassen.js at gmail.com
Sat Jul 4 18:51:58 PDT 2020


If you change anything in ./src you will need to rebuild GeoMoose to see
the effect.

The easiest way to add a language to a site (without rebuilding GeoMoose)
is to put the pt-br.json file next to index.html and app.js in
./examples/desktop.  Then add the lang configuration to the gm3.Application
initializer in app.js to tell GeoMoose where to look for the language file
as stated in the docs.

GeoMoose normally picks which language to use based on the preferred
language settings of the user's web browser.  Alternatively, you can force
GeoMoose to pick a different language by adding the 'lng' parameter to the
url

    .... index.html*?lng=pt-br*# ....

On Sat, Jul 4, 2020, 20:02 Helton Nogueira Uchoa <engenheiro.uchoa at gmail.com>
wrote:

> Hi, here is a first release.
>
> The portuguese is a language with high flexibility, so one expression in
> english can be represented in many ways in portuguese.
>
> I still haven't been able to translate the geomoose with this file. I am
> translating with hard coding. It would be great to include the pt-br in the
> gm3 source code with an option to change the language just by changing the
> configuration file.
>
> Best regards,
>
> Uchoa
>
> --
> Helton Nogueira *UCHOA* :: engenheiro.uchoa at gmail.com
> *GIS/IT/IoT/Lean/Innovation/Sustainability Specialist*
> +55 *85* 98886-3909 (OI - *WhatsApp*) :: +55 *85* 99716-7769 (TIM)
> Blog: helton.uchoa.com/
> LinkedIn: br.linkedin.com/in/heltonuchoa/
> Facebook: fb.me/EngUchoa (@EngUchoa)
> Twitter: twitter.com/EngUchoa (@EngUchoa)
> Vimeo: vimeo.com/channels/engenheirouchoa
> Papers: pt.scribd.com/heltonuchoa
>
>
> Em dom., 28 de jun. de 2020 às 12:15, Dan Little <theduckylittle at gmail.com>
> escreveu:
>
>> And if you submit it as a PR (or email it to me), we can include it in
>> future releases so you do not have to maintain it locally!!
>>
>> On Sun, Jun 28, 2020, 10:05 Brent Fraser <bfraser at geoanalytic.com> wrote:
>>
>>> Hi,
>>>
>>>    Make sure you set the path to your new language file correctly/. Put
>>> your file in the same directory as your app.js file, then you can
>>> reference
>>> it  like so:
>>>
>>>
>>>      lang: {         my_lang: './pt-br.json',     },
>>>
>>>
>>>  Best Regards,
>>>  Brent Fraser
>>>
>>>  -------- Original Message --------
>>> > From: "Helton Nogueira Uchoa" <engenheiro.uchoa at gmail.com>
>>> > Sent: June 28, 2020 8:08 AM
>>> > To: "GeoMOOSE Users List" <geomoose-users at lists.osgeo.org>
>>> > Subject: [Geomoose-users] Translation to pt-br
>>> >
>>> > Hi,
>>> >
>>> > I'm trying to translate GM 3.6.2. I saw this link:
>>> > https://geomoose.github.io/gm3/howto/add-a-language.html but it was
>>> not
>>> > very clear to me.
>>> >
>>> > I tried make a pt-br.json in scr/lang and make a symbolic link from
>>> en.json
>>> > to this file in src/gm3/lang/ but doesn't work.
>>> >
>>> > Any suggestions about the most appropriated approach?
>>> >
>>> > Best regards,
>>> >
>>> > Uchoa
>>> > --
>>> > Helton Nogueira *UCHOA* :: engenheiro.uchoa at gmail.com
>>> > *GIS/IT/IoT/Lean/Innovation/Sustainability Specialist*
>>> > +55 *85* 98886-3909 (OI - *WhatsApp*) :: +55 *85* 99716-7769 (TIM)
>>> > Blog: helton.uchoa.com/
>>> > LinkedIn: br.linkedin.com/in/heltonuchoa/
>>> > Facebook: fb.me/EngUchoa (@EngUchoa)
>>> > Twitter: twitter.com/EngUchoa (@EngUchoa)
>>> > Vimeo: vimeo.com/channels/engenheirouchoa
>>> > Papers: pt.scribd.com/heltonuchoa
>>> > _______________________________________________ Geomoose-users mailing
>>> list Geomoose-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>>>
>>>
>>> _______________________________________________
>>> Geomoose-users mailing list
>>> Geomoose-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>>
>> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20200704/b44ae062/attachment-0001.html>


More information about the Geomoose-users mailing list