Viewing 6 replies - 1 through 6 (of 6 total)
  • Try escaping it: \'

    Thread Starter simonac

    (@simonac)

    Hi Christian, thanks for the answer.

    As i am a non coder, could you please tell me a little more detailed how to to that? ??

    Thanks in advance

    With a backslash. I did it in my other reply to show you. Here it is again, maybe easier to see:

    \'

    I hope that helps. ??

    Thread Starter simonac

    (@simonac)

    Well, as i said …a non coder ??

    SO would that be correct?

    \' if($original === 'Thank you. Your account has been approved. — You'll receive an email momentarily.')
    					$translated = 'Danke!... ';

    Thanks Christian

    Heh, yeah, I noticed, but that’s not a problem. ??

    You needed to escape the single quote inside the sentence, because you’re using that same single quote to wrap it.

    And you need that line to match the exact same one in the code, otherwise it won’t be === to the $original. The one in the code is actually slightly different.

    Try this:

    if ($original === '<strong>Thank you.</strong> Your account has been approved.<br />&mdash; You\'ll receive an email momentarily.')
    	$translated = 'Danke!... ';

    I hope that helps. ??

    change you’ll to you will

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to translate this specific Sentence?’ is closed to new replies.