Help implementing multilanguage suport

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 13
Joined: Mon Jul 16, 2012 1:18 am

Help implementing multilanguage suport

Postby juli » Tue Nov 27, 2012 3:00 am

Hi all!

I need support for translating a custom block. This block may have a translation working like a static page, detecting the current display language by context and displaying the correct strings.

I thought that this option is not implemented and I'm looking to implement it.

I would like to know where I can find some documentation about the multilanguage api and methods works and should be implemented. If this that not exist some reference to some code or any example will be useful.


Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Help implementing multilanguage suport

Postby ramon » Tue Nov 27, 2012 6:07 am

Hello juli,

If I understood well, what you want is to use the Custom Block Manager plugin to create blocks of content, but the content of the custom blocks is not multilingual (which I believe it should!).
There's already a a BUG filed in Bugzilla, so they can think of a solution for this.
This would be a very nice feature indeed.

If you're in a hurry, here's a workaround.

I'd suggest creating your own Block plugin, instead of using the Custom Block manager, as this will allow translation of its content, if it's not that complicated.
Check the code of those types of plugins and see if one of them helps you create what you need.

Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest