Skip to content

Commit de637e3

Browse files
committed
Remove version parameter from scan_translations function and its usage
1 parent 9f55723 commit de637e3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

guidata/utils/translations.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def get_default_language_code() -> str:
7272
def scan_translations(
7373
name: str,
7474
directory: typing.Union[str, os.PathLike],
75-
version: str | None = None,
7675
copyright_holder: str | None = None,
7776
languages: typing.List[str] | None = None,
7877
) -> None:
@@ -90,7 +89,6 @@ def scan_translations(
9089
Args:
9190
name: The name of the project, used for directory and domain naming.
9291
directory: The root directory of the project.
93-
version: The version of the project.
9492
copyright_holder: The name of the copyright holder for the project.
9593
languages: A list of language codes (e.g., ['fr', 'it'])
9694
for which translation files should be generated or updated.
@@ -99,8 +97,6 @@ def scan_translations(
9997
FileNotFoundError: The Babel configuration file does not exist.
10098
RuntimeError: Extraction or translation file generation failed.
10199
"""
102-
if version is None:
103-
version = ""
104100
if copyright_holder is None:
105101
copyright_holder = ""
106102
if languages is None:
@@ -152,8 +148,6 @@ def scan_translations(
152148
#""",
153149
"--project",
154150
name,
155-
"--version",
156-
version,
157151
"--copyright-holder",
158152
copyright_holder,
159153
],
@@ -319,9 +313,8 @@ def main():
319313
scan_translations(
320314
args.name,
321315
args.directory,
322-
args.version,
323316
args.copyright_holder,
324-
languages=args.languages,
317+
args.languages,
325318
)
326319
else:
327320
parser.print_help()

0 commit comments

Comments
 (0)