Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Editing Template Variables

Editing Template Variables 5 years 2 months ago #53658

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
The templates in limesurvey have variables with present text. for example

Varibale:{Welcome}
Preset text: Welcome to this sample survey. You should have a great time doing this

What my colleague was trying to do was change the preset text of the {WELCOME}and {PRIVACY} variables so that the new welcome message and privacy message would appear on all the templates where the variable is used.

She was trying to find the variable in the database so that we can alter what the welcome message states in one location and not have to go to each template.

Granted she can copy the template and then remove the variable with the preset text but then what if a person creates a survey using a template different to the one she copied and modified because it has the desired colors and what not.
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53659

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
You need to adapt the text in the translation files (there is a good description on how to translate LS in the manual).
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53660

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
oh. the PoEdit is installed on the survey author's desktop as opposed to the limesurvey live environment?
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53662

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
PoEdit is just an editor to help you to translate the files. If you want to translate the files, you need to get the respective files on your computer, save them, translate them and upload them back to the server.

Due to some other comments you made, I would recommend to install a LS test environment on your local computer (e.g. XAMPP + Limesurvey), so you can test your changes to LS and only upload the changes/modifications to your productive system once you are done and happy with it.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53663

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
Sorry, I don't understand the question. Just follow the instructions provided by holch.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53684

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
i downloaded poedit and the two translation files for english to my pc.

I opened the .en file using the poedit (see screen shot A) and when i right click on the Welcome I see where that entry references (see screen shot a) Now when i go to open any of the 3 references listed. I get an error message which is most likely due to no opening the language files from the pc with the limesurvey installation.

first i want to know if i am on the right track here?

second when i search the path shown in the reference

/var/lib/limesurvey-svn/subversion1x/admin/html.php

i am only getting as far as /var/lib(see screen shot b)

is this because we do not have something included in our installation?
Last Edit: 5 years 2 months ago by JoeJoe. Reason: not sure if attachment A was included
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53685

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
No screenshots here. Probably you ran into the Pixel-Limit (800*800px).
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53686

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
do you see screen shot b? i used the select file to attach method for that and selected the .png. i also edited the post and did it for A as well.

the app i am using to browse the directories/files on the limesurvey installation from my windows desktop is called WINSCP.
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53688

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
Just download the necessary files to your destop. Don't browse them directly on the server. This should be the best way to do it. Alternatively you can download them with the installation zip file of Limesurvey.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53689

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
yup that is what i did. i am looking at the translation files from my pc.

which directory should these two translation files be located on the limesurvey installation theoretically?

i would write some documentation of how to use poedit to modify the welcome message but i need to get it right first.

were any of my screen shots seen?
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53691

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
No, no screenshots to be seen in this thread.

As described here docs.limesurvey.org/tiki-index.php?page=...anslating+LimeSurvey you can find the files in the folder /locale/your_language_code/LC_MESSAGES/.

For English this would be /locale/en/LC_MESSAGES/

Using PoEdit itself is quite straight forward.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53718

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
i really need some help here. I do not understand how to edit the translation files so that i can alter what the (Welcome} message.
I am reading the documentation but not understanding please assist.
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53720

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
Honestly, my problem is, that I don't understand what you don't understand. ;-)
I found editing translations pretty simple and straight forward. At the moment I am a little surprised that you encounter so many difficulties, especially as you seem to be a advanced computer user, if you are allowed to work with putty on the server of the productive environment.

However, let's start from the beginning.

- Did you download the translation files to your computer and saved in in a folder?
- Is PoEdit installed?
- Can you open the translation files?
- What does it look like, when you open the translation files?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Last Edit: 5 years 2 months ago by holch.
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53721

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4390
  • Thank you received: 620
  • Karma: 197
Your IT guy is still out of the office? He can't assist you? Because remote help in those cases (this has little to do with LS, but with using programs and computers in general) is very difficult.

I will try and see what we can do from here.

This is how it look for me, when I open the en.po file with PoEdit:


You see the base string in the left column, as it should appear now in your Limesurvey installation. In the right column, there would usually be the translations for other languages. But for obvious reasons, in the English version, there are no translated string.

I have never done this for the English version, but if you now search for the string that you want to change, you can then insert your modified string in the lower text box and it should appear in the right column. Then save it and upload it into the right folder of Limesurvey. Then the changes should be applied.

However, I strongly recommend to make such changes in a test environment first (this is considered a good practice), and only upload it to the productive system (the server where you want to run the surveys on) once you are sure that it is what you want. And make backups from the original files, so that you can go back in case you did something wrong and get lost.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Editing Template Variables 5 years 2 months ago #53726

  • JoeJoe
  • JoeJoe's Avatar
  • Offline
  • Junior Lime
  • Posts: 28
  • Karma: 0
I have attached what i see when I open the en.po file in Poedit.

when i use the find utility to search for (WELCOME} i find what is shown in the screenshot.




In the first section i was expecting to find

Welcome to this sample survey
You should have a great time doing this

but instead I saw
Welcome Message:

and in the second I saw
Welcome page
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.300 seconds