Re: [greenstone-users] multilanguage revue

From Richard Managh
DateThu, 19 Apr 2007 11:03:49 +1200
Subject Re: [greenstone-users] multilanguage revue
In-Reply-To (200704161233-21847-pascal-docip-org)
Hi Pascal,

To accomplish displaying different languages in greenstone in a single collection you can create different language versions of your macros, one for each language.

For example you could have different language versions of the link that users click to look at an issue.

_linkissue_ [l=en] { link to english version of an issue }
_linkissue_ [l=es] { link to spanish version of an issue }
_linkissue_ [l=fr] { link to french version of an issue }
_linkissue_ [l=ru] { link to russian version of an issue }

You need to also provide a way for the user to change the interface language, in order for the interface to display in different languages. You can use greenstones default preferences interface for this, or create your own links which change the current language displayed. which would be a macro resulting in the url to the current page, but with the l argument different.
So if the user was looking at http://nzdl.sadl.uleth.ca/cgi-bin/library?a=p&p=about&c=demo, the interface in english, in order to create a link to the same page in spanish, you would use a link exactly the same but with &l=es on the end:

http://nzdl.sadl.uleth.ca/cgi-bin/library?a=p&p=about&c=demo&l=es

This url can be helpfully generated by the following macros when added to macro filess:

      /gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-niivsrb--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=p&p=about&c=demo&l=es
or  /gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-niivsrb--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=p&p=about&c=demo&l=es
or  /gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-niivsrb--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=p&p=about&c=demo&l=es

which are all equivalent.

The previous mentioned methods all apply to implementing more than one language in a single collection, however, perhaps the easiest way of accomplishing what you want would be to create 4 collections, one in each language, and provide links between them.

Hope this helps,

Richard.
-- 
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com

Pascal D. Angst wrote:
Dear friends,

we are publishing a quarterly revue in four languages (en, es, fr, ru), which 
we want to put in a greenstone collection. Now we would like to know if there 
is a possibility to have the issues being displayed or "used" only in the 
selected interface language. The idea would be to have the search only in one 
language indexes, and the classifiers (e.g. Datelist) only showing one 
language edition. Thanks for any hint,

Pascal D. Angst
Indigenous Peoples' Center for Documentation, Research and Information
Geneva, Switzerland
  

_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users