Skip to content

Add Yandex translator support #151

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

Merged
merged 3 commits into from
Dec 16, 2017
Merged

Conversation

bocharsky-bw
Copy link
Member

@bocharsky-bw bocharsky-bw commented Dec 13, 2017

I see Translator already supports Yandex: php-translation/translator#7

@Nyholm Nyholm self-requested a review December 13, 2017 16:59
@@ -182,7 +182,7 @@ private function addAutoTranslateNode(ArrayNodeDefinition $root)
->arrayNode('fallback_translation')
->canBeEnabled()
->children()
->enumNode('service')->values(['google', 'bing'])->defaultValue('google')->end()
->enumNode('service')->values(['google', 'yandex', 'bing'])->defaultValue('google')->end()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we do not have bind support if I'm not wrong, so maybe remove it from this list for now until php-translation/translator#1 will be implemented?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. I just wanted have more than one value when I first write this enum (maybe it was a requirement?).

Anyhow. We should remove bing and use yandex and google only.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@@ -182,7 +182,7 @@ private function addAutoTranslateNode(ArrayNodeDefinition $root)
->arrayNode('fallback_translation')
->canBeEnabled()
->children()
->enumNode('service')->values(['google', 'bing'])->defaultValue('google')->end()
->enumNode('service')->values(['google', 'yandex', 'bing'])->defaultValue('google')->end()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. I just wanted have more than one value when I first write this enum (maybe it was a requirement?).

Anyhow. We should remove bing and use yandex and google only.

@Nyholm
Copy link
Member

Nyholm commented Dec 16, 2017

You have done a great job on this org!

Really appreciated!

@Nyholm Nyholm merged commit fd51033 into php-translation:master Dec 16, 2017
@bocharsky-bw bocharsky-bw deleted the patch-5 branch December 16, 2017 13:02
@bocharsky-bw
Copy link
Member Author

Glad to help ;)

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.

2 participants