这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@DenisC96
Copy link
Contributor

@DenisC96 DenisC96 commented Oct 15, 2025

This is to fix #951.
The problem was in dhtmlx_languages() in translate.py, that result set was not working properly to resolve the duplication.
I've changed the result set to a dictionary with code as the key, and use setdefult() to neglect the duplication. Then change it back to a list for return.

There's no duplication after the fix.
Screenshot 2025-10-15 at 15 58 14

@DenisC96
Copy link
Contributor Author

Test cases have been modified to check for language name in native language (e.g. Português).
A new test was also added to check for repeated language name.

@niccokunzmann niccokunzmann merged commit 69af913 into niccokunzmann:master Oct 16, 2025
11 checks passed
@niccokunzmann
Copy link
Owner

Nice, thank you! That is clean!

Would you like to add this change to the changelog with your name?

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.

Remove double entries in language dropdown menu

2 participants