OJS OCS OMP OHS

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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page. While these are OJS-specific, the OCS codebase is similar enough to OJS they should be of help. There is also an [url=http://pkp.sfu.ca/ocs_documentation[/url]OCS Documentation[/url] page with some more general documentation that might also be of interest.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a technical support question, try the OCS Technical Support subforum.

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.
Thanks.
Best Regards.
Ehsan Shahrokhi
ehsantux
 
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:
http://en.wikipedia.org/wiki/Unicode_control_characters#Bidirectional_text_control
http://en.wikipedia.org/wiki/Bi-directional_text#Unicode_support

Hope this helps,
MJ
mj
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

Hi,
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
Thanks
Best Regards
ehsantux
 
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.

Cheers,
James
jmacgreg
 
Posts: 4186
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.

Regards
Ala7lam
 
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 0 guests