The PDF version of the manual is downloadable from the end of this instruction page.
With Dzongkha Language pack for WordPress published, it is now easy to have Dzongkha monolingual or bilingual (Dzongkha and English) WordPress website. This is the updated instruction on how to create Dzongkha English bilingual WordPress website. You can check our older version of instruction by clicking here: Instructions for creating WordPress website in Dzongkha.
For Dzongkha monolingual website, set the Dzongkha as the default language by going to Setting->General-> Site Language and choose རྫོང་ཁ from the list and save the changes. However, if you are creating Dzongkha and English bilingual website, you will have to set it using multilingual plugin which is discussed below.
The better and easier way of having WordPress website in multiple languages could be using multi-language plugins. A multi-language plugin will provide you with a means to reproduce your content in another language or languages. This could be done post by post – meaning you would manage it manually – or you could go so far as to reproduce your entire site in the target language. Some plugins even offer automatic translation, although the quality of the translation is questionable at this point of time. However, automatic translation to Dzongkha is not provided by any of the plugins.
Amongst others, Polylang is free, easy to use and useful multi-language plugins. With this plugin, we can translate posts and pages, the site title and the description, the widget titles and also the menus.
“There are posts, pages, categories or tags without language. You can set them all to the default language.” Please click on “You can set them all to the default language”. By doing so, all your existing post in English will be assigned English language.
Now similarly, add Dzongkha as a content language. Dzongkha now is in the predefined list.
Reorder the menu items by dragging and dropping under the Menu Structure Section and click on Save Menu.
Creating a post is as same as creating pages. You can create posts both in English and Dzongkha as we can do for pages. Unlike for pages, we can add categories and tags for posts.
You can also create categories and tags in English or Dzongkha and its translation.
Create a css file in the active theme’s folder and name it dzo.css.
An important property to keep in mind is the font-family. It is important that we use the Dzongkha fonts for the proper display of Dzongkha. How to embed and use Dzongkha font is described below.
For the proper display for Dzongkha, it is important that we use Dzongkha fonts. Not all the devices used to access internet may have the Dzongkha fonts installed. However, CSS3 Web Fonts allows Web designers to use fonts that are not installed on the user’s computer.
You can just include the desired font file on your web server, and it will be automatically downloaded to the user’s computers when needed.
Your “own” fonts are defined within the CSS3 @font-face rule. For detailed information on CSS3 @font-face rule, visit http://www.w3schools.com/css/css3_fonts.asp.
We have used CSS3@font-face rule on our website allowing our website to be viewed properly even from the devices having no Dzongkha fonts installed.
For the WordPress site in Dzongkha, upload the Dzongkha web fonts in your theme’s folder.Currently, we have DDC_Uchen font and Dzongkha_calligraphic font in True Type file format and Embedded OpenType file format with which it will be enough to display Dzongkha properly in any browsers.
Click here to download the Dzongkha Web Fonts. Dzongkha calligraphic font is a preferred web font.
.
You may use the following CSS codes embedding Dzongkha font.
@font-face
{
font-family: ‘dzongkha’;
src: url(‘fonts/dzongkha_calligraphic.eot?#iefix’) format(’embedded-opentype’),
url(‘fonts/dzongkha_calligraphic.ttf’) format(‘truetype’);
}
Note: in above code, fonts are supposed to be in the folder named fonts in the same directory as the css file. Though, the TrueType Font file is supported by all the web browsers, Embedded Opentype Font file is still used for the older versions of IE which some users with Windows XP still uses it.
In your CSS file, you can assign the value “dzongkha” to the font-family property of the desired selectors as follows:
* {
font-family:dzongkha !important;
}
You will have to use the appropriate css file for the Dzongkha and English language and it can be done by editing wordpress’s header.php file.
Use wordpress get_locale() function to know the current locale and switch the css file accordingly as shown in the following code.
The idea is to use the dzo.css file when locale dzo is selected (for Dzongkha pages).
In the header.php file of the theme in use, paste the following code exactly before closing head tag.
<?php
If (get_locale()==”dzo”)
{ ?>
<link rel=’stylesheet’ id=’dzongkha’ href='<?php echo get_stylesheet_directory_uri() ?>/dzo.css?ver=1.9′ media=’all’ />
<?php
}
?>
Note: It is assumed that style.css is the theme’s default css file. Change accordingly for your theme.