Hi all, i am new to Druplal, i am working on site with two languages ( French (ltr) and Arabic (rtl), i am using Omega 3 for theming with subtheme, i implemented all the files provided with this theme, the problem is on Arabic (rtl) section, i want to note that languages are added perfectly, i can switch between theme with no problem Ltr and Rtl, the issue is when i want to theme RTL section with custom file css that do not exist in the package of Omega, how to add this file that will be styled separatly for the Arabic section with graphics and fonts, i know the file global.css is perfect but juste for French section, i made some searching and find LESS but the problem is already how to add this CSS file to my Subtheme CSS folder, i need your help please.
Thanks all

Comments

Drave Robber’s picture

Project: Drupal core » Omega
Version: 7.3 » 7.x-3.1
Component: language system » Documentation
Assigned: i2man » Unassigned
Priority: Critical » Normal
  • Drupal core is Drupal core, and Omega theme is Omega theme;
  • please do not assign issues to yourself unless you're planning to write a patch/solution for them;
  • support requests cannot be 'critical'.
neocode’s picture

We had the same issue, we needed to have a specific css per language to fine tune the presentation. We also needed this css file to load last. We did as follows:

1. Under the subtheme folder we added a branding folder containg a folder for each language where we added each of the css files. ie. themes/subtheme/branding/ar/styles.css (for arabic), themes/subtheme/branding/zh/styles.css (for chinese), themes/subtheme/branding/en/styles.css (for english) ... etc.

2. Then we modified the template.php file adding the following lines at the end, right before the closing of php ( ?> ):

function subtheme_preprocess_page(&$variables) {
global $language;
// load the specific styles per language
drupal_add_css(path_to_theme() . '/branding/'. $language->language .'/styles.css', array( 'group' => CSS_THEME , 'weight' => 99,'preprocess' => 1));

}

You should replace the 'subtheme' word in the above lines with whatever you called your subtheme.

i2man’s picture

Sorry for late, i am ready to try your code, i will tell you what's going after implementing your solution.
Thank you