-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: restore PO-Revision-Date but with fixed value
External packages are forcing validation on PO-Revision-Date. We need to restore the metadata to .po file. But we set a fixed value (1970-01-01 00:00:00.000000) to avoid having a lot of false (git diff) lines
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
from . import config | ||
|
||
__version__ = '1.2.0' | ||
__version__ = '1.3.0' | ||
|
||
|
||
class Runner: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,9 +316,9 @@ def fix_metadata(pofile): | |
'Last-Translator': '', | ||
'Language-Team': 'openedx-translation <[email protected]>', | ||
'Plural-Forms': 'nplurals=2; plural=(n != 1);', | ||
'PO-Revision-Date': '1970-01-01 00:00:00.000000', | ||
} | ||
pofile.metadata.pop('POT-Creation-Date', None) | ||
pofile.metadata.pop('PO-Revision-Date', None) | ||
pofile.metadata.update(fixes) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters