Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Change default language

More
12 years 2 months ago #74834 by Ben_V
Replied by Ben_V on topic Change default language

When survey have only ONE langage, there are no reason to have problem

Helas Denis !:
Case 1: you are using a LS platform and you set french as default language because you're french and 90% of your surveys are in french... One day (or one night) you're going too fast, and setting an english one you choose french as default (because it's late or you're working like a machine)...!
Result: tips, alerts etc. in french...

Case 2: You have a more than 50 items french survey (working like a charm) with conditions, asessments and a lot of funny other stuffs and you need the same in english (only english :lol: )...
I think it could be more rapid to try to change the default language and translate questions, answers, etc...

Ben/

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: mascarpone
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 2 months ago #74835 by DenisChenu
Replied by DenisChenu on topic Change default language

benitov wrote:

When survey have only ONE langage, there are no reason to have problem

Helas Denis !:
Case 1: ...
Case 2: ...

Ben/

I think you don't understand what i mean.

I mean : there are no reason to have a problem to change the default langage of a survey in phpMyAdmin or in export/import lss file if survey have only ONE langage.

because it's late or you're working like a machine

I never working like a machine :P

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: mascarpone
The topic has been locked.
More
12 years 2 months ago #74841 by Ben_V
Replied by Ben_V on topic Change default language
...autant pour moi! :whistle:

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
8 years 5 months ago #127879 by mascarpone
Replied by mascarpone on topic Change default language

DenisChenu wrote:

benitov wrote:

When survey have only ONE langage, there are no reason to have problem

Helas Denis !:
Case 1: ...
Case 2: ...

Ben/

I think you don't understand what i mean.

I mean : there are no reason to have a problem to change the default langage of a survey in phpMyAdmin or in export/import lss file if survey have only ONE langage.

because it's late or you're working like a machine

I never working like a machine :P


Folks, what would you advise I use to open/edit that .lss?

Thanks!
The topic has been locked.
More
8 years 5 months ago #127884 by Ben_V
Replied by Ben_V on topic Change default language
It's ok :)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 months ago #127891 by holch
Replied by holch on topic Change default language

mas_carpone wrote: Folks, what would you advise I use to open/edit that .lss?
Thanks!


See Ben's post from 3 years ago:

"3) open one of this file with a text editor".

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
8 years 5 months ago #127939 by mascarpone
Replied by mascarpone on topic Change default language
Ok thanks!

Note that when editing an .lss file to change the base language of a survey (say from english to french) you need to change (at least) 2 expressions: [en] to [fr] and <language>en</language> to <language>fr</language>

(Not sure whether there are other expressions in addition to those 2 to be edited)
The topic has been locked.
More
6 years 1 week ago #167442 by mos3465
Replied by mos3465 on topic Change default language
Just a note - the base language change via updating the language column in lime_surveys doesn´t seem to work for limesurvey 3.5 anymore. It will break the survey.

The replacement of [{lang}] and <language>{lang}</language> works like a charm, though.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
5 years 6 months ago #175697 by DanielVN
Replied by DanielVN on topic Change default language
Hi All,

I have the same question for a live survey where i have 2 languages Greek (set as default) and English. I would like to switch them so the English will be the base language. My main goal is to show the Response filters in teh statistics in English as theya re currently shown in the main language.

Thank you in advance.

Cheers
Daniel
The topic has been locked.
More
4 years 10 months ago - 4 years 10 months ago #184922 by Institut
Replied by Institut on topic Change default language
Hello,

I've got more or less the same problem: i need to change the base language to spanish of a survey which is in catalan. I've tryed two ways:

1. Creating a new survey, setting the language to spanish and then importing the groups of questions from the original survey to the new one. The problem here is that Lime indicates that this action can't be done because the base language of the two surveys must be the same (which it is a bit paradoxical, because i'm not translating the survey; this is something that perhaps could be fixed).

2. Doing as Ben_V says:

1) export the survey as .lss file
2) Make a copy in case of trouble !
3) open one of this file with a text editor
4) Replace all expressions related with current language with format <![CDATA[XX]]>

for example replace :
<![CDATAb]ca[/b]>
with your choosen language
<![CDATAb]es[/b]>




I have also changed the language codifications for the email templates and so on (<span lang="ES")

File Attachment:

File Name: LimesurveyCA.lss
File Size:514 KB

File Attachment:

File Name: LimesurveyES.lss
File Size:514 KB
. I have edited in LibreOffice, saved it as an lss (algo as a .txt) and then uploaded it to Lime again. I've got no problem with the importation, but when i try to open the survey i can't, and there appears a message saying '500 internal server error. Selecter Surveys language not found'. It's strange, because i've selected the code 'es' for the spanish language from another survey that i have created in spanish, i exported it in lss and checked if it was the right code.

Any clues? I attatch the original export in lss from the catalan survey and the modifyed one in spanish, if anyone could check.

Thank you very much!!
Last edit: 4 years 10 months ago by Institut.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #184927 by Joffm
Replied by Joffm on topic Change default language
Hi,
here you get an *.lss with base language "Spanish".

I had to remove a lot of strange characters (which character set did you use in LibreOffice?).

So here you are:

File Attachment:

File Name: limesurvey...6_ES.lss
File Size:478 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Institut
The topic has been locked.
More
4 years 10 months ago #184955 by Institut
Replied by Institut on topic Change default language
Hello Joffm, thank you very much for your help.

I use Libe Office oppening the files with the character set UTF8, the same i'm using when i work with the L.O. calc on .csv / .vv files (and i've never had problems before with UTF8...). I notticed the strange characters but i thought that when uploading the file again to the web it yould be solved.

I've checked your file and it works perfectly. Thank you VERY MUCH again for your help.

Cheers!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose