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

New Feature: Ink Translator Manager #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GuiRafaCL
Copy link

Ink Translator Manager

This simple and single script adds the Ink Translator Manager window, designed to assist users in translating their Ink files efficiently.

image
This is the blank view of the window.

How to setup:

Open this window from the Window Tab in Unity Editor. It should be right below of the Ink Player.
image

Enter the root directory in the designated field and click Force File Checking. The script will scan for any missing files and lines in the translation directories.

image

image
This is an example of an multi-language hierarchy.

Generate Missing Files

If any files are missing in a language directory, you can generate a copy of the original file. Use this window to compare and translate files side-by-side directly within Unity.
image
In this scenario, the Dialogue.ink file is missing in both en-us and es-es directories, but it exists in pt-br.

image
This is the in-engine Ink Editor that gives the user the possibility of comparing and editing the files side-to-side after copying them.

File Comparison

The script detects if one version of a file has more lines than its counterpart, these files will appear in the Comparator tab of the window. You can compare and edit them side-by-side, making it easy to adjust and synchronize translations.

image
In this scenario, the Dialogue.ink file has 2 lines, in comparasion with the other 2 versions that has only one, which could be a problem in-game.

image
With this tool, you can see whats missing and sync the files perfectly side-by-side.

Manual File Selection

Alternatively, manually select two Ink files to edit, compare, and save changes as needed.

This simple and single script adds the Ink Translator Manager window, designed to assist users in translating their Ink files efficiently.

How it Works:
Set the Root Directory
Enter the root directory in the designated field and click Force File Check.
The script will scan for any missing files in the translation directories.

- Generate Missing Files
If any files are missing in a language directory, you can generate a copy of the original file.
Use this window to compare and translate files side-by-side directly within Unity.

- File Comparison
The script detects if one version of a file has more lines than its counterpart, these files will appear in the Comparator tab of the window.
You can compare and edit them side-by-side, making it easy to adjust and synchronize translations.

Manual File Selection
Alternatively, manually select two Ink files to edit, compare, and save changes as needed.
@GuiRafaCL GuiRafaCL changed the title Ink Translator Manager Contribution Ink Translator Manager Feature Jan 12, 2025
@GuiRafaCL GuiRafaCL changed the title Ink Translator Manager Feature Improvement: Ink Translator Manager Feature Jan 12, 2025
@GuiRafaCL GuiRafaCL changed the title Improvement: Ink Translator Manager Feature New Feature: Ink Translator Manager Jan 12, 2025
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