Mercurial > vim
view src/po/tojavascript.vim @ 27708:bb1a3e598a86 v8.2.4380
patch 8.2.4380: small differences between Chinese translation files
Commit: https://github.com/vim/vim/commit/774e55702f236b0f16ef4a255a290dc87cfca67b
Author: Ada <me@yuhaowen.com>
Date: Mon Feb 14 15:04:55 2022 +0000
patch 8.2.4380: small differences between Chinese translation files
Problem: Small differences between Chinese translation files.
Solution: Add rule for converting UTF-8 to gb2312. (closes https://github.com/vim/vim/issues/9773)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Feb 2022 16:15:03 +0100 |
parents | 52e970719f4b |
children | 7296f4ef3ead |
line wrap: on
line source
" Invoked with the name "vim.pot" and a list of Vim script names. " Converts them to a .js file, stripping comments, so that xgettext works. " Javascript is used because, like Vim, it accepts both single and double " quoted strings. set shortmess+=A for name in argv()[1:] exe 'edit ' .. fnameescape(name) " Strip comments g/^\s*"/s/.*// " Write as .js file, xgettext recognizes them exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js" endfor quit