Skip to:
Content
Pages
Categories
Search
Top
Bottom

Inconsistent translation


  • Mark
    Participant

    @markhahnel

    Hi,

    I have a site that I have translated to polish using the po mo files. My homepage is set using a bp-custom file, when logged in, everything is fine, however when logged out, it reverts to a previous english version. So when new users go in, expecting to be able to read it, its Polish, any ideas. Im thinking my template needs a line in saying lang = pl or something?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)

  • Roger Coathup
    Participant

    @rogercoathup

    Did you follow the instructions on this page: https://pl.buddypress.org/home/ ?

    You may also want to make sure you have the language specified in your wp-config:

    `
    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
    * language support.
    */
    define (‘WPLANG’, ‘fr_FR’);
    `

    change to Polish in your case, of course!


    Mark
    Participant

    @markhahnel

    Thanks @roger_coathup

    I followed that. The site is http://www.pl.science3point0.com – as you can see its in english but when I log in its polish?

    I have a template on the homepage, should I be adding define (‘WPLANG’, ‘Pl-pl’); to the template?


    Roger Coathup
    Participant

    @rogercoathup

    No… that line goes in your wp-config.php (as I said above). It doesn’t go in your template.

    Are you using a different set of templates when someone is logged in?

    Post the code used to create your header.php, and a screenshot of logged in vs. non-logged in. Without that, it is hard to give further support on this.


    Mark
    Participant

    @markhahnel

    Not as far as I know. Its odd. Users also cannot change their profile pic!

    If you go to http://www.pl.science3point0.com you will see that it is english whereas logged in it is Polish.
    This is the template

    ‘<?php

    /*

    Template Name: Activity Index

    */

    ?>

    <div class="post" id="post-“>

    <?php the_content( __( '

    Read the rest of this page →

    ‘, ‘buddypress’ ) ); ?>

    __( ‘

    Pages: ‘, ‘buddypress’ ), ‘after’ => ‘

    ‘, ‘next_or_number’ => ‘number’)); ?>

    Ostatnio na S3.0?

    • <a href="” title=””>
    • <a href="” title=””>
    • <a href="” title=””>
    • <a href="” title=””><?php printf( __( 'My Favorites (%s)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
    • <a href="” title=””>



    Mark
    Participant

    @markhahnel

    WHoops `<?php

    /*

    Template Name: Activity Index

    */

    ?>

    <div class="post" id="post-“>

    <?php the_content( __( '

    Read the rest of this page →

    ‘, ‘buddypress’ ) ); ?>

    __( ‘

    Pages: ‘, ‘buddypress’ ), ‘after’ => ‘

    ‘, ‘next_or_number’ => ‘number’)); ?>

    Ostatnio na S3.0?

    • <a href="” title=””>
    • <a href="” title=””>
    • <a href="” title=””>
    • <a href="” title=””><?php printf( __( 'My Favorites (%s)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
    • <a href="” title=””>


    `


    Mark
    Participant

    @markhahnel

    Backticks isnt working.


    Mark
    Participant

    @markhahnel


    Roger Coathup
    Participant

    @rogercoathup

    Have you made your changes in the wp-config.php file?

    As I said, post your header.php file


    Roger Coathup
    Participant

    @rogercoathup

    @boonebgorges, @hnla , @djpaul – can anyone fix the broken html in this stream?


    Mark
    Participant

    @markhahnel

    Yes, Ive defined wpland as PL_pl


    Mark
    Participant

    @markhahnel

    Sorry that was meant to say wplang obviously!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Inconsistent translation’ is closed to new replies.
Skip to toolbar