Bugzilla – Attachment 194563 Details for
Bug 41769
", by" in suggestions table in the staff interface is not translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41769: (follow-up) Make ', by' string translatable in suggestions
Bug-41769-follow-up-Make--by-string-translatable-i.patch (text/plain), 2.59 KB, created by
Ayoub Glizi-Vicioso
on 2026-03-05 22:14:53 UTC
(
hide
)
Description:
Bug 41769: (follow-up) Make ', by' string translatable in suggestions
Filename:
MIME Type:
Creator:
Ayoub Glizi-Vicioso
Created:
2026-03-05 22:14:53 UTC
Size:
2.59 KB
patch
obsolete
>From e95f02d582e81c5da322cdc3018934975d4b39d7 Mon Sep 17 00:00:00 2001 >From: Ayoub Glizi-Vicioso <ayoub.glizi-vicioso@inLibro.com> >Date: Mon, 2 Mar 2026 16:54:09 -0500 >Subject: [PATCH] Bug 41769: (follow-up) Make ', by' string translatable in > suggestions > >To test: > >1. Add another language to Koha > >./misc/translator/translate install fr-CA > >2. Enable the new language in StaffInterfaceLanguages > 2.1. Go to Administration > System preferences > 2.2. Search for StaffInterfaceLanguages > 2.3. Check the new language > 2.4. Click Save all I18N/L10N preferences > >3. Create a new purchase suggestion > 3.1. Go to More > Suggestions > 3.2. Click New purchase suggestion > 3.3. Fill out the title AND the author at least > 3.4. Click Submit your suggestion > >4. View the suggestion in the table > --> It says title, by author > >5. Switch language > --> The ", by" is still in English > >6. Apply patch. > >7. run those command: > --> ./misc/translator/translate update fr-CA > --> ./misc/translator/translate install fr-CA > >8. Reload page. > >9. Notice that ", by" is now translated. > --> in this instance, you will see ", par" >--- > .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index ad53e2dea8..47bdf45599 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -1370,7 +1370,9 @@ > orderable: true, > render: function (data, type, row, meta) { > let node = '<a href="suggestion.pl?suggestionid=%s&op=show" title="%s">%s'.format(row.suggestion_id, _("suggestion"), row.title); >- if(row.author) node += ', by %s'.format(row.author); >+ if(row.author) { >+ node += ", %s %s".format(_("by"),row.author.escapeHtml()); >+ } > node += '</a><br />'; > if(row.copyright_date) node += ' © <span class="suggestion_copyrightdate">%s</span>'.format(row.copyright_date); > if(row.volume_desc) node += '; <span class="suggestion_volume">%s:<em>%s</em></span>'.format(_("Volume"), row.volume_desc); >-- >2.53.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41769
:
192541
|
192545
|
192546
|
192579
|
194366
|
194367
|
194368
|
194562
|
194563
|
194611
|
194623