Skip to content

enh(OCP\Translation): Add ITranslationProviderWithId - #42649

Merged
juliusknorr merged 7 commits into
masterfrom
enh/machine-translation-provider-with-id
Jan 11, 2024
Merged

enh(OCP\Translation): Add ITranslationProviderWithId#42649
juliusknorr merged 7 commits into
masterfrom
enh/machine-translation-provider-with-id

Conversation

@marcelklehr

Copy link
Copy Markdown
Member

Summary

In order to allow External Apps to register machine translation providers, we need to allow declaring a getId() method which is used instead of the class name, as app_api will use an anonymous class to register these and all providers would have the same class name.

Checklist

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
marcelklehrforce-pushed the enh/machine-translation-provider-with-id branch from 296cb5d to c148f84CompareJanuary 10, 2024 10:16
@marcelklehr

Copy link
Copy Markdown
MemberAuthor

Drone failure seems unrelated

…tionProvider
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr

Copy link
Copy Markdown
MemberAuthor

Added ITranslationProviderWithUserId

Comment threadlib/private/Translation/TranslationManager.php
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
marcelklehrforce-pushed the enh/machine-translation-provider-with-id branch from e9b4df6 to 1db8888CompareJanuary 10, 2024 15:00
Comment threadlib/private/Translation/TranslationManager.php
Comment threadlib/private/Translation/TranslationManager.php Outdated
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@bigcat88

Copy link
Copy Markdown
Member

Can someone use super power to force merge this?

@juliusknorr
juliusknorr merged commit 2df2660 into masterJan 11, 2024
@juliusknorr
juliusknorr deleted the enh/machine-translation-provider-with-id branch January 11, 2024 20:50
@bigcat88

Copy link
Copy Markdown
Member

Thank you, Julius.

Sign up for freeto 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.

5 participants

@marcelklehr@bigcat88@nickvergessen@andrey18106@juliusknorr