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

Translations GetText - Renaming / Deleting files in editor auto updates them in POT Generation menu #9399

Open
AlixBarreaux opened this issue Mar 28, 2024 · 3 comments

Comments

@AlixBarreaux
Copy link

Describe the project you are working on

I'm trying to translate my games with GetText using the POT Generation menu in the Project Settings and I rename or delete some files in the editor's file system such as scenes and scripts during development.

Describe the problem or limitation you are having in your project

Renaming or deleting files in the editor's file system which were previously added to the POT Generation menu doesn't update them in this menu.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Renaming or deleting files in the editor's file system which were previously added to the POT Generation menu would update them in this menu.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

It'd probably work similarly to exported vars of type PackedScene in GDScript.

When files are renamed in the editor's file system, the path / reference would be updated in the POT Generation menu.

When files are deleted in the editor's file system, it would also be deleted from the POT Generation menu.

If this enhancement will not be used often, can it be worked around with a few lines of script?

I don't think so but I'm not sure.

Is there a reason why this should be core and not an add-on in the asset library?

This feature proposal is based on the Pot Generation core feature.
It's not a bug but it seems essential to me since renaming files during development is something most of us do a lot.
Since this improvement is not so usable in a real project it doesn't make much sense to make it an asset library IMO.

@AThousandShips

This comment was marked as outdated.

@KoBeWi
Copy link
Member

KoBeWi commented Mar 28, 2024

The proposal refers to the list of files here (which can contain scenes, scripts etc.):
image
We are already handing file changes for various settings and other lists, so this one should also auto-update.

@AThousandShips
Copy link
Member

That's valid then, that's a bug rather than a missing feature

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

No branches or pull requests

3 participants