Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Change default language

Change default language 4 years 7 months ago #74798

  • Margarita
  • Margarita's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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!
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74805

  • Margarita
  • Margarita's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
ok, the answer is: it's not possible to change it afterwards.
but would be great if it was...
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74806

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9358
  • Thank you received: 1341
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74810

  • Margarita
  • Margarita's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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 ;)
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74812

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1827
  • Thank you received: 449
  • Karma: 111
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
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74830

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9358
  • Thank you received: 1341
  • Karma: 386
Helo,

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

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Change default language 4 years 7 months ago #74834

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1827
  • Thank you received: 449
  • Karma: 111
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
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
The following user(s) said Thank You: mas_carpone

Change default language 4 years 7 months ago #74835

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9358
  • Thank you received: 1341
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: mas_carpone

Change default language 4 years 7 months ago #74841

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1827
  • Thank you received: 449
  • Karma: 111
...autant pour moi! :whistle:
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Change default language 11 months 12 hours ago #127879

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 192
  • Thank you received: 14
  • Karma: 3
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 administrator has disabled public write access.

Change default language 11 months 9 hours ago #127884

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1827
  • Thank you received: 449
  • Karma: 111
It's ok :)
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Change default language 11 months 8 hours ago #127891

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5176
  • Thank you received: 769
  • Karma: 230
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".
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.

Change default language 10 months 4 weeks ago #127939

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 192
  • Thank you received: 14
  • Karma: 3
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 administrator has disabled public write access.
Time to create page: 0.609 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form