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

TOPIC: Question Type - Upload Files - change default text

Question Type - Upload Files - change default text 4 years 6 months ago #72114

  • TwentyTwo
  • TwentyTwo's Avatar
Is it possible to change the text "Upload files" for question type file upload?
Now you always see upload files.
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72128

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
I think this text string can be changed by editing the translation

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72131

  • TwentyTwo
  • TwentyTwo's Avatar
thanks Mazi - i had a look into the en.po with Poedit but can't find that text.
I will try to search some more.
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72146

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Please report back if you can't find that string. Maybe it's still hardcoded? What happens if you add another language for testing? Is it translated?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72151

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Hello,

"Upload files" can be translated, but maybe is not translated in your langage :).

You have to update the langage string to have new string in your po file :).
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.

Question Type - Upload Files - change default text 4 years 6 months ago #72152

  • TwentyTwo
  • TwentyTwo's Avatar
thanks, i will try that, just to be sure - i need to add this text to the default en.po right?
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72155

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
There a lack of documentation for poedit, but 1st thing : use the "update from source" function.

Maybe some element here :
http://gettingeek.com/translation-with-poedit-internationalize-localize-wp-themes-guide-part-3-74.html
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
Last Edit: 4 years 6 months ago by DenisChenu.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 6 months ago #72243

  • Steve
  • Steve's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 493
  • Thank you received: 46
  • Karma: 17
I also descriped it in this post:
www.limesurvey.org/de/forum/can-i-do-thi...-token-message#71305

Though it is not available in the documentation. I'll add it soon.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 6 months ago #72260

  • TwentyTwo
  • TwentyTwo's Avatar
can't find it in the en.po
i make sure to check some more if this is something hard coded.

(to change the layout/css of this text is done by the class upload.
that works, in the template.css you can add another a.class {} )

if i find the solution i will post it.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 6 months ago #72267

  • TwentyTwo
  • TwentyTwo's Avatar
i have checked several files now - *upload*.php files.
but can't determine where this text is coming from.
also at the file upload question itself - when i check the source, i see that around the "Upload files" there are also the H2 tags around.
Does anyone know where to look before this html code is generated? with other words where can i find the file that generates the file upload question.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 6 months ago #72271

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Hello,

Th h2 is hardcoded, the string are translated in french, then you can have in the po/mo file if you "update from source"
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
Last Edit: 4 years 6 months ago by DenisChenu.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 6 months ago #72272

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
It seems like this was hardcoded at an older Limesurvey version. Which Limesurvey version do you use?

I found the string yaou mentioned at /limesurvey/qanda.php ~line 3794:
.$qidattributes."&pos=".($pos?1:0)."'>Upload files</a></h2><br /><br />";

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72273

  • Steve
  • Steve's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 493
  • Thank you received: 46
  • Karma: 17
Hello,

you can also download the .mo and .po files at www.limesurvey.org/en/contribute/translations-status . There should be an up-to-date version.

The string you are looking for has the original string "Upload files". Try to use the search function in poEdit to find this entry and try to edit it the way you want.



Be sure to copy the newly created/updated .mo file to your \locale\en\LC_MESSAGES\ directory.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
Last Edit: 4 years 6 months ago by Steve.
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72275

  • TwentyTwo
  • TwentyTwo's Avatar
Great thanks a lot, I will retry again!
@Mazi - i am using 1.91 build 10030
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 6 months ago #72292

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
rs1176, that might be the outdated version having the string hardcoded. Please update and process as described by vierundzwanzig above.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.473 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form