[GeoNetwork-users] Mapviewer strings in another language

Hi,

My GN (2.6.1) is customized to have also the catalan language. I need to
display mapviewer interface also in catalan (when catalan language is
selected). I tried to do that but is not working.

The steps I have made:

- I downloaded the svn 2.6.1 tag. Then, I copied the file
web\src\main\webapp\scripts\map\lang\en.js in a new one called ca.js. I
edited ca.js, translated the strings and changed two lines: line 15
(OpenLayers.Lang.ca= ) and line 133
(OpenLayers.Util.extend(OpenLayers.Lang.ca, GeoNetwork.lang.ca):wink:

- In web\pom.xml I added next line

    <include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>

- I compiled with maven. I opened the gn.libs.map.js with a text editor and
I checked that the ca.js file is compressed into that file.

To test it, I copied the gn.libs.map.js in my server, but, unfortunalely the
<mapviewer> strings still show in english instead of catalan.

I forgot something to do? What's the solution?

Thanks for your help and best regards,
Montse

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5855533.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Montse

I get working for other languages with these steps:

* Check ca.js file for OpenLayers is available
(scripts/openlayers/lib/OpenLayers/Lang). I checked that is in GeoNetwork,
so should be ok
* Add your ca.js file to web\src\main\webapp\scripts\map\lang
* Edit web\pom.xml and add:

<aggregation>

<output>${geonetwork.webapp.dir}/scripts/lib/gn.libs.map.js</output>
              <includes>
                 ...

<include>${geonetwork.build.dir}/scripts/map/lang/en.js</include>
                 *
<include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>
*
...

* Edit web/xsl/geo/utils.xsl to load ca.js from OpenLayers:

<xsl:template name="geoHeader">
  ...
  <xsl:otherwise>
               <script type="text/javascript"
src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/en.js"></script>

              * <script type="text/javascript"
src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/ca.js"></script>
*

Hope this solves your problem.

Regards,
Jose García

On Tue, Dec 21, 2010 at 3:37 PM, mmarco <mmarcosabate@anonymised.com> wrote:

Hi,

My GN (2.6.1) is customized to have also the catalan language. I need to
display mapviewer interface also in catalan (when catalan language is
selected). I tried to do that but is not working.

The steps I have made:

- I downloaded the svn 2.6.1 tag. Then, I copied the file
web\src\main\webapp\scripts\map\lang\en.js in a new one called ca.js. I
edited ca.js, translated the strings and changed two lines: line 15
(OpenLayers.Lang.ca= ) and line 133
(OpenLayers.Util.extend(OpenLayers.Lang.ca, GeoNetwork.lang.ca):wink:

- In web\pom.xml I added next line

   <include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>

- I compiled with maven. I opened the gn.libs.map.js with a text editor and
I checked that the ca.js file is compressed into that file.

To test it, I copied the gn.libs.map.js in my server, but, unfortunalely
the
<mapviewer> strings still show in english instead of catalan.

I forgot something to do? What's the solution?

Thanks for your help and best regards,
Montse

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5855533.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hola Jose,

Heikki Doeleman me ha ofrecido la posibilidad de que yo traduzca y vosotros
integreis el catalán en GN.

He desinstalado 2.6.1 e instalado la 2.6.2. Ahora me dedicaré a traducir los
strings en lugar de integrar el catalán en la 2.6.2, a la espera de la siguiente
versión GN con el catalán ya integrado.

Muchas gracias por el soporte y felices fiestas!
Montse

________________________________
De: josegar74 [via OSGeo.org] <ml-node+5857045-627456410-96421@anonymised.com>
Para: mmarco <mmarcosabate@anonymised.com>
Enviado: mié,22 diciembre, 2010 12:56
Asunto: Re: Mapviewer strings in another language

Hi Montse

I get working for other languages with these steps:

* Check ca.js file for OpenLayers is available
(scripts/openlayers/lib/OpenLayers/Lang). I checked that is in GeoNetwork,
so should be ok
* Add your ca.js file to web\src\main\webapp\scripts\map\lang
* Edit web\pom.xml and add:

<aggregation>

<output>${geonetwork.webapp.dir}/scripts/lib/gn.libs.map.js</output>
              <includes>
                 ...

<include>${geonetwork.build.dir}/scripts/map/lang/en.js</include>
                 *
<include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>
*
...

* Edit web/xsl/geo/utils.xsl to load ca.js from OpenLayers:

<xsl:template name="geoHeader">
  ...
  <xsl:otherwise>
               <script type="text/javascript"
src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/en.js"></script>

              * <script type="text/javascript"
src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/ca.js"></script>
*

Hope this solves your problem.

Regards,
Jose García

On Tue, Dec 21, 2010 at 3:37 PM, mmarco <[hidden email]> wrote:

Hi,

My GN (2.6.1) is customized to have also the catalan language. I need to
display mapviewer interface also in catalan (when catalan language is
selected). I tried to do that but is not working.

The steps I have made:

- I downloaded the svn 2.6.1 tag. Then, I copied the file
web\src\main\webapp\scripts\map\lang\en.js in a new one called ca.js. I
edited ca.js, translated the strings and changed two lines: line 15
(OpenLayers.Lang.ca= ) and line 133
(OpenLayers.Util.extend(OpenLayers.Lang.ca, GeoNetwork.lang.ca):wink:

- In web\pom.xml I added next line

   <include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>

- I compiled with maven. I opened the gn.libs.map.js with a text editor and
I checked that the ca.js file is compressed into that file.

To test it, I copied the gn.libs.map.js in my server, but, unfortunalely
the
<mapviewer> strings still show in english instead of catalan.

I forgot something to do? What's the solution?

Thanks for your help and best regards,
Montse

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5855533.html
l
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------

Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
------------------------------------------------------------------------------

Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

________________________________

View message @
http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5857045.html

To unsubscribe from Mapviewer strings in another language, click here.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5868924.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Montse

Perfect, when you have the translations for catalan you can provide them in
the mailing list or open a ticket in Trac (http://trac.osgeo.org/geonetwork/)
and attach them. For the last option, you'll need an OSGeo account (
https://www.osgeo.org/user).

We'll manage to integrate them in GeoNetwork.

Thanks for your work and have a happy new year,
Jose García

On Mon, Dec 27, 2010 at 8:23 AM, mmarco <mmarcosabate@anonymised.com> wrote:

Hola Jose,

Heikki Doeleman me ha ofrecido la posibilidad de que yo traduzca y vosotros
integreis el catalán en GN.

He desinstalado 2.6.1 e instalado la 2.6.2. Ahora me dedicaré a traducir
los
strings en lugar de integrar el catalán en la 2.6.2, a la espera de la
siguiente
versión GN con el catalán ya integrado.

Muchas gracias por el soporte y felices fiestas!
Montse

________________________________
De: josegar74 [via OSGeo.org] <
ml-node+5857045-627456410-96421@anonymised.com<ml-node%2B5857045-627456410-96421@anonymised.com>
>
Para: mmarco <mmarcosabate@anonymised.com>
Enviado: mié,22 diciembre, 2010 12:56
Asunto: Re: Mapviewer strings in another language

Hi Montse

I get working for other languages with these steps:

* Check ca.js file for OpenLayers is available
(scripts/openlayers/lib/OpenLayers/Lang). I checked that is in GeoNetwork,
so should be ok
* Add your ca.js file to web\src\main\webapp\scripts\map\lang
* Edit web\pom.xml and add:

<aggregation>

<output>${geonetwork.webapp.dir}/scripts/lib/gn.libs.map.js</output>
             <includes>
                ...

<include>${geonetwork.build.dir}/scripts/map/lang/en.js</include>
                *
<include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>
*
...

* Edit web/xsl/geo/utils.xsl to load ca.js from OpenLayers:

<xsl:template name="geoHeader">
...
<xsl:otherwise>
              <script type="text/javascript"

src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/en.js"></script>

             * <script type="text/javascript"

src="{/root/gui/url}/scripts/openlayers/lib/OpenLayers/Lang/ca.js"></script>
*

Hope this solves your problem.

Regards,
Jose García

On Tue, Dec 21, 2010 at 3:37 PM, mmarco <[hidden email]> wrote:

>
> Hi,
>
> My GN (2.6.1) is customized to have also the catalan language. I need to
> display mapviewer interface also in catalan (when catalan language is
> selected). I tried to do that but is not working.
>
> The steps I have made:
>
> - I downloaded the svn 2.6.1 tag. Then, I copied the file
> web\src\main\webapp\scripts\map\lang\en.js in a new one called ca.js. I
> edited ca.js, translated the strings and changed two lines: line 15
> (OpenLayers.Lang.ca= ) and line 133
> (OpenLayers.Util.extend(OpenLayers.Lang.ca, GeoNetwork.lang.ca):wink:
>
> - In web\pom.xml I added next line
>
> <include>${geonetwork.build.dir}/scripts/map/lang/ca.js</include>
>
> - I compiled with maven. I opened the gn.libs.map.js with a text editor
and
> I checked that the ca.js file is compressed into that file.
>
>
> To test it, I copied the gn.libs.map.js in my server, but, unfortunalely
> the
> <mapviewer> strings still show in english instead of catalan.
>
> I forgot something to do? What's the solution?
>
> Thanks for your help and best regards,
> Montse
>
>
>
>
> --
> View this message in context:
>
http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5855533.html
>l
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
>
>
------------------------------------------------------------------------------

> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
------------------------------------------------------------------------------

Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

________________________________

View message @

http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5857045.html

To unsubscribe from Mapviewer strings in another language, click here.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Mapviewer-strings-in-another-language-tp5855533p5868924.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment,
and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork