diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-03 22:21:25 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 00:23:03 +0300 |
| commit | 2eae5db069dc171f74cd863487655f6a88e5384d (patch) | |
| tree | 2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/src/po/tojavascript.mnv | |
| parent | 473d922faed49241a5d29d9e37dc4819cd512006 (diff) | |
| download | Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.tar.gz Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.zip | |
NOISSUE rebrand vim to MNV's not Vim
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'uvim/src/po/tojavascript.mnv')
| -rw-r--r-- | uvim/src/po/tojavascript.mnv | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/uvim/src/po/tojavascript.mnv b/uvim/src/po/tojavascript.mnv new file mode 100644 index 0000000000..384ca744eb --- /dev/null +++ b/uvim/src/po/tojavascript.mnv @@ -0,0 +1,24 @@ +" Invoked with the name "mnv.pot" and a list of MNV script names. +" Converts them to a .js file, stripping comments, so that xgettext works. +" Javascript is used because, like MNV, it accepts both single and double +" quoted strings. + +set shortmess+=A + +let s:namenum = 0 +let s:fls = [] +for s:name in argv()[1:] + exe 'edit ' .. fnameescape(s:name) + + " Strip comments, also after :set commands. + g/^\s*"/s/.*// + g/^\s*set .*"/s/.*// + + " Write as .js file, xgettext recognizes them + let s:fl = fnamemodify(s:name, ":t:r") .. s:namenum .. ".js" + exe 'w! ' .. s:fl + call add(s:fls, s:fl) + let s:namenum += 1 +endfor +call writefile(s:fls, "mnv_to_js") +quit |
