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

Caroline Cyr La Rose <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff

--- Comment #2 from Caroline Cyr La Rose <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to