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

[Bug]: Do not try to translate from <-> to the same language #38087

Closed
5 of 9 tasks
Ivansss opened this issue May 4, 2023 · 0 comments · Fixed by #38097
Closed
5 of 9 tasks

[Bug]: Do not try to translate from <-> to the same language #38087

Ivansss opened this issue May 4, 2023 · 0 comments · Fixed by #38097
Assignees
Labels
1. to develop Accepted and waiting to be taken care of 27-feedback bug
Milestone

Comments

@Ivansss
Copy link
Member

Ivansss commented May 4, 2023

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

At the moment if a text is send to translate using the endpoint:
https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-translation-api.html#translate-a-string

If the same languages are used in "from" and "to"
or if "from" is not sent but the detected language is the same as "to"
Nextcloud server tries to translate the text from and to the same language.

Steps to reproduce

  1. Try to translate an English text and set "from" = "en" (or leave it empty for auto-detect) and set "to" = "en"

Expected behavior

The server should reply with a meaningful error or just return the same string that was sent

Installation method

None

Nextcloud Server version

master

Operating system

Other

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

shipped
talk
translate

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@Ivansss Ivansss added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels May 4, 2023
@nickvergessen nickvergessen added this to the Nextcloud 27 milestone May 4, 2023
@nickvergessen nickvergessen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 27-feedback bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants