Exemplo n.º 1
0
 void clipboardMonitor1_ClipboardChanged(object sender, EventArgs e)
 {
     if (Clipboard.ContainsText())
     {
         string text = Clipboard.GetText();
         if (!Settings.app.clipboardJapanese || TextUtils.containsJapanese(text))
         {
             TranslationService.instance.update(TextHookContext.cleanText(Clipboard.GetText()));
         }
     }
 }
Exemplo n.º 2
0
 internal void translate(string text)
 {
     TranslationService.instance.update(TextHookContext.cleanText(text), false);
 }