You are viewing the PKP Support Forum | PKP Home Wiki

Changing Ocs CSS files

OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

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.

Changing Ocs CSS files

Postby ehsantux » Tue Jan 20, 2009 11:57 pm

Hi my friends...
I am translating OCS to farsi and I want to know how I can change the text directions of OCS pages to Right to Left for Farsi.
Best Regards.
Ehsan Shahrokhi
Posts: 3
Joined: Sat Dec 27, 2008 8:23 am
Location: Tehran/Isfahan,Iran

Re: Changing Ocs CSS files

Postby mj » Wed Jan 21, 2009 7:32 am

Hi Ehsan,

OCS (and, in fact, all of the PKP applications) uses the UTF-8 standard for character encoding, which supports bi-directional ("bidi", ie. right-to-left, "RTL") text. All that's required to have the text display in RTL is to add the appropriate Unicode mark characters at the beginning of each line for RTL. This is usually automatically done by any RTL-based editor when producing UTF-8 files, eg. XML.

More information is available here:

Hope this helps,
Site Admin
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: Changing Ocs CSS files

Postby ehsantux » Sun Nov 08, 2009 11:29 am

Thanks... Could you please explain more what should I do? which css files should I change? Should I write some classes in css files? or changing the javascripts?
I keep on your help
Best Regards
Posts: 3
Joined: Sat Dec 27, 2008 8:23 am
Location: Tehran/Isfahan,Iran

Re: Changing Ocs CSS files

Postby jmacgreg » Tue Nov 10, 2009 4:28 pm

Hi ehsantux,

You won't need to change any css files or javascript, etc. You may want to look at the OJS version of Farsi to see how translations work: http://pkp.sfu.ca/ojs-languages/farsi. Mahmoud Saghaei, the OJS Farsi translator, may also be able to give you some help, although I know he is busy.

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

Re: Changing Ocs CSS files

Postby Ala7lam » Tue Jun 22, 2010 4:54 am

Hello guys,

I think what he meant was the actual layout of the system which usually can be controlled using something like dir="rtl" in the header file or direction:rtl; in the CSS file. :D

I know that because I am interested myself to see if the frontend of your systems can be easily changed to a RTL layout without too many problems.

Posts: 4
Joined: Tue Jun 22, 2010 4:50 am

Return to OCS Development

Who is online

Users browsing this forum: No registered users and 1 guest