Closed mgeisler closed 11 months ago
@sakex, I'm thinking we should surface this field in the template engine. That way we can write something like
Published on
{{ now() }}
, translation current as of{{ pot-creation-date }}
.
in the footer of each page.
Sure, this can be done by adding the variable to the book object at the gettext preprocessor step, then we'll retrieve it from a custom template
Sure, this can be done by adding the variable to the book object at the gettext preprocessor step
Oh, interesting! Can a preprocessor modify the metadata passed onto later preprocessors and renderers? I was thinking it should become a context variable for the template engine.
Yes actually, we could just pass time.now from the renderer On Sep 25, 2023 08:56, Martin Geisler @.***> wrote:
Sure, this can be done by adding the variable to the book object at the gettext preprocessor step
Oh, interesting! Can a preprocessor modify the metadata passed onto later preprocessors and renderers? I was thinking it should become a context variable for the template engine.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
See https://github.com/google/comprehensive-rust/pull/1243 for the other half of this: updating the the data in POT-Creation-Date when publishing a book.
The data is added to PO files automatically by
msgmerge
. This will in turn be used when publishing a translation: it allows us to know which sources goes into a given PO file.Part of #16.