Change default language

More
5 years 4 months ago #74798 by Margarita01
Margarita01 created the topic: Change default language
Hello!

How can I change the default language of a survey that already exists?
I neither can't find any button, nor any suggestions in the manual or the forum.

Thanks!

Please Log in to join the conversation.

More
5 years 4 months ago #74805 by Margarita01
Margarita01 replied the topic: Change default language
ok, the answer is: it's not possible to change it afterwards.
but would be great if it was...

Please Log in to join the conversation.

More
5 years 4 months ago #74806 by DenisChenu
DenisChenu replied the topic: Change default language
Hello Margarita,

You can change the default langage, but there are problem if you do.

You can access to your database ( via phpmyadmin) and acces to lime_surveys table, select modify the langage.

Something like that:
UPDATE `lime_surveys` SET `languages` = 'en' WHERE `lime_surveys`.`sid` =17617;

BUT, this not translate the sentences :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 4 months ago #74810 by Margarita01
Margarita01 replied the topic: Change default language
Hey,

thanks for your support! in the meantime i just did the whole survey again, but it's good to know for the next time ;)

Please Log in to join the conversation.

More
5 years 4 months ago #74812 by Ben_V
Ben_V replied the topic: Change default language
Margarita,

I did the following several times, always for surveys with only 1 language ...and I don't remember if there was further problems for example with some answers backup (VVfiles)...
So don't try this if your survey is already activated

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 :
<![CDATA[en]]>
with your choosen language
<![CDATA[fr]]>

5) Import and test...

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: ecoutinho

Please Log in to join the conversation.

More
5 years 4 months ago #74830 by DenisChenu
DenisChenu replied the topic: Change default language
Helo,

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

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 4 months ago #74834 by Ben_V
Ben_V replied the 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

Please Log in to join the conversation.

More
5 years 4 months ago #74835 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: mascarpone

Please Log in to join the conversation.

More
5 years 4 months ago #74841 by Ben_V
Ben_V replied the 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)

Please Log in to join the conversation.

More
1 year 7 months ago #127879 by mascarpone
mascarpone replied the 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!

Please Log in to join the conversation.

More
1 year 7 months ago #127884 by Ben_V
Ben_V replied the 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)

Please Log in to join the conversation.

More
1 year 7 months ago #127891 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
1 year 7 months ago #127939 by mascarpone
mascarpone replied the 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)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now