Tuesday, May 26, 2009

wordpress + qTrans, make theme has N-lang

Step 1
the muilt-lang field using
__("your text", "your_domain")

Step 2
add
load_theme_textdomain("your_domain");
to your theme functions.php

Step 3
Generate pot -> po -> mo file (ie using poEdit)
using the name locale.mo (where locale must map to your setting at qTrans)
and put this file at the root of the theme directory.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.