-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Weblate UI need to edit PO header #3376
Description
Is your feature request related to a problem? Please describe.
Whenever I get the pull request in GitHub from Weblate, I need to check the PO header is right.
E.g. If the current PO file inlcludes:
# Japanese translation of ibus.
# Copyright (C) 2015-2019 Takao Fujiwara <[email protected]>
# This file is distributed under the same license as the ibus package.
#
# Translators:
# Takao Fujiwara <[email protected]>, 2012
Problem 1. Weblate deletes the null line:
# Japanese translation of ibus.
# Copyright (C) 2015-2019 Takao Fujiwara <[email protected]>
# This file is distributed under the same license as the ibus package.
# Translators:
# Takao Fujiwara <[email protected]>, 2012
I don't expect to delete the null line # so I revert the Weblate change forcibly.
Problem 2. Weblate keeps the copyright header "# Copyright (C) 2015-2019 Takao Fujiwara" but I expect the pull request changes the copyright header to "# Copyright (C) 2015-2020 Takao Fujiwara" with the current year so I modify the pull request forcibly.
I don't want to separate the commits of PO files. One commit could update translations and copyright header.
E.g. if the POT file includes:
# Source translation of ibus.
# Copyright (C) 2015-2019 Takao Fujiwara <[email protected]>
# This file is distributed under the same license as the ibus package.
#
When a Weblate user tries to add a language, Weblate copy the POT file to a PO file with the language and creates a pull request.
Problem 3. I don't want any pull requests if the PO does not include any translations and I'd consolidate the pull request of adding a PO file and the update translations.
So even if I receive some pull requests of some new languages, I ignore the pull requests if any translations are not added and I consolidate the two pull requests of adding a PO file and updating translations of the PO file to one pull request by language
.
Problem 4. Weblate copy the header of POT file but I update "# Source translation of ibus." to "# Japanese translation of ibus." in the pull request in case the copied PO file is ja.po and I also update "# Copyright (C) 2015-2019 Takao Fujiwara" to "# Copyright (C) 2015-2020 Takao Fujiwara" in the pull request. Of course I revert the null lines of "#" in the pull requests.
After I consolidate my modifications and pull requests from Weblate, I commit a patch by language.
And go to Weblate GUI "Manage" -> "Commit" and click "Reset" button and Weblate pull the consolidated changes of my changes and the original pull requests. One commit could include adding a PO, modifying the header and updating thet translation by language.
Describe the solution you'd like
If users could push a PO file with the updated PO header into Weblate or Weblate GUI provides the editor of PO headers and Weblate could merge the header modification and translation updates to one commit by language, it could resolve my problems.
Describe alternatives you've considered
I use the "Reset" button.
Additional context
Add any other context or screenshots about the feature request here.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.