Welcome, Guest
Username: Password: Remember me

TOPIC: Question Type - Upload Files - change default text

Question Type - Upload Files - change default text 4 years 3 weeks 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 3 weeks ago #72128

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
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 3 weeks 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 3 weeks ago #72146

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
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 3 weeks ago #72151

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

Question Type - Upload Files - change default text 4 years 3 weeks 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 3 weeks ago #72155

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8243
  • Thank you received: 1124
  • Karma: 335
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
Last Edit: 4 years 3 weeks ago by DenisChenu.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 3 weeks ago #72243

  • Steve
  • Steve's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 494
  • 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 3 weeks 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 3 weeks 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 3 weeks ago #72271

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8243
  • Thank you received: 1124
  • Karma: 335
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"
Last Edit: 4 years 3 weeks ago by DenisChenu.
The administrator has disabled public write access.

Aw: Question Type - Upload Files - change default text 4 years 3 weeks ago #72272

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
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 3 weeks ago #72273

  • Steve
  • Steve's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 494
  • 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 3 weeks ago by Steve.
The administrator has disabled public write access.

Question Type - Upload Files - change default text 4 years 3 weeks 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 3 weeks ago #72292

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
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.191 seconds