[GeoNetwork-devel] cant get localized files to work in new widgets GUI

Hi all,

I am localizing to one of my native languages and did following steps:

  1. Translated all files basing on english files and put them in respective loc locations
  2. Created and uploaded sql scripts for the various *des tables, languages table and

cswservercapabilitiesinfo table.

  1. added the new language tag in each of the other lang’s strings.xml file.

  2. added new language’s code in config-gui.xml

Now if I access using …/srv/newlangcode/…, it works fine and I see localized text for old GUI. but when I switch to widgets GUI (say tabsearch) using the url …/geonetwork/apps/tabsearch, I don’t see the localized files nor any option to specify them in url.

I do see a languages combo box at the top right but the new language I added is not listed there.

if anyone can help, what may have I missed above? are language files taken from a different place in the new widgets-based GUI?

Thanks and Regards,

Ameet

Hi,

try adding ?hl=newlangcode in your URL. It selects the startup language code. Not sure it will work, though, if it’s not listed in the combo

···

2013/11/15 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi all,

I am localizing to one of my native languages and did following steps:

  1. Translated all files basing on english files and put them in respective loc locations
  2. Created and uploaded sql scripts for the various *des tables, languages table and

cswservercapabilitiesinfo table.

  1. added the new language tag in each of the other lang’s strings.xml file.

  2. added new language’s code in config-gui.xml

Now if I access using …/srv/newlangcode/…, it works fine and I see localized text for old GUI. but when I switch to widgets GUI (say tabsearch) using the url …/geonetwork/apps/tabsearch, I don’t see the localized files nor any option to specify them in url.

I do see a languages combo box at the top right but the new language I added is not listed there.

if anyone can help, what may have I missed above? are language files taken from a different place in the new widgets-based GUI?

Thanks and Regards,

Ameet


DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi,

?hl seems to work only if the language is in the top right combo. But my language is not shown there despite uploading required sql scripts and translating all the loc files and also adding it in the languages list in config-gui.xml.

So my concern is how to make it available to the new widgets GUI?

Thanks
Ameet

···

On Fri, Nov 15, 2013 at 10:46 PM, Jean Pommier (IGE) <jean.pommier@anonymised.com> wrote:

Hi,

try adding ?hl=newlangcode in your URL. It selects the startup language code. Not sure it will work, though, if it’s not listed in the combo

2013/11/15 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi all,

I am localizing to one of my native languages and did following steps:

  1. Translated all files basing on english files and put them in respective loc locations
  2. Created and uploaded sql scripts for the various *des tables, languages table and

cswservercapabilitiesinfo table.

  1. added the new language tag in each of the other lang’s strings.xml file.

  2. added new language’s code in config-gui.xml

Now if I access using …/srv/newlangcode/…, it works fine and I see localized text for old GUI. but when I switch to widgets GUI (say tabsearch) using the url …/geonetwork/apps/tabsearch, I don’t see the localized files nor any option to specify them in url.

I do see a languages combo box at the top right but the new language I added is not listed there.

if anyone can help, what may have I missed above? are language files taken from a different place in the new widgets-based GUI?

Thanks and Regards,

Ameet


DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi,

Then I don’t know… sorry
Cheers,

Jean

···

2013/11/15 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

?hl seems to work only if the language is in the top right combo. But my language is not shown there despite uploading required sql scripts and translating all the loc files and also adding it in the languages list in config-gui.xml.

So my concern is how to make it available to the new widgets GUI?

Thanks
Ameet

On Fri, Nov 15, 2013 at 10:46 PM, Jean Pommier (IGE) <jean.pommier@anonymised.com> wrote:

Hi,

try adding ?hl=newlangcode in your URL. It selects the startup language code. Not sure it will work, though, if it’s not listed in the combo

2013/11/15 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi all,

I am localizing to one of my native languages and did following steps:

  1. Translated all files basing on english files and put them in respective loc locations
  2. Created and uploaded sql scripts for the various *des tables, languages table and

cswservercapabilitiesinfo table.

  1. added the new language tag in each of the other lang’s strings.xml file.

  2. added new language’s code in config-gui.xml

Now if I access using …/srv/newlangcode/…, it works fine and I see localized text for old GUI. but when I switch to widgets GUI (say tabsearch) using the url …/geonetwork/apps/tabsearch, I don’t see the localized files nor any option to specify them in url.

I do see a languages combo box at the top right but the new language I added is not listed there.

if anyone can help, what may have I missed above? are language files taken from a different place in the new widgets-based GUI?

Thanks and Regards,

Ameet


DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

You may want to try Util.js

https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/Util.js

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/cant-get-localized-files-to-work-in-new-widgets-GUI-tp5089409p5089650.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.