OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Custom Block Manager multilingual?

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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.

Custom Block Manager multilingual?

Postby riccardo » Tue Feb 08, 2011 2:10 pm

After some trials I realized that the Custom Block Manager is language indipendent, and I did not have any success to find a way to change the Custom Block Manager contents switching to a different language.
Is it my fault or is there a solution?

Thanks!
Riccardo
riccardo
 
Posts: 2
Joined: Fri Feb 04, 2011 5:29 am

Re: Custom Block Manager multilingual?

Postby jmacgreg » Thu Feb 10, 2011 10:09 pm

Hi Riccardo,

This is a bug! I have submitted a bug report here -- http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6398. Please feel free to CC yourself to that report for future updates; and thanks for pointing it out!

Cheers,
James
jmacgreg
 
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Custom Block Manager multilingual?

Postby Balta » Fri Mar 23, 2012 8:52 am

I had to deal with the same limitation few days ago. I bypassed the difficulty with javascript and the use of an alternate Header (Step 3. Website Headers, Footers, Lists and Navigation Bar). The result can be see there : http://ocs.univ-metz.fr/index.php/EUTIC12/EUTIC_2012

1) set : "3.1 Conference Homepage Header > Title text" to blank
2) set : "3.2 Website Header > Title text"" to blank
3) use the 3.2 Website Header > Alternate Header with a specific tag (in my case, I used "titre_en" and "titre_fr") for each language.
4) use javascript to propose some specific contents according to the tag used in the alternate header :
Code: Select all
 <script type="text/javascript">// <![CDATA[
if (document.getElementById("titre_en"))
{
// english text
document.write("<p><a title='Follow us on Twitter' href='http://twitter.com/eutic2012' target='_blank'>Follow us on Twitter</a></p>");
}
else
{
//french text
document.write("<p><a title='Suivez notre actualit&eacute; sur Twitter' href='http://twitter.com/eutic2012' target='_blank'>Nous suivre sur Twitter</a></p>");
}
// ]]></script>


I'm not sure that it is the best solution but it seems to work excatly as we wanted.

Best regards.

Didier
Balta
 
Posts: 1
Joined: Fri Mar 23, 2012 8:13 am

Re: Custom Block Manager multilingual?

Postby jmacgreg » Wed Mar 28, 2012 10:12 pm

hi Didier,

Thanks for the tip! I don't see any problem in the way you have done this, although of course we'll want to ensure that OJS makes the process easier in the future, without need for a workaround. Good luck with your conference.

Cheers,
James
jmacgreg
 
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Custom Block Manager multilingual?

Postby aoterocalvi » Mon May 06, 2013 6:21 am

jmacgreg wrote:hi Didier,

Thanks for the tip! I don't see any problem in the way you have done this, although of course we'll want to ensure that OJS makes the process easier in the future, without need for a workaround. Good luck with your conference.

Cheers,
James



In OJS, which variables I need to control to get similar effect.

Thanks

Alexis
aoterocalvi
 
Posts: 8
Joined: Thu Dec 16, 2010 9:03 am

Re: Custom Block Manager multilingual?

Postby Garant » Tue May 28, 2013 2:50 am

Hi!
Will OJS have a native support of multilangual Custom Block Plugin feature in the next release?
Garant
 
Posts: 238
Joined: Wed May 30, 2012 8:53 am


Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 2 guests