View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
19283Bug reportsDocumentationpublic2024-11-19 18:14
ReporterMazi Assigned Totibor.pacalat  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
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 heat8
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)

DenisChenu

DenisChenu

2024-04-29 08:20

developer   ~80031

Waiting decision about

  1. Manual page creation
  2. Micro simple core plugin
tibor.pacalat

tibor.pacalat

2024-04-29 13:59

administrator   ~80037

Ok so decisions are:

  1. Manual page should be created
  2. There is no plan at the moment for a plugin
DenisChenu

DenisChenu

2024-04-29 14:46

developer   ~80040

Thank you :)

DenisChenu

DenisChenu

2024-05-16 18:12

developer   ~80123

https://manual.limesurvey.org/Custom_translation

I think we can add the link at https://manual.limesurvey.org/index.php?title=Not_categorized_and_advanced_features&action=edit and https://manual.limesurvey.org/LimeSurvey_Manual

DenisChenu

DenisChenu

2024-05-16 18:12

developer   ~80124

DenisChenu

DenisChenu

2024-05-22 16:16

developer   ~80148

Thank you !
https://manual.limesurvey.org/index.php?title=Not_categorized_and_advanced_features&diff=377451&oldid=141868

tibor.pacalat

tibor.pacalat

2024-05-22 16:23

administrator   ~80149

@DenisChenu I added the links as you suggested and made small grammar corrections on that page as well.

DenisChenu

DenisChenu

2024-05-23 09:26

developer   ~80154

Yes, it's my Thank you ;)

Do you know why we have «This page contains changes which are not marked for translation.» ?

tibor.pacalat

tibor.pacalat

2024-05-23 10:08

administrator   ~80155

No idea to be honest, maybe @c_schmitz knows more?

c_schmitz

c_schmitz

2024-05-23 10:50

administrator   ~80156

Text changes need top be approved before translation. It is done,. now-

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
2024-04-29 08:20 DenisChenu Assigned To => tibor.pacalat
2024-04-29 08:20 DenisChenu Status new => feedback
2024-04-29 08:20 DenisChenu Note Added: 80031
2024-04-29 13:59 tibor.pacalat Note Added: 80037
2024-04-29 13:59 tibor.pacalat Bug heat 4 => 6
2024-04-29 13:59 tibor.pacalat Assigned To tibor.pacalat => DenisChenu
2024-04-29 14:46 DenisChenu Note Added: 80040
2024-05-16 18:12 DenisChenu Assigned To DenisChenu => tibor.pacalat
2024-05-16 18:12 DenisChenu Status feedback => ready for code review
2024-05-16 18:12 DenisChenu Note Added: 80123
2024-05-16 18:12 DenisChenu Note Added: 80124
2024-05-16 18:12 DenisChenu File Added: Capture d’écran du 2024-05-16 18-11-21.png
2024-05-22 16:12 tibor.pacalat Status ready for code review => resolved
2024-05-22 16:12 tibor.pacalat Resolution open => fixed
2024-05-22 16:16 DenisChenu Note Added: 80148
2024-05-22 16:23 tibor.pacalat Note Added: 80149
2024-05-23 09:26 DenisChenu Note Added: 80154
2024-05-23 09:26 DenisChenu File Added: Capture d’écran du 2024-05-23 09-25-23.png
2024-05-23 10:08 tibor.pacalat Note Added: 80155
2024-05-23 10:50 c_schmitz Note Added: 80156
2024-05-23 10:50 c_schmitz Bug heat 6 => 8
2024-11-19 18:14 c_schmitz Status resolved => closed