sponsor Vim development Vim logo Vim Book Ad

trans.vim : Easier translation in vim

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

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

=========
Trans.vim
=========

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

    使得翻译在vim容易。
    vim内で翻訳が容易になります。
    rend la traduction dans vim facile.
    macht die Übersetzung in vim einfacher.
    ...

Usage
-----

``:Trans``
    Translate word.

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

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

``:TransTo``
    Translate word with input lang code.

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

``:TransPo``
    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
Installation
------------

Requirment:

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

Install:

    - 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: 18.97.14.85

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.
   
Vim at Github