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

The program does not translate the entire text. #10

Open
it19862 opened this issue Oct 15, 2018 · 0 comments
Open

The program does not translate the entire text. #10

it19862 opened this issue Oct 15, 2018 · 0 comments

Comments

@it19862
Copy link

it19862 commented Oct 15, 2018

I enter the text
This latest version of GoogleTranslator utilizes Google Translate's AJAX APIs to translate text and retrieves the translation by parsing the returned JSON content. Thanks to CPians @Airstriker82,
@member 9899010 and @bgsjust for pointing me to these APIs.
The latest version of the code also includes the ability to speak the translation from the demo app.
Because Google limits the speech to common words in a few languages, don't be surprised if the demo plays dumb when you try to speak your translated text!

The program translates text only.
This latest version of GoogleTranslator utilizes Google Translate's AJAX APIs to translate text and retrieves the translation by parsing the returned JSON content.
the rest does not translate

How to make proagramma translate the entire text?

using Wox.Plugin.GoogleTranslate;

namespace rsh
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            GoogleTranslatePlugin GgTransl = new GoogleTranslatePlugin();

            string input = textBox1.Text;
            string from = "en";
            string to = "ru";
            
            textBox2.Text = GgTransl.TranslateText(input, from, to);            
        }
    }
}

2018-10-15_10-59-43

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

1 participant