Check out the LimeSurvey source code on GitHub!

Question Type - Upload Files - change default text

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72114 by TwentyTwo
Is it possible to change the text "Upload files" for question type file upload?
Now you always see upload files.

Please Log in to join the conversation.

More
5 years 1 month ago #72128 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72131 by TwentyTwo
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.

Please Log in to join the conversation.

More
5 years 1 month ago #72146 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 1 month ago #72151 by DenisChenu
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72152 by TwentyTwo
thanks, i will try that, just to be sure - i need to add this text to the default en.po right?

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #72155 by DenisChenu
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 1 month ago by DenisChenu.

Please Log in to join the conversation.

More
5 years 1 month ago #72243 by Steve01
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

Please Log in to join the conversation.

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72260 by TwentyTwo
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.

Please Log in to join the conversation.

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72267 by TwentyTwo
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.

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #72271 by DenisChenu
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 1 month ago by DenisChenu.

Please Log in to join the conversation.

More
5 years 1 month ago #72272 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #72273 by Steve01
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
Attachments:
Last Edit: 5 years 1 month ago by Steve01.

Please Log in to join the conversation.

  • TwentyTwo
  • TwentyTwo's Avatar Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #72275 by TwentyTwo
Great thanks a lot, I will retry again!
@Mazi - i am using 1.91 build 10030

Please Log in to join the conversation.

More
5 years 1 month ago #72292 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form