Joomla!, Wordpress tips for building your site

Translation(internationalization) with Wordpress

Published on| December 15th, 2009 | 1 Comment.

MO file is used for translation of internationalization by WordPress.
The basic translation files (extension is ‘.mo’) will exist in the following directory,
/wp-content/languages

".mo" file is a binary file.
its original text is ".po" file.

Usually, if you want to change the translation, you will edit ".po" file by text editor ( ex. memo ). And you will convert from ".po" file to ".mo" file.
You can use famous free convert tool ‘po editor‘.

Usage is very simple.
Open ". po" file (menu [File]-[Open]), and edit , and save ". po" file (menu [File]-[Save]).
poedit_0

When you save ". po" file, ".mo" file will be save by automated too.
Of course, ‘.mo’ file is saved that was converted to binary file from text file.

If you want to translate in the template(thema), you should edit like a following code.

<?php _e('Search'); ?>
<?php echo __('Search'); ?>

Upper, 'Search' will be translated to locale language, and it will display by ‘echo’.
Bottom, 'Search' will be translated to locale language, and it will be returned. If you want to display its, you should edit ‘echo’.






Comments

One Response to “Translation(internationalization) with WordPress”

  1. Baroca
    October 8th, 2014 @ 16:58:24

    A good online alternative to the translation tool poedit is the online localization platform https://poeditor.com/
    Use it ith this plugin to automate the process of translating .po files even more https://wordpress.org/plugins/poeditor/

Leave a Reply








Transrator

Recent Posts

Categories

Tag Cloud

execute remove フロントページ 投稿ページ トップページ install WIndows Note Convert META generator 日付 donwload file manage multibyte utf-8 unicode shiftjis euc console サイトマップ 問題 ParmaLink Redirect パーマリンク はみ出る pre テンプレート テーマ タグクラウド マルチランゲージ リダイレクト PHP(タグ) タグ table control HTML(タグ) コマンド 国際化(翻訳) SQLite(タグ) MySQL(タグ) qTranslate プラグイン(タグ) Wordpress(タグ)

Links

Site Description

Joomla!, Wordpress as CMS using a site building, site management, software usage to describe the development tips.

  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする
ページトップへ