ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bing Translator

by sys1yagi ST2

Bing Translator plugin for Sublime Text 2.

Details

  • 2013.02.12.05.55.01
  • github.​com
  • github.​com
  • 12 years ago
  • 4 days ago
  • 12 years ago

Installs

  • Total 486
  • Win 334
  • Mac 92
  • Linux 60
Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeBingTranslator

Bing Translator plugin for Sublime Text 2.

settings

Preference > Package Settings > SublimeBingTranslator > Settings - Default (or User)

{
    //Translator Language Codes
    //http://msdn.microsoft.com/en-us/library/hh456380.aspx
    "from" : "en",
    "to" : "ja"
}

edit to “from” or “to”

Below is a link to the language code.
http://msdn.microsoft.com/en-us/library/hh456380.aspx

translate selection

command+shift+m

Translate selection and display the results to a new file. (if already opened result view, adds the results.)

ex. settings: en -> it

Error: language “plain” is not supported
*translate*
------------------------
this is beutiful code!! 
- - - - - - - - - - - - 
Questo è il codice beutiful!! 
------------------------

translate selection(reverse)

command+shift+alt+m

Default Settings translate “From” -> “To”. this command translate “To” -> “From” .

ex. settings: en -> it

Error: language “plain” is not supported
*translate*
------------------------
Questo è il codice beutiful!!  
- - - - - - - - - - - - 
This is the code beutiful!!  
------------------------

If you use frequently…

Bing translator can translate characters has limited.
if you use frequently, recommend publishing API keys.

Windows Azure Marketplace -Registering your application-
https://datamarket.azure.com/developer/applications/register

after published API keys. edit “SublimeBingTranslator.py”

class BingTranslatorSettings:
     ~~ ~~ ~~
    client_id = (new client id)
    client_secret = (new client secret)
     ~~ ~~ ~~
     ...