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
After downloading the Dzongkha language pack, upload the file dzo.mo to wp-content->languages folder. Create the folder "languages" if it is not there.
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 in section (e)
Create a css file in the theme's folder and name it dzo.css.
Copy the contents of the theme's stylesheet as it is and paste it in the dzo.css file.
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 in section (d).
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.
Note: It is assumed that style.css is the theme's default css file. Change accordingly for your theme.
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.
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:
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.
If you tried other multilingual plug-in, deactivate them before activating Polylang. Go to Plugins->Add new and search for "polylang". Install and activate the plugin.
ii) Adding content Language
Go to the languages settings page and first add English as one of the content language.
Once English language is added, it is very likely that you get following notification:
"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 langauge". 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.
Once you have added content languages, you can translate the website title, the description by going to settings->language -> String Translation.
Add the 'language switcher' widget to let your visitors switch the language.
Add pages, links and categories to the menu by choosing the menu to edit and checking the check boxes for pages, categories etc. you want to add. Then click on Add to Menu.
Reorder the menu items by dragging and dropping under the Menu Structure Section and click on Save Menu.
To add an English version of the page and have it automatically linked, click on blue ‘+’ button under the Translations of the Languages section in the right side of the page.
Enter the Title and Content for the page and Click on Publish button. (You will notice that the Dzongkha version of the page is already linked to the English version as indicated in the picture).
The page now will be available both in English and Dzongkha and you can switch between the two by clicking on the links of the language switcher widgets.
Creating post is as same as creating pages. You can create post 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.