aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-07-09 06:12:36 -0400
committerJohn Szakmeister <john@szakmeister.net>2014-07-17 07:16:53 -0400
commit1f3fb5ffea303c9ec337a702618568576b23f817 (patch)
tree05ed67124a4b9a9a552ecfe2cc7323602e1d2b25
parentc261b351ed40365a88d78f23c609a290ac0c8456 (diff)
downloadrneovim-1f3fb5ffea303c9ec337a702618568576b23f817.tar.gz
rneovim-1f3fb5ffea303c9ec337a702618568576b23f817.tar.bz2
rneovim-1f3fb5ffea303c9ec337a702618568576b23f817.zip
Customize the log file for the check targets based on the input file.
The idea being that it's better to segregate feedback, just in case someone is working on several translations. Now the check log will appear in `./build/src/nvim/po/check-${LANG}.log`.
-rw-r--r--src/nvim/po/check.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/po/check.vim b/src/nvim/po/check.vim
index e9d15adab5..1622741da6 100644
--- a/src/nvim/po/check.vim
+++ b/src/nvim/po/check.vim
@@ -6,7 +6,8 @@
if 1 " Only execute this if the eval feature is available.
-redir! > check.log
+let filename = "check-" . expand("%:t:r") . ".log"
+exe 'redir! > ' . filename
" Function to get a split line at the cursor.
" Used for both msgid and msgstr lines.