Themes and languages
Login / Search
#34492 (In Topic #7772)
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 ?
Last one to leave the country, please turn off the lights.
Wow, that's a lot of questions . I'll see if I can answer them…
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:
takes precedence over an image X under the path:
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:
I'd advise using the editing interface for theme images inside ocPortal. The disk structure (as described in my answer in ) 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.
No. I've just added this to the code for the next patch release though.
Right, it'd be as explained in . 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.
1 guests and 0 members have just viewed this: None