[GeoNetwork-users] ask:language change??

Hello friends,I'm newbie in geonetwork, can someone help me to change
language in geonetwork with adding new language choice in banner? I'm very
thank you about your help.=^D
--
View this message in context: http://www.nabble.com/ask%3Alanguage-change---tp18806882p18806882.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

Hello ai!

I made this change in my GeoNetwork. In fact, it's not difficult.
All you need to create new language is following:
  1. Create new record in 'languages' table in your GeoNetwork's database.
  2. In all tables which name ends with 'Des' copy all 'en' (or any
other language) entries to
      entries with new language code. Then you will be able to edit
this fields using Web-interface.
  3. Copy folders (all paths listed from GeoNetwork's folder)
      'web/geonetwork/loc/en',
      'web/intermap/loc/en',
      'web/geonetwork/xml/schemas/dublin-core/loc/en',
      'web/geonetwork/xml/schemas/fgdc-std/loc/en',
      'web/geonetwork/xml/schemas/iso19115/loc/en',
      'web/geonetwork/xml/schemas/iso19139/loc/en'
    to folders with new language code.
    (You can use any language as base, not only English.)
    Then you should change copied values with translated strings, of course.
  4. In ALL files 'web/geonetwork/loc/<language code>/strings.xml' you
should add new
      tag with new language code and it's name. It's hard to explain,
look at my example, please.
      I've added Russian language in my GeoNetwork, so I add string
         <ru>Русский</ru>
      where 'ru' is Russian language code and 'Русский' is Russian
language name on Russian.
  5. Add new language link in the banner at the main page.
      Open 'web/geonetwork/xsl/banner.xsl' for editing and find this code:
      <xsl:choose>
        <xsl:when test="/root/gui/language='en'">
           <font class="banner-active"><xsl:value-of
select="/root/gui/strings/en"/></font>
        </xsl:when>
        <xsl:otherwise>
           <a class="banner"
href="{/root/gui/service}/en/main.home"><xsl:value-of
select="/root/gui/strings/en"/></a>
        </xsl:otherwise>
      </xsl:choose>
     Duplicate this fragment (separate new from old using '|') and
change 'en' to new language code.
That's all!

Please let me know about you progress. Any questions are welcome!

On Mon, Aug 4, 2008 at 6:35 PM, ai <ai_mahathir@...8...> wrote:

Hello friends,I'm newbie in geonetwork, can someone help me to change
language in geonetwork with adding new language choice in banner? I'm very
thank you about your help.=^D
--
View this message in context: http://www.nabble.com/ask%3Alanguage-change---tp18806882p18806882.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Best regards,
--
Igor V. Burago

I found both problems:

ERROR 1: That Internet Explorer warning is caused by the script
geonetwork\WebContent\scripts\calendar\lang\calendar-ca.js, specifically is
the line 50, string "Març" of Calendar._MN array. Remove the 'ç' character
to avoid the Internet Explorer warning.

ERROR 2: This was a mistake, I deleted erroneously the entry
<ru>Русский</ru> from file geonetwork\WebContent\loc\ca\xml\strings.xml

Regards,
--
View this message in context: http://n2.nabble.com/ask-language-change-tp2014515p4548184.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

The catalan pop-up calendar was showing, but days of the week where showing
as undefined.

Finally I found a solution. Just in case somebody has similar problems with
calendars in languages diferent to those used in Geonetwork, that is,
implementing a new language, I explain what I changed in the catalan
calendar (calendar-ca.js file) to make it pop-up properly:

- Added the next line of code (comparing the code with code in
calendar-en.js, I realized that this line was missing...)
  
          Calendar._FD = 1;

- Changed all string with accentuated characters, as follows:

line 57: "Març",
  changed to
  "Mar\xE7",

line 86: "Sel.lecció de Dates:\n" +
  changed to
  "Sel.lecci\xF3 de Dates:\n" +

line 89: "- Manté el ratolí apretat en qualsevol dels anteriors per
sel.lecció ràpida.";
  changed to
  "- Mant\xE9 el ratol\xED apretat en qualsevol dels anteriors per
sel.lecci\xF3 r\xE0pida.";

line 94: "- or click and arrastra per sel.lecció ràpida.";
  changed to
  "- o clic i arrastra per sel.lecci\xF3 r\xE0pida.";

line 99: "Mes següent (Mantenir per menu)";
  changed to
  "Mes seg\xFCent (Mantenir per menu)";

line 100: "Any següent (Mantenir per menu)";
   changed to
   "Any seg\xFCent (Mantenir per menu)";

Best regards,
Montse Marco

--
View this message in context: http://n2.nabble.com/ask-language-change-tp2014515p4590642.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Well,

I am a newbie in geonetwork also.. and face some problems.

I'm using GN 2.4.2 and I followed step-by-step the instuctions above to
implement a new language. I managed adding the new language choice in the
banner and adding new language in the database tables.
Afterwards, I made some changes in the xml file "strings.xml" (in C:\Program
Files\geonetwork\web\geonetwork\loc\XX\xml) that contains most of the
generic user interface text, I restarted GeoNetwork, but nothing changed.
Restarting GN doesn't restarts jetty?

Did you face any similar problem?

--
View this message in context: http://n2.nabble.com/ask-language-change-tp2014515p4792319.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

HI,

I didn't have this problem that you mention.

After making all changes explained above, you should see your new language as an option in your GN main page.
If this does not happen, review step 5. Here (in banner.xsl file) is where you tell GN to show your language as a clickeable option.
Remeber to change the string 'en' to your language code, as explained in step 5.

Let me know if that solved your problem

Best regards,
Montse

________________________________
De: gnlb [via OSGeo.org] <ml-node+4791299-445320298-259485@anonymised.com>
Para: mmarco <mmarcosabate@anonymised.com>
Enviado: mié,24 marzo, 2010 15:30
Asunto: Re: ask:language change??

Well,

I am a newbie in geonetwork also.. and face some problems.

I'm using GN 2.4.2 and I followed step-by-step the instuctions above to implement a new language. I managed adding the new language choice in the banner and adding new language in the database tables.
Afterwards, I made some changes in the xml file "strings.xml" (in C:\Program Files\geonetwork\web\geonetwork\loc\XX\xml) that contains most of the generic user interface text, I restarted GeoNetwork, but nothing changed. Restarting GN doesn't restarts jetty?

Did you face any similar problem?

________________________________

View message @ http://n2.nabble.com/ask-language-change-tp2014515p4791299.html
To unsubscribe from Re: ask:language change??, click here.

--
View this message in context: http://n2.nabble.com/ask-language-change-tp2014515p4814269.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Thank you for your answer,

I didn't have any problem adding the new language as a clickeable option. I
added it, but when translating the strings.xml the text in the gui doesn't
change. It's like it doesn't find the translated strings.xml and shows the
default language which is english.

I would be grateful to any idea!

--
View this message in context: http://n2.nabble.com/ask-language-change-tp2014515p4814402.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

In this same thread, Igor V. Burago explains with detail how to do that.
If you are using version 6.0.1 , substitute his step 5 for this one:

- Edit config-gui.xml and add the element new language inside the
<languages> element.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/ask-language-change-tp2014515p5622108.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.