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 is not removed from Arbify #52

Open
Holofox opened this issue Aug 25, 2020 · 2 comments
Open

Language is not removed from Arbify #52

Holofox opened this issue Aug 25, 2020 · 2 comments

Comments

@Holofox
Copy link

Holofox commented Aug 25, 2020

Actual result: If you remove the language from the project and add it again, the old translation strings will be loaded. The language that has been removed is also loaded as a file via the API, although it shouldn't.

Expected result: If you delete a language from the project, then it should be deleted, and when you add it again, a new file with translations should be created, including through the API.

@stale stale bot added the wontfix This will not be worked on label Sep 24, 2020
@Albert221 Albert221 removed the wontfix This will not be worked on label Sep 24, 2020
@stale stale bot added the wontfix This will not be worked on label Oct 24, 2020
@Arbify Arbify deleted a comment from stale bot Oct 24, 2020
@Arbify Arbify deleted a comment from stale bot Oct 24, 2020
@Albert221 Albert221 removed the wontfix This will not be worked on label Oct 24, 2020
@Holofox
Copy link
Author

Holofox commented Nov 17, 2020

@Albert221, any news? This problem spoils the experience of comfortable using the Arbify console, making it impossible to completely remove the language. :(

@Albert221
Copy link
Member

Albert221 commented Nov 17, 2020

I'm sorry, I'm not going to address this issue in the near future (no time for the project :/). However, I can provide you with an SQL statement that you can run to do this.

DELETE FROM message_values mv
    INNER JOIN messages m
        ON m.id = mv.message_id
    INNER JOIN languages l
        ON l.id = mv.language_id
    WHERE l.code = 'es'
        AND m.project_id = 10

Where es is your language code and 10 is your project id. Please run SELECT * instead of DELETE before running the delete statement to make sure you are deleting exactly what you want.

If you're running Arbify in Docker, here's how you can enter the MySQL client console:

$ docker-compose exec db mysql -u root -p arbify

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

2 participants