By sangu on
I am working on a bilingual site (english and dzongkha). This is the first time i am using drupal. My problem is that the contents i have posted in english comes out fine but the contents in dzongkha comes in a very small font size. Is there a way to increase the font size for dzongkha only?
Is it necessary to convert the dzongkha (dz) text into NCR unicode?
Any help on this would be appreciated.
Comments
When working with this kind
When working with this kind of issue, you can have one of two different options: you can either apply an id to the body tag to allow you to change all font sizes of Dzongkha, or you can create an alternate style sheet altogether to increase font sizes of only certain elements.
Increasing font sizes globally:
Add the following to your page.tpl.php:
What this will do is provide a language id that you can manipulate within the CSS like so:
Depending on the set language of each page, the body will automatically adjust to the same language so that you can style entire pages exclusively for either language.
Increasing font size for certain elements:
Add the following to your page.tpl.php:
This PHP will print the language abbreviation in front of the .css extension, so that you'll have two CSS files to edit: "en.css" and "dz.css". You can go into each one and provide styles for each element, like this:
In the en.css:
In the dz.css:
___________________
Preston So
Web/Print Designer
Monarch Digital, Colorado Springs
My non-updated non-Drupal site
___________________
Preston So
tried the way u suggested
Hi Prestonso, Firstly thanks for ur reply. I tried both the ways u suggested but could not get it rite.
1. When Increasing font sizes globally with this code:
And i check the page source, the body id is blank (it does not provide a language id)
2. I tried Increasing font size for certain elements, the en.css and dz.css are not printed. These files are suppose to be inside the theme folder that i am using, rite?
I am not doing something right, can u please suggest?
And inside the drupal installation there is a folder named 'drupal/files/css', i see that there many css there. How are these css updated?
1. What's your version of
1. What's your version of Drupal?
2. You have to create the en.css and dz.css files and import styles from your original style sheet and change them depending on the language. So en.css will contain the English elements that will have a smaller font size, and dz.css will contain the Dzongkha elements that will have a larger font size. Place both style sheets into your theme folder.
In terms of "drupal/files/css", I'm not seeing the CSS files you're talking about. What's your version?
___________________
Preston So
Web/Print Designer
Monarch Digital, Colorado Springs
My non-updated non-Drupal site
___________________
Preston So
i am using drupal 5.7. i
i am using drupal 5.7. i have created the dz.css & en.css but i think it is still using the default style.css. i looked inside the /drupal/include/, there is theme.inc where this is given:
I don't know php so iam assuming, that the line marked with *** is still looking for the default style.css and using it. So how can i make en.css and dz.css to be used for specific language?
With the code for Increasing font size for certain elements given below inserted inside page.tpl.php:
After which the page source is like this:
the style sheet should have been dz.css or en.css but it just gives "/.css". Why is this happening?
Thanks
What modules are you using
What modules are you using for multilingual capabilities?
___________________
Preston So
Web/Print Designer
Monarch Digital, Colorado Springs
My non-updated non-Drupal site
___________________
Preston So
I am using multilanguage -
I am using multilanguage - i18n module for multilingual capability.
I am also using the multilanguage - i18n-experimental module.
The theme used is 'greenNblack'.
Hi, I finally got the
Hi,
I finally got the language to use its repective css (en.css & dz.css) with this code:
Thanks for ur help.
In Drupal 6
In Drupal 6, I found that 'Increasing font sizes globally' worked great. I added the code after the first occurrence of the body tag in the page.tpl.php file. I didn't include the closing body tag
But actually, it still seems to be working OK if I remove the global definition and only include the id="" at the end of the body class="" definition which is already in the tpl.php. So that line looks like this, and no other changes are made to the file
<<body class="<?php print $body_classes; ?>" id="<?php print $language->language ?>">I'm still wondering how to apply language-specific css styles when two languages are mixed on the same page. This is apparently difficult in Drupal at the moment.