[Koha-bugs] [Bug 26392] Wrap all translatable strings in opac-main.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 15 00:04:50 CET 2020


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

--- Comment #39 from David Cook <dcook at prosentient.com.au> ---
(In reply to Katrin Fischer from comment #37)
> I really don't see the advantage of this. To me it adds an extra step with
> no visible win.

Here are some random examples from DSpace and Koha.

https://github.com/DSpace/DSpace/blob/dspace-6.3/dspace-jspui/src/main/webapp/tools/edit-community.jsp
https://github.com/Koha-Community/Koha/blob/master/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt

For DSpace, just do a Ctrl+F for "fmt:message".

Personally, I think that the DSpace template is cleaner (notwithstanding the
JSP block near the top but DSpace isn't perfect either). 

The template is easy to read. The tokens are logical. 

You can lookup keys in
https://github.com/DSpace/DSpace/blob/dspace-6.3/dspace-api/src/main/resources/Messages.properties. 

Admittedly DSpace is smaller than Koha, but the Java model used by DSpace is
used far and wide.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list