[Koha-bugs] [Bug 34834] Add translation context for "Order"
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Sep 20 17:41:31 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34834
Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |Needs Signoff
--- Comment #2 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
I tried using the _p() and __p() syntax in parcel.tt and I can't get it to
work.
I change the line to either
result += '<li><a href="/cgi-bin/koha/acqui/showorder.pl?ordernumber=' +
encodeURIComponent(row.order_id) + '" class="previewData">' +
_p("noun","Order") + '</a></li>';
or
result += '<li><a href="/cgi-bin/koha/acqui/showorder.pl?ordernumber=' +
encodeURIComponent(row.order_id) + '" class="previewData">' +
__p("noun","Order") + '</a></li>';
and run gulp po:update --lang fr-CA
The word is not in either messages.po or messages-js.po
What am I doing wrong?
In the mean time, I changed the file for Owen's solution of putting the text
between the opening and closing tags like <a>text</a> rather than inside the
opening tag. This works well, the page loads, the word is in the po files and
the translation is applied.
The one in parcel.tt is the most annoying one of the three tbh, so I'd really
like it to be fixed.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list