Re: [greenstone-users] multi-lingual pages

From Katherine Don
DateMon, 19 Feb 2007 12:40:52 +1300
Subject Re: [greenstone-users] multi-lingual pages
In-Reply-To (45D2E271-60205-sdb-org)
Hi Julian

I am not sure exactly what you are trying to do here.
Have you got a customized home page where you describe the collections?
If you make the text be a macro, then you can translate the macro.

For example, in home.dm, instsead of adding
"My library has 5 collections and they are great." into the

oops

The requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library.
macro, add
_textmycollections_ instead.

Then you can put _textmycollections_ into english.dm like
_textmycollections_ {My library has 5 collections and they are great.}
and similarly in the other language macro files, eg in french.dm
_textmycollections_ [l=fr] {My library has 5 collections and they are
great in French.}

These text macros don't actually need to go in the language macro files
- if you wanted, you could keep them all together in home.dm. We split
the text fragments into separate files to make it easier for translation.

I hope this helps,
Regards,
Katherine

Julian Fox wrote:
> Hi there,
> Very proud of meself at the moment! Have managed to work out how to
> adjust the basic look of the Greenstone page, so means I'm getting a
> handle on some of these macros, css etc.
> Question: I wish to give people (mine is a very multicultural
> readership) the option of reading 'about' the collections, which
> themselves will contain material in several languages, in four languages
> other than English - Spanish, Italian, French, Portuguese. What's best
> here? Give them an immediate link on the home page to a homepage in
> their own language? and will that be relatively simple to arrange? Or
> just explain everything - very briefly! - on the existing home page in
> five languages, and ditto for the 'about' pages. I guess that's the
> easiest but it sure will keep me brief!
> Julian
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>