View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17825 | Bug reports | Translation | public | 2022-01-07 11:23 | 2022-10-11 22:05 |
Reporter | samarta | Assigned To | gabrieljenik | ||
Priority | none | Severity | text | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.2.x | ||||
Summary | 17825: Strings “LimeSurvey internal database” not available for translation in GlotPress | ||||
Description | Hi, Attached are two images of the situation in German and Portuguese-PT. | ||||
Steps To Reproduce | Check the drop down “Authentication method” in the initial window
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | Version 5.2.8+220103 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Safari | ||||
Database type & version | mysql 7.4.21 | ||||
Server OS (if known) | centos | ||||
Webserver software & version (if known) | |||||
PHP Version | 7.4.21 | ||||
Hi, The issue remains in version 5.3.4+220309 |
|
@ollehar what do you think about the following. How about adding a parameter to the newLoginForm event? The new parameter would indicate the name of the authentication method. If it is left empty, it is taken from the same place as now. |
|
Hm, how would that solve the translation issue? |
|
Each auth plugin can set their own translation of their plugin name |
|
Yes, but it can only be translated if the text is wrapped in gT(), which I believe is the problem here? |
|
Each plugin would send the text already translated... not sure if talking about the same. |
|
Hm. Maybe we also need getName() in PluginBase, so that gT is applied. |
|
This is how the dropdown is formed. (see attachment) If we use a method, it will have to be a static method. I prefer the new parameter on the event as it is a bit cleaner as all the exchange in between the plugin and the core would be via event. What do you think? As for setting the new parameter, we will not be able to use That would be very usefull for avoiding workarounds like this (https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/plugins/ExportR/ExportR.php#L57) where one plugin can easily mess something set by another plugin. (not talking about security, but about overwriting by accident, for example) Thoughts? |
|
I already done like this before :) Alternative solution : Plugin event can get name for drop-down with another function ? Then : name of plugin can stay AuthCas for but shown as «Authentification with your CAS account» in this dropdow. Easy solution |
|
Hmmm, if there's a config.xml, it will read name from there instead. ExtensionConfig::getName(). Would it make sense to put gT() in there? But it should be $plugin->gT() so it would read from plugin translation files first. :d But yeah, maybe you're right, it should be a separate label, and plugin name should never really be translated anyway...? |
|
You can already translate name in own plugin : No need to add gT globally … just do it for needed part inside needed plugin. The question about $this->gT is already open somewhere … Same for SurveyTheme and QuestionTheme : and here : no way … |
|
Thoughts on this? |
|
No … since it extend a existing Class : for me it's clear it can replace public function of this class. I really prefer to use Vote : |
|
@samarta Not sure about your technical background, but maybe you can help on testing the PR? Thanks! |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33932 |
|
Fixed in Release 5.4.5+221010 |
|
Updated https://manual.limesurvey.org/Authentication_plugin_development#The_authentication_method_name |
|
LimeSurvey: master b4f9604c 2022-10-06 12:22 Committer: GitHub Details Diff |
Fixed issue 17825: Strings “LimeSurvey internal database” not available for translation in GlotPress (#2637) Co-authored-by: encuestabizdevgit <devgit@encuesta.biz> |
Affected Issues 17825 |
|
mod - application/core/plugins/Authdb/Authdb.php | Diff File | ||
mod - application/libraries/PluginManager/AuthPluginBase.php | Diff File | ||
mod - application/views/admin/authentication/login.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-07 11:23 | samarta | New Issue | |
2022-01-07 11:23 | samarta | File Added: ls_internaldatabase_PT.png | |
2022-01-07 11:23 | samarta | File Added: ls_internaldatabase_DE.png | |
2022-03-09 10:59 | samarta | Note Added: 68606 | |
2022-03-09 10:59 | samarta | Bug heat | 0 => 2 |
2022-08-04 21:10 | gabrieljenik | Assigned To | => gabrieljenik |
2022-08-04 21:10 | gabrieljenik | Status | new => confirmed |
2022-09-16 16:12 | gabrieljenik | Note Added: 71793 | |
2022-09-16 16:12 | gabrieljenik | Bug heat | 2 => 4 |
2022-09-16 16:14 | ollehar | Note Added: 71794 | |
2022-09-16 16:14 | ollehar | Bug heat | 4 => 6 |
2022-09-16 16:30 | gabrieljenik | Note Added: 71797 | |
2022-09-16 16:33 | ollehar | Note Added: 71798 | |
2022-09-16 16:35 | gabrieljenik | Note Added: 71799 | |
2022-09-16 16:39 | ollehar | Note Added: 71800 | |
2022-09-16 16:39 | ollehar | Note Edited: 71800 | |
2022-09-16 22:33 | gabrieljenik | Note Added: 71807 | |
2022-09-16 22:33 | gabrieljenik | File Added: image.png | |
2022-09-19 09:19 | DenisChenu | Note Added: 71810 | |
2022-09-19 09:19 | DenisChenu | Bug heat | 6 => 8 |
2022-09-19 09:22 | DenisChenu | Note Edited: 71810 | |
2022-09-19 09:22 | DenisChenu | Note Edited: 71810 | |
2022-09-19 11:22 | ollehar | Note Added: 71819 | |
2022-09-19 11:26 | ollehar | Note Edited: 71819 | |
2022-09-19 11:26 | DenisChenu | Note Added: 71820 | |
2022-09-19 14:17 | gabrieljenik | Note Added: 71825 | |
2022-09-19 14:46 | DenisChenu | Note Added: 71827 | |
2022-09-19 14:47 | DenisChenu | Note Edited: 71827 | |
2022-09-28 15:14 | gabrieljenik | Status | confirmed => ready for code review |
2022-09-28 15:14 | gabrieljenik | Note Added: 72002 | |
2022-09-28 15:16 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
2022-09-29 09:27 | DenisChenu | Assigned To | DenisChenu => |
2022-09-29 09:27 | DenisChenu | Status | ready for code review => ready for testing |
2022-09-30 18:43 | gabrieljenik | Note Added: 72038 | |
2022-09-30 18:50 | gabrieljenik | Assigned To | => ollehar |
2022-09-30 18:50 | gabrieljenik | Status | ready for testing => ready for merge |
2022-10-06 10:22 | gabrieljenik | Changeset attached | => LimeSurvey master b4f9604c |
2022-10-06 10:22 | gabrieljenik | Note Added: 72138 | |
2022-10-06 10:22 | gabrieljenik | Assigned To | ollehar => gabrieljenik |
2022-10-06 10:22 | gabrieljenik | Resolution | open => fixed |
2022-10-10 10:47 | LimeBot | Note Added: 72181 | |
2022-10-10 10:47 | LimeBot | Status | ready for merge => closed |
2022-10-10 10:47 | LimeBot | Bug heat | 8 => 10 |
2022-10-11 22:05 | gabrieljenik | Note Added: 72203 |