Documentation ¶
Overview ¶
Command gotext-update-templates merge translations and generates a catalog.
Unlike gotext update, it also extracts messages for translation from HTML templates. For that purpose it accepts an additional flag "trfunc", which defaults to "Tr". It extracts strings from pipelines ".Tr" and "$.Tr" and recurses recursive nodes
Templates are read from the first non flag arg. If you use go generate, note that "the generator is run in the package's source directory".
Modified version for njudge, original source: https://github.com/dys2p/eco/blob/main/lang/gotext-update-templates/main.go
Click to show internal directories.
Click to hide internal directories.