https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43972

--- Comment #3 from Jonathan Druart <[email protected]> ---
(In reply to Caroline Cyr La Rose from comment #2)
> I tried something. However I came across some hurdles
> 
> - The code in the suggestions.tt file was in a JS block and the usual
> _p('context', 'term') didn't work. ChatGPT suggested I change the string to
> a tt string to use tp('context', 'term'). I don't know if that is the right
> way to do it

JS functions are only available in .js files. From .tt and for JS code you can
only use `__()`.
If you need the other forms you need to use the TT functions.
Note that you should not combine `escape_str()` and `| html`.
There are also extra parenthesis around the string.

node += '<br /><i class="fa fa-archive"></i> %s'.format("[% tp('Archived
suggestion', 'Archived') | html %]");

> - The Archived term in debit types and credit types is a hidden table column
> header that never shows up in the interface. I wonder if it really needs to
> be contextualized or even translated at all.

If it is never displayed I agree that adding context there adds nothing.

> Do I need to declare my usage of AI if I only asked questions to the chat? I
> didn't find how to add the line.

You can simply add a disclaimer in the commit message.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to