babel icon indicating copy to clipboard operation
babel copied to clipboard

is it possible to set PROJECT, VERSION and other header information in the babel.cfg file

Open 12rambau opened this issue 2 years ago • 0 comments

Overview Description

When running the following command:

pybabel extract ...

It's generating the following header in my po files:

# Spanish translations for PROJECT.
# Copyright (C) 2023 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-04-14 09:38+0200\n"
"PO-Revision-Date: 2023-02-16 13:23-0500\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: es\n"
"Language-Team: es <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"

I would like to customize the header for my lib but I cannot ask the user to set up environmmental variable for this specific build. I checked the documentation and it's unclear to me if it's possible or not to add the parameter in the babel.cfg file.

Any guidance would be much appreciated.

12rambau avatar Apr 14 '23 07:04 12rambau