Welcome, Guest
Username: Password: Remember me

TOPIC: Change default language

Change default language 3 years 11 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 3 years 11 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 3 years 11 months ago #74806

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8214
  • Thank you received: 1120
  • Karma: 332
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 :)
The administrator has disabled public write access.

Change default language 3 years 11 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 3 years 11 months ago #74812

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1594
  • Thank you received: 391
  • Karma: 103
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
The administrator has disabled public write access.

Change default language 3 years 11 months ago #74830

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8214
  • Thank you received: 1120
  • Karma: 332
Helo,

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

Denis
The administrator has disabled public write access.

Change default language 3 years 11 months ago #74834

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1594
  • Thank you received: 391
  • Karma: 103
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
The administrator has disabled public write access.
The following user(s) said Thank You: mas_carpone

Change default language 3 years 11 months ago #74835

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8214
  • Thank you received: 1120
  • Karma: 332
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
The administrator has disabled public write access.
The following user(s) said Thank You: mas_carpone

Change default language 3 years 11 months ago #74841

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1594
  • Thank you received: 391
  • Karma: 103
...autant pour moi! :whistle:
Benoît
The administrator has disabled public write access.

Change default language 3 months 1 week ago #127879

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 185
  • 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 3 months 1 week ago #127884

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1594
  • Thank you received: 391
  • Karma: 103
It's ok :)
Benoît
The administrator has disabled public write access.

Change default language 3 months 1 week ago #127891

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4365
  • Thank you received: 615
  • Karma: 197
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 3 months 1 week ago #127939

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 185
  • 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.
Moderators: ITEd
Time to create page: 0.565 seconds