HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Random quote in multi language

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67129 (In Topic #14327)
Avatar

Honoured member

Adapt to an choice for more then one language

Hi,

As far as I can see there is an option to use the "Random quote" files, its even possible to use more then one file and theres an option to edit the lines in the AdminZone. So far so good, but as ocPortal is able to handle a language change and/or use options to come to a multi language site, I wonder if its much work to extend the "Random quote" program so that we can use translated or files with groups of quotes in other languages so that the program gets a quote from the file that offers lines in the language visitors are working with, and, as with translations, fall back to English or another language if that language is not available?

So a dutch member visit the site and the quote shown is one selected from the NL dir/file, and if thats not there, one of the as default selected language, e.g. English, file is selected. There are files with quotes available on the internet with several languages.

Just an idea, Puran.

21-7-1955 - 24-10-2011 I hope she rest in peace and I hope to see you soon.  Puran
Back to the top
 
Posted
Rating:
#67131
Avatar

Honoured member

I found while translating that there must be some multilanguages option allready for quotes, but I did not found that in the AdminZone,
greetings Puran

21-7-1955 - 24-10-2011 I hope she rest in peace and I hope to see you soon.  Puran
Back to the top
 
Posted
Rating:
#67134
Avatar

Hi,

Should be possible. If you set your language to NL (&keep_lang=NL), then go edit, it should save under Dutch whilst leaving the English ones alone.

However I think you need to kick-start it by copying text_custom/EN/quotes.txt to text_custom/NL/quotes.txt.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67135
Avatar

Honoured member

Thanks :thumbs: I give it a try.

21-7-1955 - 24-10-2011 I hope she rest in peace and I hope to see you soon.  Puran
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: