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

Added french and korean with python translation script #8483

Closed
wants to merge 0 commits into from

Conversation

DGabri
Copy link
Contributor

@DGabri DGabri commented Jun 28, 2024

Please sign (check) the below before submitting the Pull Request:

Link to the related issue:

Describe changes:

Added french and korean with python translation script

done = 0

# pattern to retrieve i18n string content
pattern = r'\s*\[\s*\"[^\"]+\"\s*\]\s*=\s*\"((?:\\.|[^\"])*)\"\s*,'

Check failure

Code scanning / CodeQL

Inefficient regular expression

This part of the regular expression may cause exponential backtracking on strings starting with '\["!"\]="' and containing many repetitions of '\\!'.

if (DEBUGGING):
# get file length in number of lines
with open(input_file, 'r', encoding='utf-8') as infile:

Check warning

Code scanning / CodeQL

Unreachable code

This statement is unreachable.
total_lines = len(input_lines)

if (DEBUGGING):
print(f"Total lines to process: {total_lines}")

Check warning

Code scanning / CodeQL

Unreachable code

This statement is unreachable.

done += 1
if (DEBUGGING):
print(f"Translated: [{done}/{total_lines}]")

Check warning

Code scanning / CodeQL

Unreachable code

This statement is unreachable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants