From 564deafe7272e05280364b2cad5d33c4d56f341e Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 10 Jan 2015 20:32:07 +0300 Subject: [PATCH] Ticket #3287: bind poedit to Edit action for .po files. Thanks Marcel Pol for original patch. Signed-off-by: Andrew Borodin --- misc/ext.d/misc.sh.in | 3 +++ misc/mc.ext.in | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/misc/ext.d/misc.sh.in b/misc/ext.d/misc.sh.in index 739675d65..4ae3b9f9a 100644 --- a/misc/ext.d/misc.sh.in +++ b/misc/ext.d/misc.sh.in @@ -75,6 +75,9 @@ do_open_action() { (glade-2 "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) fi ;; + po) + (poedit "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) + ;; lyx) lyx "${MC_EXT_FILENAME}" ;; diff --git a/misc/mc.ext.in b/misc/mc.ext.in index d319cd617..43ef7ffc0 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -656,6 +656,10 @@ shell/i/.glade shell/.mo View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo +# po +shell/.po + Open=@EXTHELPERSDIR@/misc.sh open po + # lyx shell/i/.lyx Open=@EXTHELPERSDIR@/misc.sh open lyx