Does anyone know how to disable all the other languages that are supported
by geonetwork except for English?
Regards
--
Prestige
Does anyone know how to disable all the other languages that are supported
by geonetwork except for English?
Regards
--
Prestige
you can simply remove the links to the other languages.. although that will
not really *disable* them, users could still go there if they guess the URL
(language abbreviations are part of the URL). Is removing the links not
sufficient for you ?
kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 11:37 AM, Prestige Makanga <ptmakanga@anonymised.com>wrote:
Does anyone know how to disable all the other languages that are supported
by geonetwork except for English?
Regards--
Prestige------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
it's <install-dir>/web/geonetwork/xsl/banner.xsl.
I've done it for you in the attachment, assuming you're using GeoNetwork
2.4.0.
Kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 12:44 PM, Prestige Makanga <ptmakanga@anonymised.com>wrote:
I think removing the links will be sufficient. Which file will I need to
edit to do this.
RegardsOn Thu, Aug 20, 2009 at 11:41 AM, heikki <tropicano@anonymised.com> wrote:
you can simply remove the links to the other languages.. although that
will not really *disable* them, users could still go there if they guess the
URL (language abbreviations are part of the URL). Is removing the links not
sufficient for you ?kind regards
Heikki DoelemanOn Thu, Aug 20, 2009 at 11:37 AM, Prestige Makanga <ptmakanga@anonymised.com>wrote:
Does anyone know how to disable all the other languages that are
supported
by geonetwork except for English?
Regards--
Prestige------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and
focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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--
Prestige T Makanga
The Cape Urban Observatory Research
University Of Cape Town
Tel: 021 650 4857
Cel: 0836861952
Alt email: Prestige.Makanga@anonymised.com
banner.xsl (7.14 KB)
I am interested in this as well and have been contemplating removing everything in the /loc/ directories, and then all entries in the database that do not correspond to languages other than "en". This would require a bit more work, but should effectively make the application monolingual?
Regards,
Jason
-----Original Message-----
From: heikki [mailto:tropicano@anonymised.com]
Sent: Thu 2009-08-20 11:41
To: Prestige Makanga
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] disable other languages
you can simply remove the links to the other languages.. although that will
not really *disable* them, users could still go there if they guess the URL
(language abbreviations are part of the URL). Is removing the links not
sufficient for you ?
kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 11:37 AM, Prestige Makanga <ptmakanga@anonymised.com>wrote:
Does anyone know how to disable all the other languages that are supported
by geonetwork except for English?
Regards--
Prestige------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Jason,
yes I think it would, but is it worth the trouble ? Seeing you can easily
just hide the language links ?
Worst-case, someone guesses the URL for a different language and ends up
with errors if you have custom localized strings, but not for that other
language. But if you don't want to localize you may as well hard-code those
and all will be hunkey-dorey ?
Kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 5:09 PM, Pickering, Jason Paul
<pickeringj@anonymised.com>wrote:
I am interested in this as well and have been contemplating removing
everything in the /loc/ directories, and then all entries in the database
that do not correspond to languages other than "en". This would require a
bit more work, but should effectively make the application monolingual?Regards,
Jason-----Original Message-----
From: heikki [mailto:tropicano@anonymised.com]
Sent: Thu 2009-08-20 11:41
To: Prestige Makanga
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] disable other languagesyou can simply remove the links to the other languages.. although that will
not really *disable* them, users could still go there if they guess the URL
(language abbreviations are part of the URL). Is removing the links not
sufficient for you ?kind regards
Heikki DoelemanOn Thu, Aug 20, 2009 at 11:37 AM, Prestige Makanga <ptmakanga@anonymised.com
>wrote:> Does anyone know how to disable all the other languages that are
supported
> by geonetwork except for English?
> Regards
>
> --
> Prestige
>
>
------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
> trial. Simplify your report design, integration and deployment - and
focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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
>------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Yeah, I think it is probably not worth the trouble, but unfortunately, we have some strict requirements, so I may have to do it.
I will start with the procedure that you outlined, by removing the links on the main page, and then possibly resort to more drastic measures.
Thanks.
Regards,
Jason
-----Original Message-----
From: heikki [mailto:tropicano@anonymised.com]
Sent: Thu 2009-08-20 17:20
To: Pickering, Jason Paul
Cc: Prestige Makanga; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] disable other languages
Jason,
yes I think it would, but is it worth the trouble ? Seeing you can easily just hide the language links ?
Worst-case, someone guesses the URL for a different language and ends up with errors if you have custom localized strings, but not for that other language. But if you don't want to localize you may as well hard-code those and all will be hunkey-dorey ?
Kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 5:09 PM, Pickering, Jason Paul <pickeringj@anonymised.com.> wrote:
I am interested in this as well and have been contemplating removing everything in the /loc/ directories, and then all entries in the database that do not correspond to languages other than "en". This would require a bit more work, but should effectively make the application monolingual?
Regards,
Jason
-----Original Message-----
From: heikki [mailto:tropicano@anonymised.com]
Sent: Thu 2009-08-20 11:41
To: Prestige Makanga
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] disable other languages
you can simply remove the links to the other languages.. although that will
not really *disable* them, users could still go there if they guess the URL
(language abbreviations are part of the URL). Is removing the links not
sufficient for you ?
kind regards
Heikki Doeleman
On Thu, Aug 20, 2009 at 11:37 AM, Prestige Makanga <ptmakanga@anonymised.com>wrote:
> Does anyone know how to disable all the other languages that are supported
> by geonetwork except for English?
> Regards
>
> --
> Prestige
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Hi !
Heikki Doeleman wrote:
you can simply remove the links to the other languages..
I need to keep only two languages. Would you also disable the other
languages here ?
This method of removing the links is probably sufficient for me but I need
to keep only two in the role-down menu ...
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/disable-other-languages-tp3477963p6007438.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
According to my written down reminder, this is what we did in order to have
GeoNetwork 2.6.0 with only German and English:
/srv/tomcat/geonetwork-260/webapps/geonetwork/WEB-INF/config-gui.xml
Take away the languages you do not need.
/srv/tomcat/geonetwork-260/webapps/geonetwork/index.html
Change the standard for the language used.
Some SQL scripts erase all of the languages in the database you do not need
Script erases all descriptions and the language itself except from German
and English:
DELETE FROM regionsdes
WHERE langid = 'cn'
OR langid = 'es'
OR langid = 'fr'
OR langid = 'nl'
OR langid = 'pt'
OR langid = 'ru';
DELETE FROM operationsdes
WHERE langid = 'cn'
OR langid = 'es'
OR langid = 'fr'
OR langid = 'nl'
OR langid = 'pt'
OR langid = 'ru';
DELETE FROM isolanguagesdes
WHERE langid = 'cn'
OR langid = 'es'
OR langid = 'fr'
OR langid = 'nl'
OR langid = 'pt'
OR langid = 'ru';
DELETE FROM groupsdes
WHERE langid = 'cn'
OR langid = 'es'
OR langid = 'fr'
OR langid = 'nl'
OR langid = 'pt'
OR langid = 'ru';
DELETE FROM categoriesdes
WHERE langid = 'cn'
OR langid = 'es'
OR langid = 'fr'
OR langid = 'nl'
OR langid = 'pt'
OR langid = 'ru';
DELETE FROM languages
WHERE id = 'cn'
OR id = 'es'
OR id = 'fr'
OR id = 'nl'
OR id = 'pt'
OR id = 'ru';
DELETE FROM isolanguagesdes
WHERE iddes != 123
AND iddes != 150;
DELETE FROM isolanguages
WHERE id != 123
AND id != 150;
Script erases all the descriptions for the regions, the regions themselves:
DELETE FROM public.regionsdes
WHERE (iddes < 10000);
DELETE FROM public.regions
WHERE (id < 10000);
DELETE FROM regionsdes
WHERE langid = 'en'
OR langid = 'de';
DELETE FROM regions
WHERE langid = 'en'
OR langid = 'de';
Script updates the descriptions for the new regions in German and English:
insert into regions (id,north,south,west,east)
values (0,53.890337,51.309963,6.677759,11.579058); /* Niedersachsen */
insert into regions (id,north,south,west,east)
values (1,52.347612,52.198982,10.431844,10.6166); /* Braunschweig.
Kreisfreie Stadt */
insert into regions (id,north,south,west,east)
values (2,53.107474,52.989419,8.581742,8.710421); /* Delmenhorst. Kreisfreie
Stadt */
....
/* deutsch */
insert into regionsdes (iddes,langid,label)
values(0,'de','Niedersachsen');
insert into regionsdes (iddes,langid,label)
values(1,'de','Braunschweig, Kreisfreie Stadt');
insert into regionsdes (iddes,langid,label)
values(2,'de','Delmenhorst, Kreisfreie Stadt');
insert into regionsdes (iddes,langid,label)
...
/* english */
insert into regionsdes (iddes,langid,label)
values(0,'en','Lower Saxony');
insert into regionsdes (iddes,langid,label)
values(1,'en','Braunschweig, independent city');
insert into regionsdes (iddes,langid,label)
values(2,'en','Delmenhorst, independent city');
insert into regionsdes (iddes,langid,label)
Erase the directories for the languages you do not need in the following
directories:
/srv/tomcat/geonetwork-260/webapps/geonetwork/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/csw-record/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/dublin-core/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/fgdc-std/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/iso19110/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/iso19115/loc/
/srv/tomcat/geonetwork-260/webapps/geonetwork/xml/schemas/iso19139/loc/
-------
I have not re-checked these things and I am not so familiar with sql, so be
aware of what you do. The thing worked for us for GeoNetwork 2.6.0, but...
-------
We just tried to update from 2.6.0 to 2.6.4, but it did not work for the
database, because we erased the language "es" from the database?! So I give
you a copy of the error message:
011-05-23 14:40:32,247 DEBUG [jeeves.apphand] - Database version:2.6.0
subversion:1
2011-05-23 14:40:32,247 INFO [jeeves.apphand] - Migrating from 2.6.0
to 2.6.4 (dbtype:postgres)...
2011-05-23 14:40:32,247 INFO [jeeves.apphand] - Running SQL migration
step ...
2011-05-23 14:40:32,325 INFO [jeeves.apphand] - Errors occurs during
SQL migration task:
/srv/tomcat/entharvest/webapps/entharvest//WEB-INF/classes/set
up/sql/migrate/2.6.0-to-2.6.4/postgres.sql or when refreshing settings
manager.
org.postgresql.util.PSQLException: ERROR: insert or update on table
"cswservercapabilitiesinfo" violates foreign key constraint
"cswservercapabilitiesinfo_lan
gid_fkey"
Detail: Key (langid)=(es) is not present in table "languages".
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
at jeeves.resources.dbms.Dbms.execute(Dbms.java:263)
at jeeves.resources.dbms.Dbms.execute(Dbms.java:239)
at org.fao.geonet.lib.DbLib.runSQL(DbLib.java:217)
at org.fao.geonet.lib.DbLib.runSQL(DbLib.java:196)
at org.fao.geonet.Geonetwork.migrateDatabase(Geonetwork.java:350)
at org.fao.geonet.Geonetwork.start(Geonetwork.java:142)
at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:475)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:155)
at
jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:74)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
-----
So, maybe it is not so good to simply erase all of the languages you do not
need, for nobody seems to have checked whether an update of the database is
still possible with only some languages left behind.
Tara and good luck!
Anja
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/disable-other-languages-tp3477963p6394453.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
I found the solution for this problem with not being able to update the
database from GeoNetwork 2.6.0 to 2.6.4.
Between 2.6.0 to 2.6.4 the table "languages" gets three more columns. That
seems to be the problem.
You must not (!) delete the entries in the table "languages". If you already
have, just put them in again and then do the update from 2.6.0 to 2.6.4. As
far as we see, the update will work fine then.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/disable-other-languages-tp3477963p6398736.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.