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.


Installing Google Translation Query

Login / Search

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

Fan in training

Where's the "Side Block"

Hi

I'm totally new to OcPortal .. so forgive my denseness. I've installed the Google Translate addon and I've noticed the …

"By adding

Code

[block]side_language[/block]
to the side block of your website, you will give your users the option to translate the content of your website into another language by using Google Translate."

My question … Which side block? There's heaps of them in the templates folder.

Thanks

O_o

You can use logic to justify anything. That's its power. It’s also it’s flaw
Back to the top
 
Posted
Rating:
#70966
Avatar

Community saint

Hi keekwai, welcome aboard! I'm wondering if that blurb should say "panel" and not "block". The translate block should work by putting it in one of your side panels, left or right.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#71049
Avatar

Fan in training

Thanks for that. Sorted and working now.

One more question.

Does anyone know where I can get Thai language for it like this site has? (In the footer)

The "lang_custom" folder included in the addon only has 18 languages and Thai is not one of them.


EDIT: … I made another folder called "TH" in the "lang_custom" folder and copied a "global.ini" into it. Then edited all the files with languages mentioned to include Thai .. e.g " 'th'=>'Thai' "  and  "case 'th':" etc (without the quotes)

Won't work. When I click on "Thai" in the dropdown menu the page refreshes into … English!

Anyone know what I'm missing?


Last edit: by keekwai

You can use logic to justify anything. That's its power. It’s also it’s flaw
Back to the top
 
Posted
Rating:
#71051
Avatar

Not sure, but this site is not running the addon -- we are just using the standard Google Translate widget, not a specific ocPortal addon.


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:
#71055
Avatar

Fan in training

Hmm, OK. Not a great endorsement for the plugin then. Lol.

I'll check out Google … thanks.

You can use logic to justify anything. That's its power. It’s also it’s flaw
Back to the top
 
Posted
Rating:
#71057
Avatar

Well, it serves a purpose, to seed translated content on a big complex site, but yeah I prefer the simplicity of just letting Google translate via their supported way.


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
 
There are too many online users to list.
Control functions:
 Add topic 

Quick reply   Contract

Your name:
Your message: