Archive

Posts Tagged ‘language’

How to Get Current Language Code by Using WPML Plugin of WordPress

January 11th, 2010 Masino Sinaga 8 comments

I have been using WPML Plugin for one of my multi language websites. Once upon a time, I needed to check the current language code in order to execute my own code that I wrote in the sidebar related to the current language. The question is: How did I get that current language code? After do some searching through the author’s website, then I found the answer from this following post: WPML coding API. WPML has provided the constants in order to get: 1) The current language code, 2) The name of current language in the original (current) language, and 3) The name of the current language name in English. Thanks to WPML for providing this constants! Read more…

  • Share/Bookmark

How to Detect Default Client’s Browser Language Using PHP

September 14th, 2009 Masino Sinaga No comments

The following code will be able to detect default client’s browser language. I have tested this code by using Mozilla Firefox (FF) version 3.5.2 and Internet Explorer (IE) version 8 browser. Both of those browsers worked like a charm! If you want to try using FF browser, go to the menu on that browser: Tools -> Options… -> Content -> Languages, then click on Choose… button. Add some languages as many as you need to the list afterwards. Try to change the position the language you want, by selecting the language first, and click the Move Up button to make it at the top of the list. Then run the following code, and you will see the output of the code is the language code that you have choosen before. Read more…

  • Share/Bookmark

How to Add Captcha Security Code in osTicket System 1.6 RC5

September 11th, 2009 Masino Sinaga 12 comments

In osTicket System version 1.6 RC5, there is no CAPTCHA feature on the open new ticket form. This will cause sometimes you will receive the ticket that contains of spam, and this will bother your ticket system. In order to decrease the spam ticket, you can implement the security code (CAPTCHA) feature as you can see from this URL: http://www.white-hat-web-design.co.uk/articles/php-captcha.php on your osTicket form. Please try the following steps. Read more…

  • Share/Bookmark

How to Translate Your Blog Title and Description Using qTranslate Plugin

September 5th, 2009 Masino Sinaga 16 comments

Since qTranslate plugin introduced its new feature about QuickTags, we can now translate our field content to another languages so easily. Simply just add this language tag [:en] for English translation at the beginning of your English field  content, and also add another language tag at the beginning of your field content that contains of the words or sentences in your language. At this moment, I will show you how to translate the blog title and description by adding the tags related to the languages that I use (English and Indonesian). Read more…

  • Share/Bookmark

Adjust MicroKid Related Posts v2.3 with qTranslate v2.4.3 Plugins

August 22nd, 2009 Masino Sinaga 7 comments

I have been using qTranslate plugins for the last two days. I love this plugins so much since it is a simple plugins, yet easy to use and also has the powerful feature until now, especially when I edit or add the new post. Simply click the tab regarding to the language you want. If I compare with the other translate plugins, qTranslate is still the best, at least for me. Read more…

  • Share/Bookmark

Poedit: Translation Tools for WordPress

August 22nd, 2009 Masino Sinaga 2 comments

The first time I used WordPress for this website, I was using inove theme (of course, after several hours surfing through the WordPress.org website and test some of them in my localhost website). I love this theme because it has the translatation feature with the language files, including my language, Indonesian. Besides that, the theme layout is so simple, yet clean and powerful enough.  Read more…

  • Share/Bookmark

How to Make a Multi-Language Web Content Page

August 21st, 2009 Masino Sinaga 4 comments

Today was the first time I used WordPress for building this website. I have been looking for a CMS that support for multi-language web content page. I need that each time my visitor read an article in full-mode and they choose one of the languages, then the content of that article will be translated to the new language. Read more…

  • Share/Bookmark