Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Problem with email layouts translation

Problem with email layouts translation 2 Jahre 2 Tage her #87054

  • pes130
  • pes130s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Hi,

We have a problem with email layouts translations (some of them don't work). These messages are in properties files, and I assume they work this way:
with 'invitation_subject'=>$oLanguage->gT("Invitation to participate in a survey",$mode) we look in our properties file (es.mo in our case) for the string with 'msgid' "Invitation to participate in a survey" and get the 'msgstr' value.

We can see that in \limesurvey\admin\admin_functions.php line 305.

Up to here, this works fine, but the problem comes with more complex texts, like in line 306 in the same file. I don't know why, but in this case in doesn't recover the translated text. I think it's because there is a difference between text in admin_functions.php and the msgid value in properties file.

Is this a bug? I think I could fix it by rewritting the msgstr or the php file, but it's not a proper solution because we'll have problem as soon as we update limesurvey.

We have limesurvey Versión 1.92+ Build 120822 installed,

Thanks,
Pablo
Letzte Änderung: 2 Jahre 2 Tage her von pes130. Begründung: mark some text for a better comprehension
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87269

  • pes130
  • pes130s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Any ideas or workaround?

Thanks,
Pablo
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87387

  • pes130
  • pes130s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Maybe my exposure of the problem was too complex... It's just that email default messages translations don't work for me.

Has anyone the same problem?

Thanks,
Pablo
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87408

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6429
  • Dank erhalten: 839
  • Karma: 249
Did you have some " or ' in the translation or in the original ?
If yes, think the new translation method don't work good wit " and '.

You can change the string and the translation because LS aren't updated for 1.92.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87496

  • pes130
  • pes130s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Hi Denis,

This is one of the properties value which is not working properly:

msgid ""
"Dear {FIRSTNAME},\\n\\nyou have been invited to participate in a survey.\\n"
"\\nThe survey is titled:\\n\\\"{SURVEYNAME}\\\"\\n\\n\\"
"\"{SURVEYDESCRIPTION}\\\"\\n\\nTo participate, please click on the link "
"below.\\n\\nSincerely,\\n\\n{ADMINNAME} ({ADMINEMAIL})\\n"
"\\n
\\nClick here to do the "
"survey:\\n{SURVEYURL}"
msgstr ""
"Estimado/a {FIRSTNAME} {LASTNAME}:\\n\\nHa sido invitado a participar en la "
"siguiente encuesta:\\n\\n«{SURVEYNAME}»\\n\\n«{SURVEYDESCRIPTION}»\\n"
"\\nPara hacerlo, por favor pulse en el siguiente enlace:\\n\\n{SURVEYURL}\\n"
"\\n¡Muchas gracias por su interés y colaboración!\\n\\nAtentamente,\\n\\n"
"{ADMINNAME} ({ADMINEMAIL})"

I have got it from es.mo file with poedit. It has many ", is that the problem you are refering to?

Thanks in advance
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87514

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6429
  • Dank erhalten: 839
  • Karma: 249
pes130 schrieb:
I have got it from es.mo file with poedit. It has many ", is that the problem you are refering to?
Yep,

You can try to use html curly quote to replace quote.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: pes130

Re: Problem with email layouts translation 1 Jahr 11 Monate her #87636

  • pes130
  • pes130s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Hi Denis,

You are right, that was the problem. But using curly quote didn't work for me... In admin_functions.php and also in es.po, I've replaced " for '

I would have prefered not having to touch admin_functions.php...

Thank you Denis,
Regards,
Pablo
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.147 Sekunden
Donation Image