view po/README @ 536:a59622c06936

Fix generating reports if no week given unix_week() cannot handle week being None but does so for year. It just assumes the current year in this case, although this only duplicates the initialisation of year with c_year in this context. week being None gives TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' load_entries() handles the case with no week given, thus call it anyhow. This fix makes it possible to invoke scripts/getan-report with a year given but no week and seeing the expected result (data for a whole year) instead of a traceback.
author Tom Gottfried <tom@intevation.de>
date Thu, 09 Jan 2020 11:32:34 +0100
parents e6f81aa329b1
children
line wrap: on
line source
Getan Message Translations
==============================

The message catalogs are managed with the following software:

 - pygettext (usually distributed with Python)

 - GNU gettext (msgmerge and msgfmt)


Common tasks:

 - Create/Update getan.pot-File when the sources were edited and
   messages have been added or changed and after a fresh checkout

     $ make pot

 - When the getan.pot has been changed, run

     $ make merge

   to merge the changes in the pot file with the messages already in the
   *.po files.

 - When the translations in the po files have been changed, run

     $ make mo

   to generate new .mo files under ../share/locale

 - The make mo command prints statistics about the translations.  To get
   a less verbose version use this:

     $ make stat
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)