View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
19283Bug reportsDocumentationpublic2023-12-14 13:12
ReporterMazi Assigned To 
PrioritynoneSeveritypartial_block 
Status newResolutionopen 
Product Version6.3.x 
Summary19283: Manual page about adding custom translations is missing
Description

At Limesurvey we have DB tables lime_source_message and lime_message. These allow adding your own translation for certain default texts. It is considered a very useful feature because often you want to adjust some of the existing translations for a certain customer only.
Related code seems to be https://github.com/LimeSurvey/LimeSurvey/blob/master/tests/functional/acceptance/14782-override-translation/LSMessageSourceTest.php.

Unfortunately, there is no documentation at all regarding these tables and how to add your own translation. Please add this so others can benefit from the feature as well.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)5.6.
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)
Webserver software & version (if known)
PHP Version8.1

Relationships

related to 14782 closedDenisChenu Feature requests Possibility to override single translations 
related to 17163 closedDenisChenu Feature requests Allow translation by DB 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2023-11-27 09:27

updater   ~78717

@tibor.pacalat: This feature seems to exist since LS 5.x. Can you discuss within the team how we can make sure we have some documentation for Limesurvey users on how to use this useful feature?

DenisChenu

DenisChenu

2023-11-27 15:44

developer   ~78738

PR with comment : https://github.com/LimeSurvey/LimeSurvey/pull/2213#issuecomment-1016675160

Negotiated on discord.

DenisChenu

DenisChenu

2023-12-06 10:53

developer   ~78886

ping @ollehar and @tibor.pacala t:

I'm OK to create tge manual page AND/OR a micro core plugin with 4 inputs

  • Original sentence
  • Language dropdown
  • Translated sentence
  • Delete current checkbox

(The except via DB : no way to know current translation, can be added if you want in future)

Mazi

Mazi

2023-12-06 10:57

updater   ~78887

I would love to see this as a core feature for Limesurvey since this is very helpful for some more special surveys. E.g. some customer want to adjust the registration screen to have "Access key" or "Code" instead of "Token" or add further details about the registration process.

Would it be possible to handle translation adjustments not only on global level but also have survey specific adjustments? E.g. globally I replace "Enter your token" with "Enter your code" but for survey A I can have "Enter the access key provided by your teacher"?

DenisChenu

DenisChenu

2023-12-06 11:26

developer   ~78888

Would it be possible to handle translation adjustments not only on global level but also have survey specific adjustments? E.g. globally I replace "Enter your token" with "Enter your code" but for survey A I can have "Enter the access key provided by your teacher"?

It's not included in this feature. It's a new feature.

BUT : you can do it easily via SurveyTheme here (and add needed translation in DB)

Mazi

Mazi

2023-12-06 11:39

updater   ~78889

I think we then need some details for "do it easily via SurveyTheme here (and add needed translation in DB)" at the manual as well because currently I have no idea how this should work.

DenisChenu

DenisChenu

2023-12-06 11:51

developer   ~78890

Last edited: 2023-12-06 11:52

  1. In survey theme {{ gT("Enter the access key provided by your teacher") }}
  2. In DB : source_message : id=1, message = Enter the access key provided by your teacher
  3. in DB : message : id=1,language=fr, translation=Entrez le code d'accés donné par votre professeur.

(Manual page can explain this)

Issue History

Date Modified Username Field Change
2023-11-27 09:26 Mazi New Issue
2023-11-27 09:27 Mazi Note Added: 78717
2023-11-27 09:27 Mazi Bug heat 0 => 2
2023-11-27 15:44 DenisChenu Note Added: 78738
2023-11-27 15:44 DenisChenu Bug heat 2 => 4
2023-11-27 15:45 DenisChenu Relationship added related to 14782
2023-11-27 15:46 DenisChenu Relationship added related to 17163
2023-12-06 10:53 DenisChenu Note Added: 78886
2023-12-06 10:57 Mazi Note Added: 78887
2023-12-06 11:26 DenisChenu Note Added: 78888
2023-12-06 11:39 Mazi Note Added: 78889
2023-12-06 11:51 DenisChenu Note Added: 78890
2023-12-06 11:52 DenisChenu Note Edited: 78890
2023-12-06 11:52 DenisChenu Note Edited: 78890
2023-12-14 13:12 ollehar Severity block => partial_block