Support » Plugin: WP-Members Membership Plugin » TOS Translation missing

  • Hi,

    I need to display the TOS Checkbox during registration.
    On the English Page it works fine, on the german it only shows Terms of Service instead of the whole translation sentence.
    I can recreate the problem on a fresh wordpress install so it is definitely not a problem that is isolated to my blog.

    Does anyone know how to fix this sp that a whole german sentence is displayed?

    • This topic was modified 9 months, 1 week ago by rctomcat.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Well i played around with it and noticed the following:

    A fresh single language instance of wordpress (German) Displays only “Terms of Service” (the name of the Checkbox). Switching to english displays the sentence “Please indicate that you agree to the Terms of Service” (name of the Checkbox is still “Terms of Service”.)
    The po file lists “Please indicate that you agree to the TOS” as a translation string.
    Changing the po file to “Please indicate that you agree to the Terms of Service” does not solve my problem.
    I noticed the same problem for french as well.

    Is there anyone who got it working and could tell me what 1. the po file says/which one he or she uses and 2. what the TOS Checkbox is named in the install?

    Plugin Author Chad Butler

    (@cbutlerjr)

    There is actually an issue with the current version as far as translating the TOS is concerned. There’s some new logic that was added over the last couple of releases to manage some different needs. As a result, I think there’s a possible issue.

    It will be addressed (read: fixed) in the next release.

    rctomcat

    (@rctomcat)

    Thank you for the reply.
    I am looking forward to the fix then.
    I really appreciate the work you do.

    Hi Chad, just bringing this back up.
    I just noticed that 3.2.7 has been released. As far as i can tell the problem still persists.
    The checkbox is called “Terms of Service” and displays only “Terms of Service” on the German registration page.
    On the english it is still the correct “Please indicate that you agree to the Terms of Service ”
    Anything I need to do to “activate” the fix? Or is the fix not included in the latest release?

    So even if the translation is added into the mo files the German Version only displays “Terms of Service” instead of the sentence.
    The mo file is being used, i checked by changing the translation for Day Phone ;). For some reason it does not detect the Terms of Service sentence

    Edit:
    I also tried with a filter function:

    
    add_filter( 'wpmem_tos_link_txt', 'my_function' );
    function my_function( $text ) {
             switch ( $locale ) {
            
            case "de_DE":
                $text = 'Bitte stimme den %s Nutzungsbedingungen %s zu';
                break;
                
    
            
            default:
                $text = 'This is a testPlease indicate that you agree to the %s Terms of Service %s';
                break;
        }
        //$text = 'Please indicate that you agree to the %s Terms of Service %s';
         
        return $text;
    }
    

    I only get the default text on the Terms of Service 🙁
    Why won’t it detect the language on the TOS?

    • This reply was modified 8 months, 2 weeks ago by rctomcat.
    • This reply was modified 8 months, 2 weeks ago by rctomcat.

    Well i figured out that i needed to use the polylang variable for languages instead of the locale as the locale never changes 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TOS Translation missing’ is closed to new replies.