gotext-update-templates

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL