Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-03 07:27:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-03 07:48:44 +0300
commitb66aa0b0a6b123e833d4038a77a5d3f04c37a9a0 (patch)
treee47a898dbae9c74287152e57fa021ecfdff2c53d /release/scripts/modules/bl_i18n_utils
parentdbe1b07e058db33a9e806d8e9808463d563d4aa5 (diff)
Cleanup: pep8
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils')
-rwxr-xr-xrelease/scripts/modules/bl_i18n_utils/merge_po.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/merge_po.py b/release/scripts/modules/bl_i18n_utils/merge_po.py
index ecb26123999..7e3c8a42b17 100755
--- a/release/scripts/modules/bl_i18n_utils/merge_po.py
+++ b/release/scripts/modules/bl_i18n_utils/merge_po.py
@@ -43,14 +43,17 @@ else:
# XXX This is a quick hack to make it work with new I18n... objects! To be reworked!
def main():
import argparse
- parser = argparse.ArgumentParser(description=
- "Merge one or more .po files into the first dest one.\n"
- "If a msgkey (msgctxt, msgid) is present in more than one merged po, the one in the first file "
- "wins, unless it’s marked as fuzzy and one later is not.\n"
- "The fuzzy flag is removed if necessary.\n"
- "All other comments are never modified.\n"
- "Commented messages in dst will always remain commented, and commented messages are never merged "
- "from sources.")
+ parser = argparse.ArgumentParser(
+ description=(
+ "Merge one or more .po files into the first dest one.\n"
+ "If a msgkey (msgctxt, msgid) is present in more than one merged po, the one in the first file "
+ "wins, unless it’s marked as fuzzy and one later is not.\n"
+ "The fuzzy flag is removed if necessary.\n"
+ "All other comments are never modified.\n"
+ "Commented messages in dst will always remain commented, and commented messages are never merged "
+ "from sources."
+ ),
+ )
parser.add_argument('-s', '--stats', action="store_true", help="Show statistics info.")
parser.add_argument('-r', '--replace', action="store_true",
help="Replace existing messages of same \"level\" already in dest po.")