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.


Themes and languages

Login / Search

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

Community saint

Me again :$

At which level in the theme folders should the EN and FR folders be added ?
Theme root and just copy everything in the 2 folders ? Images folder ? logo folder ? Only make language folders where there will be differences according to language ?

Created 3 zones, and 3 themes. Initial intention is to have different color and different logo for each zone.
Won't work. Selected proper theme in zone editor, apply to every zone is not selected in any of the themes, tried with cache on, cache off, no way. Logo and box color will be the one in the previous zone, and will only change with shift/ctrl/alt. And so on everytime you change zone. Is there a way to get this to work, or is it just not possible ?

Saw the theme wizard generates buttons.
Buttons are a pain in the neck to make when you have another language, and if you have 4 themes you have to go through it 4 times.
If I manage to locate the graphic files containing just the english text for the butttons, and make a french version of these, will the wizard generate both versions ? If it can, in which folder should i create FR EN subfolders containing the modified graphic files ?

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34500
Avatar

Hi,

Wow, that's a lot of questions ;). I'll see if I can answer them…

1)

I'm going to explain this, but ocPortal's theme image editing screens should handle it all behind the scenes, by storing things in the database to indicate what is for what.

The image internationalisation works with an override system. An image X under the path:
themes/<theme>/images[_custom]/<lang>/X
takes precedence over an image X under the path:
themes/<theme>/images[_custom]/X.

In other words, the FR directory would need to exist in the images / images_custom directory, and the directory structure underneath that directory is dictated by the paths (if any) in the image name.
So an example:

Code

themes/newtheme/images_custom/FR/logo/-logo.png

2)

Is there a way to get this to work, or is it just not possible ?

I'd advise using the editing interface for theme images inside ocPortal. The disk structure (as described in my answer in [1]) is only read the first time ocPortal tries to load up an image. After that point, the database gets used to find the image paths. What is probably happening is ocPortal has a database record for your themes indicating to load the logo images out of the file path used by the default theme.

3)

If I manage to locate the graphic files containing just the english text for the butttons

http://ocportal.com/forum/pg/topicview/misc/2345/index.php&kfs182=0

4)

will the wizard generate both versions ?

No. I've just added this to the code for the next patch release though.

If it can, in which folder should i create FR EN subfolders containing the modified graphic files ?

Right, it'd be as explained in [1]. The Theme Wizard works off the on-disk theme images in ocPortal's default theme. So for this case, using the theme image editor wouldn't work.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: