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

Unity Localization metadata track line position in source. #302

Open
unknowndevice opened this issue Dec 20, 2024 · 0 comments
Open

Unity Localization metadata track line position in source. #302

unknowndevice opened this issue Dec 20, 2024 · 0 comments

Comments

@unknowndevice
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Unity Localization doesn't retrain the line position of a line when it inserts it into a the localization table. So add Line Tags, update your Table, then later break a line in a node into two lines. Then the second line will be at the end of the sheet.

This creates a problem where now the the lines are out of order in the spreadsheet. That makes it harder for people to translate the lines as now they can't read them in order and instead have to constantly look in the source yarn files for where the loose lines are from.

Describe the solution you'd like

Store metadata about the line position in it's source file. Something like $"line:{yarn_file_index}{yarn_line_position}". Then have a the CVS export it as a column which can be sorted. You could also maybe make a custom Columns type. https://docs.unity3d.com/Packages/[email protected]/manual/Google-Sheets-Syncing-StringTableCollections.html#custom-columns

Describe alternatives you've considered

You can clear the Localization Table every time you know you've changed a Line Tag in the middle of a Node. It's cumbersome but it works!

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

No branches or pull requests

1 participant