Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export'

Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88018

  • lfortunato
  • lfortunato's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
Hello!
With this kind of question (multiple choice with comment), I have to make a simple customization.... but I'm not able to do it!!!! (ARGH!!)

I have activated the "Print answers" and "Export PDF" functionalities on a survey,
and now I have to personalize the print and the PDF showing the text
"Your suggestions" instead of "Comments"
in every questions with type Multiple choice question with comments.

I'm using LS Version 1.92
Please, someone could help me?

Thank you :)
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88023

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
You can have your own translation string

Denis
(see automatic link)
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88030

  • lfortunato
  • lfortunato's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
Thanks for your quick reply!

Following the link you have suggested,
in the section 'Customize an existing translation'
I can see that the URL translate.limesurvey.org
shows only Limesurvey 2.x. but now I have a survey completely configured with Limesurvey 1.92

Have I missed something?
Thank you again...
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88033

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
Get the last po/mo files from 1.02 here: www.limesurvey.org/en/contribute/translations-status

Denis
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88042

  • lfortunato
  • lfortunato's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
Hi Denis... I'm still working on this :(

Downloaded po/mo files, I've done everything with the instructions by the LS website.

I've edited the *.po file and I've added the translations substituting all occurences of 'comment' and 'Comment' with my string which is 'Suggestions'.

Saved and putted the .mo file in the right directory.

I activate my survey and I can see all my updates of the translation
in the admin interface, but when I click 'Print your answers' function,
the text 'Comment' is still there in every questions having type (Multiple choice with Suggestions)...

Any ideas??? Thx!
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88044

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
lfortunato wrote:
Any ideas??? Thx!
Maybe this text is not in translation string ?

Don't know....
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88062

  • lfortunato
  • lfortunato's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
I've substituted many occurrences of 'comment' (in capital letter and/or in lowercase) in the .po file

I have one doubt that the text 'Comment'
in 'Print your answers' function (printanswers.php)
could come from the names of the fields in the table lime_survey_<IDSURVEY>.

When one question has a type Multiple choice with comment,
in this table I find the related field that has 'comment' as suffix of the field name.

Please, anyone can give me suggestions?
Thanks again....
The administrator has disabled public write access.

Re: Multiple choice question with comments - Custom 'Print answers' and 'PDF Export' 1 year 8 months ago #88098

  • lfortunato
  • lfortunato's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
Thank you Denis, and thank you Luciano (lfanfoni).
I wrote to Luciano a message in my language (Italian) and I found the mistake...

I didn't substituted the string 'Comment' with only the first capital letter, but all other occurrences of the same string...

At last all works fine!!!
Thank you all again :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.122 seconds
Donation Image