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

Language string comparison implementation #932

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DarkoMilosevic86
Copy link
Contributor

Description

Language string comparison is a Python script designed to facilitate the work of translators for the Applio program.
The script compares the JSON keys of the language used for translation with the language currently being worked on.
For example, if English was used to translate the Applio program into German, and changes are made to the JSON keys in the English language, those same changes need to be applied to the German language.
This script eliminates the need for manually searching for changes in the source language and adding them manually to the target language. Instead, the changes will be saved in a separate .json file, containing only the changes that need to be translated, which can then be copied into the target language.

Motivation and Context

This script eliminates the need for manually searching for changes in the source language and adding them manually to the target language. Instead, the changes will be saved in a separate .json file, containing only the changes that need to be translated, which can then be copied into the target language.

How has this been tested?

This has been tested on several languages and carefully and accurately identifies the JSON keys that differ.

Screenshots (if appropriate):

Types of changes

In an effort to simplify language translation, I also localized Applio to Serbian. Initially, I created this Python script for my own purposes, but then I came up with the idea to integrate it into Applio, specifically in the section where the code for language manipulation is located.

  • Bug fix (non-breaking change which fixes an issue)
  • [x ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.

1 participant