Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize pot header #6781

Closed
tisonkun opened this issue Oct 30, 2019 · 6 comments
Closed

Customize pot header #6781

tisonkun opened this issue Oct 30, 2019 · 6 comments

Comments

@tisonkun
Copy link

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2019, TubeMQ Team
# This file is distributed under the same license as the TubeMQ package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2019.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: TubeMQ \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-10-29 20:40+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.7.0\n"

I'd like to customize LICENSE header as well as no "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" and "Language-Team: LANGUAGE <LL@li.org>\n" and # FIRST AUTHOR <EMAIL@ADDRESS>, 2019.

Is there an option to do that instead of manually remove then from generated?

ref sphinx-doc/sphinx-intl#36

@tisonkun tisonkun added the type:enhancement enhance or introduce a new feature label Oct 30, 2019
@tk0miya
Copy link
Member

tk0miya commented Oct 30, 2019

At present, there are no options to customize the header.

+1 for your idea.

@tisonkun
Copy link
Author

Thanks for your attention @tk0miya . For me it doesn't matter that I have to do it myself but auto generation make gettext will overwrite my customized info[1] so that I have to do it every generation. The latter is quite a bit annoying though QAQ

[1] accurately, from my observation, the LICENSE header is not changed(however, possibly padding empty line above the LICENSE) but "authour" info(I think the whole fuzzy section) is overwritten.

@shimizukawa
Copy link
Member

No objections from me.

@tisonkun
Copy link
Author

tisonkun commented Nov 6, 2019

Seems we reaches a consensus here. I'm not sure how to implement the functionality. Do you have a plan?

@tk0miya
Copy link
Member

tk0miya commented Nov 7, 2019

I'll work for it soon. As a preparation, I just posted a PR #6802 now.

tk0miya added a commit to tk0miya/sphinx that referenced this issue Dec 14, 2019
…OT file

* gettext_last_translator
* gettext_language_team
tk0miya added a commit to tk0miya/sphinx that referenced this issue Dec 14, 2019
…OT file

* gettext_last_translator
* gettext_language_team
tk0miya added a commit to tk0miya/sphinx that referenced this issue Dec 15, 2019
…OT file

* gettext_last_translator
* gettext_language_team
tk0miya added a commit that referenced this issue Dec 15, 2019
Close #6781: gettext Add confvals to customize headers of POT file
@tk0miya
Copy link
Member

tk0miya commented Dec 15, 2019

In #6919, I added new config variables: gettext_last_translator and gettext_language_team.
I hope they help you.
Thank you for reporting.

@tk0miya tk0miya closed this as completed Dec 15, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants