# Language: Generic TeX typesetting engine
# Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
-# Latest Revision: 2026 Feb 03
+# Latest Revision: 2026 Feb 19
# Constants and helpers {{{
const SLASH = !exists("+shellslash") || &shellslash ? '/' : '\'
echohl None
enddef
-def EchoMsg(msg: string, label = 'Notice')
+def EchoMsg(msg: string, label = gettext('Notice'))
Echo(msg, 'ModeMsg', label)
enddef
-def EchoWarn(msg: string, label = 'Warning')
+def EchoWarn(msg: string, label = gettext('Warning'))
Echo(msg, 'WarningMsg', label)
enddef
-def EchoErr(msg: string, label = 'Error')
+def EchoErr(msg: string, label = gettext('Error'))
Echo(msg, 'ErrorMsg', label)
enddef
# }}}
def ProcessOutput(qfid: number, wd: string, efm: string, ch: channel, msg: string)
# Make sure the quickfix list still exists
if getqflist({'id': qfid}).id != qfid
- EchoErr("Quickfix list not found, stopping the job")
+ EchoErr(gettext("Quickfix list not found, stopping the job"))
job_stop(ch_getjob(ch))
return
endif
if exitStatus == 0
botright cwindow
- EchoMsg('Success!', label)
+ EchoMsg(gettext('Success!'), label)
elseif exitStatus < 0
- EchoWarn('Job terminated', label)
+ EchoWarn(gettext('Job terminated'), label)
else
botright copen
wincmd p
- EchoWarn('There are errors.', label)
+ EchoWarn(gettext('There are errors.'), label)
endif
enddef
# }}}
var qfid = NewQuickfixList(fp)
if qfid == -1
- EchoErr('Could not create quickfix list', label)
+ EchoErr(gettext('Could not create quickfix list'), label)
return false
endif
if !filereadable(fp)
- EchoErr($'File not readable: {fp}', label)
+ var msg = gettext('File not readable:')
+ EchoErr($'{msg} {fp}', label)
return false
endif
})
if job_status(jobid) ==# "fail"
- EchoErr("Failed to start job", label)
+ EchoErr(gettext("Failed to start job"), label)
return false
endif
AddJob(label, jobid)
- EchoMsg('Typesetting...', label)
+ EchoMsg(gettext('Typesetting...'), label)
return true
enddef
export def JobStatus(label: string)
- EchoMsg($'Jobs still running: {len(GetRunningJobs(label))}', label)
+ var msg = gettext('Jobs still running:')
+ EchoMsg($'{msg} {len(GetRunningJobs(label))}', label)
enddef
export def StopJobs(label: string)
job_stop(job)
endfor
- EchoMsg('Done.', label)
+ EchoMsg(gettext('Done.'), label)
enddef
# Typeset the specified buffer
name: string,
Cmd: func(string): list<string>,
env = {},
- label = 'Typeset'
+ label = gettext('Typeset')
): bool
var bufname = bufname(name)
if empty(bufname)
- EchoErr('Please save the buffer first.', label)
+ EchoErr(gettext('Please save the buffer first.'), label)
return false
endif
msgstr ""
"Project-Id-Version: Vim\n"
"Report-Msgid-Bugs-To: vim-dev@vim.org\n"
-"POT-Creation-Date: 2026-01-06 14:41+0000\n"
+"POT-Creation-Date: 2026-02-19 17:55+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "options for using tabpanel"
msgstr ""
+msgid "Notice"
+msgstr ""
+
+msgid "Quickfix list not found, stopping the job"
+msgstr ""
+
+msgid "Success!"
+msgstr ""
+
+msgid "Job terminated"
+msgstr ""
+
+msgid "There are errors."
+msgstr ""
+
+msgid "Could not create quickfix list"
+msgstr ""
+
+msgid "File not readable:"
+msgstr ""
+
+msgid "Failed to start job"
+msgstr ""
+
+msgid "Typesetting..."
+msgstr ""
+
+msgid "Jobs still running:"
+msgstr ""
+
+msgid "Done."
+msgstr ""
+
+msgid "Typeset"
+msgstr ""
+
+msgid "Please save the buffer first."
+msgstr ""
+
msgid "You discovered the command-line window! You can close it with \":q\"."
msgstr ""