[GeoNetwork-users] new language

Hallo,
I added a new language "de" to GN2.2 by putting XML-Files from SVN in the Folder
  /usr/local/geonetwork/web/geonetwork/loc/de/

Calling GN with /de/ in the URL now shows the GUI in German.
But "German" does not appear in the Language-Menue.

Where ist the "switch" to make "de" the default-language und show it in the menue.

Greetings

Frank Jaeger

Hello,

Jäger, Frank (KRZ) wrote:

I added a new language "de" to GN2.2 by putting XML-Files from SVN in the Folder
  /usr/local/geonetwork/web/geonetwork/loc/de/

Calling GN with /de/ in the URL now shows the GUI in German.
But "German" does not appear in the Language-Menue.
Where ist the "switch" to make "de" the default-language und show it in the menue.

To add de in the language you have to modify xsl/banner.xsl. You should
add something like :

<xsl:choose>
<xsl:when test="/root/gui/language='de'">
  <font class="banner-active"><xsl:value-of
select="/root/gui/strings/de"/></font>
</xsl:when>
<xsl:otherwise>
  <a class="banner" href="../de/main.home"><xsl:value-of
select="/root/gui/strings/de"/></a>
</xsl:otherwise>
</xsl:choose>
|

near line 100.

Some localized information are also in the db. You need to update the db
as well.

HTH.
Francois

Hello Frank!

I've made changes in GeoNetwork to add new language and put my
detailed instructions out there in this mailing list.
I think it could be helpful for you. Please look at
http://n2.nabble.com/ask%3Alanguage-change---tp2014515p2014515.html

--
Igor V. Burago