Check out the LimeSurvey source code on GitHub!

Editing Template Variables

More
6 years 1 month ago #53658 by JoeJoe
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.

Please Log in to join the conversation.

More
6 years 1 month ago #53659 by holch
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 | Workarounds

Please Log in to join the conversation.

More
6 years 1 month ago #53660 by JoeJoe
oh. the PoEdit is installed on the survey author's desktop as opposed to the limesurvey live environment?

Please Log in to join the conversation.

More
6 years 1 month ago #53662 by holch
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 | Workarounds

Please Log in to join the conversation.

More
6 years 1 month ago #53663 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 1 month ago - 6 years 1 month ago #53684 by JoeJoe
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: 6 years 1 month ago by JoeJoe. Reason: not sure if attachment A was included

Please Log in to join the conversation.

More
6 years 1 month ago #53685 by holch
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 | Workarounds

Please Log in to join the conversation.

More
6 years 1 month ago #53686 by JoeJoe
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.

Please Log in to join the conversation.

More
6 years 1 month ago #53688 by holch
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 | Workarounds

Please Log in to join the conversation.

More
6 years 1 month ago #53689 by JoeJoe
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?

Please Log in to join the conversation.

More
6 years 1 month ago #53691 by holch
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 | Workarounds

Please Log in to join the conversation.

More
6 years 1 month ago #53718 by JoeJoe
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.

Please Log in to join the conversation.

More
6 years 1 month ago - 6 years 1 month ago #53720 by holch
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 | Workarounds
Last Edit: 6 years 1 month ago by holch.

Please Log in to join the conversation.

More
6 years 1 month ago #53721 by holch
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 | Workarounds
Attachments:

Please Log in to join the conversation.

More
6 years 1 month ago #53726 by JoeJoe
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

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form