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

Wrong translate config (leads to crash in android talk app) #17

Closed
mahibi opened this issue Jun 14, 2023 · 1 comment
Closed

Wrong translate config (leads to crash in android talk app) #17

mahibi opened this issue Jun 14, 2023 · 1 comment

Comments

@mahibi
Copy link

mahibi commented Jun 14, 2023

I got a report from a user who has this stuff in the translate capabilities. Just a tiny excerpt:


                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "he",
                                    "toLabel": "עברית"
                                },
                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "fa",
                                    "toLabel": "فارسى"
                                },
                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "th",
                                    "toLabel": "ภาษาไทย - Thai"
                                },
                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "lo",
                                    "toLabel": "ຂີ້ຕົວະ"
                                },
                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "ka_GE",
                                    "toLabel": "ქართული"
                                },
                                {
                                    "from": "es_AR",
                                    "fromLabel": "Español (Argentina)",
                                    "to": "zh_TW",
                                    "toLabel": "正體中文(臺灣)"
                                },

So there are hundreds(?) of combinations that are not intended/supported.
This leads to a memory crash in the android talk app when opening conversations, see nextcloud/talk-android#3099

Anyone has an idea how this translate config became like it is?

@marcelklehr
Copy link
Member

Anyone has an idea how this translate config became like it is?

The only way this array is populated is when an app registers a translation provider and populates the available languages like this. This app only adds 4 languages and definitely not Thai.

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