How can I set up multi language admin ui?

There are a couple of methods that this can be done without the overhead of plugins. Method 1 The first method involves hooking to the load_textdomain_mofile filter. (This must go into a separate plugin) function wpse31785_change_mofile( $mofile, $domain ) { if ( $domain == ‘default’ and get_current_user() == ‘riccardo’ ) return substr($mofile, 0, -8).’it_IT.mo’; return … Read more

How to change ?lang=cn into /cn/

Set permalink to (Post Name) or http://www.example.com/[blog_name]`/%post_id%/%postname%/` Add following code to functions.php of your theme: add_filter ( ‘alias_rule’, ‘xili_language_trans_slug_qv’ ) ; function xl_permalinks_init () { global $XL_Permalinks_rules; if (class_exists(‘XL_Permalinks_rules’) ) { $XL_Permalinks_rules = new XL_Permalinks_rules (); add_permastruct ( ‘language’, ‘%lang%’, true, 1 ); add_permastruct ( ‘language’, ‘%lang%’, array(‘with_front’ => false) ); } }

Change menu with language?

Solved it with add_meta_box in functions.php. Here is my code: add_action( ‘add_meta_boxes’, ‘my_custom_box’ ); function my_custom_box(){ if ( function_exists(‘add_meta_box’) ) { add_meta_box( ‘page_custom_menu’,’page-menu’, ‘page_custom_menu_box’, ‘page’, ‘side’,’high’); add_meta_box(‘page_custom_menu’,’page-menu’, ‘page_custom_menu_box’, ‘post’, ‘side’, ‘high’); } } function page_custom_menu_box(){ global $post; if ( metadata_exists( ‘post’, $post->ID, ‘page_menu’ ) ) { $menu_id = get_post_meta( $post->ID, ‘page_menu’, true ); } $entries … Read more

One of the messages in .po file doesn’t show up

Looks like you may not be able to just add a pair to your .po file, without first adding it to the wordpress.pot file: http://codex.wordpress.org/Translating_WordPress#gettext_files. You’ll also need to compile your .po file into a .mo (Machine Object) file in order for your changes to take effect. I’m not certain that will work, but it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)