WordPress.org

Ready to get started?Download WordPress

Forums

012 Ps Multi Languages
[resolved] 012-ps-multi-languages with twentyeleven (7 posts)

  1. peppe01
    Member
    Posted 1 year ago #

    Hi,
    I'm trying the plugin with the "twenty eleven" theme, I configured the file wp-content/012-m17n-config/config/config.php for two languages​​, Italian by default and English.
    I have two problems:
    # 1 English is the default
    # 2 In the homepage there isn't an English Italian switch-flag.

    Should I change any php file of the theme?
    The plugin works with the "twenty eleven" theme?

    thanks

    http://wordpress.org/extend/plugins/012-ps-multi-languages/

  2. peppe01
    Member
    Posted 1 year ago #

    Correction: in the backend everything is ok, but in the front-end English is the default language, and there isn't the languages switch

  3. Wang Bin
    Member
    Plugin Author

    Posted 1 year ago #

    こんにちは
    peppe01さん

    config/function.phpを参照してください。

    マルチ言語 switch リスト
    <?php
    head.phpに下記のソースを追加してください。
    if ( function_exists( 'pml_multilingual_list' ) ) $ml = pml_multilingual_list();
    echo $ml;
    OR
    if ( function_exists( 'pml_multilingual_list' ) ) pml_multilingual_list(true);
    ?>
    Bread Crumb:
    <?php if ( function_exists( 'ps_012_m17n_bread_crumb' ) ) ps_012_m17n_bread_crumb(); ?>

    参考サイト
    http://www.tokyotaste.net/

  4. Wang Bin
    Member
    Plugin Author

    Posted 1 year ago #

    Hello
    Mr. peppe01

    please refer to the config / function.php.

    Switch list Multi-Language

    Please add the following source to head.php.

    <? php
    if (function_exists ('pml_multilingual_list')) $ ml = pml_multilingual_list ();
    echo $ ml;

    OR

    if (function_exists ('pml_multilingual_list')) pml_multilingual_list (true);
    ?>

    Bread Crumb:

    <php if (function_exists ('ps_012_m17n_bread_crumb')) ps_012_m17n_bread_crumb ();?>

    Reference site
    http://www.tokyotaste.net/

  5. peppe01
    Member
    Posted 1 year ago #

    Thanks for the quick response Mr. Wang Bin
    I'm sorry, maybe I did not understand. I tried for a week.
    1) I tried to paste the code in the header.php theme of twenty eleven
    2) I tried to install other themes
    In any case, the plugin only works in the back end, the switch does not appear in the front-end
    3) The problem may be the WordPress version 3.4.1. ?

    The trouble is I'm not a genius of php, could you tell me more clearly the code, the file and the place to paste it?

    thanks again

  6. stephan13
    Member
    Posted 1 year ago #

    Everything works but I dont get the flags in the header. No mather what I do or try..

    Tried it in different themes but no luck..

    Please help

  7. amonti
    Member
    Posted 1 year ago #

    Answered in another post

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic