sponsor Vim development Vim logo Vim Book Ad

trans.vim : Easier translation in vim

 script karma  Rating 1/1, Downloaded by 512    Comments, bugs, improvements  Vim wiki

created by
Rykka f
script type
:Title: trans.vim
:Author: Rykka
:Version: 1.0
:Github: https://github.com/Rykka/trans.vim
:Update: 2013-01-10


**Trans.vim** makes translation in vim easier::

    rend la traduction dans vim facile.
    macht die ‹bersetzung in vim einfacher.


    Translate word.

    ``:Trans hello`` will echo ``你好`` and set register ``@"`` to 你好

    ``<leader>tt`` will translate word under cursor or current visual selection.

    Translate word with input lang code.

    ``<leader>to`` will translate to lang code with word under cursor or current visual selection.

    Translate po file

    When in a po buffer, ``:TransPo`` will fill all empty msgstr with translated msgid.

    if the msg is::

        msgid "show all"
        msgstr ""

    it will be translate to::

        msgid "show all"
        msgstr "全部显示"

install details


    - Vim compiled with python. (or webapi.vim_)


    - Vundle_:

      In your Vimrc::
       Bundle 'Rykka/trans.vim'
       " for no python version
       " Bundle 'mattn/webapi-vim'
      Then use ``:BundleInstall`` to install.


rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
trans.vim-1.0.1.zip 1.0.1 2013-01-11 7.0 Rykka f - py: fix missing vcmd/veval
trans.vim-1.0.zip 1.0 2013-01-09 7.0 Rykka f - Add 'Bing' oauth
- Add 'Youdao' and 'Baidu'
- Add ':TransTo'
trans.vim-0.92.zip 0.92 2012-12-21 7.0 Rykka f fix multiline translation
trans.vim-0.91.zip 0.91 2012-12-20 7.0 Rykka f fix the mapping
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo