[Koha-bugs] [Bug 29588] Yesterday and tomorrow in datepicker don't translate
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Nov 29 21:21:07 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29588
--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
(In reply to Andrew Nugged from comment #1)
> > I tried updating the po files locally, but the strings didn't show up.
>
> It's JS runtime translations, so it goes from ln-LN-messages-js.po to
> locale_data.js, but it's not detected by the parser (or we should do some
> magic?)... Let's call for JD for help :), we bumped a lot before release.
Yes, but a git grep didn't bring the string up in any of the .po files.
The issue might be the file ending. This is an .inc, so it's not parsed as a
.js but like a .tt file. This is .js code, but the translation tool doesn't
know or expect it (is my guess)
> I did the update for .po manually and it worked (in ITEM EDIT page for
> example):
>
>
> *** fi-FI-messages-js.po.orig
> --- fi-FI-messages-js.po
> ***************
> *** 1305,1314 ****
> --- 1305,1323 ----
> msgid "Thursday"
> msgstr "Torstai"
>
> + #: koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc:92
> + msgid "Yesterday"
> + msgstr "Eilen"
> +
> + #: koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc:95
> #: koha-tmpl/intranet-tmpl/prog/js/calendar.js:111
> msgid "Today"
> msgstr "Tänään"
>
> + #: koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc:98
> + msgid "Tomorrow"
> + msgstr "Huomenna"
> +
> #: koha-tmpl/intranet-tmpl/prog/js/checkouts.js:291
> #: koha-tmpl/intranet-tmpl/prog/js/checkouts.js:658
> msgid "Today's checkouts"
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list