[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - scripts/unocommands.py

Jan Holesovsky kendy at collabora.com
Fri Dec 8 09:33:10 UTC 2017


 scripts/unocommands.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 293c5d45083823ae1c1f4e0519928c0b5d23dced
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Dec 7 10:14:58 2017 +0100

    l10n: Don't extract uno: when name: is provided for that entry.
    
    Change-Id: I85619915cf66a71c7ab982c2949390bd82df9abb
    Reviewed-on: https://gerrit.libreoffice.org/46013
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/scripts/unocommands.py b/scripts/unocommands.py
index 6e1b0246..55d0e289 100755
--- a/scripts/unocommands.py
+++ b/scripts/unocommands.py
@@ -67,7 +67,7 @@ def extractCommands(path):
     # extract from the menu specifications
     f = open(path + '/loleaflet/src/control/Control.Menubar.js', 'r')
     for line in f:
-        if line.find("uno:") >= 0:
+        if line.find("uno:") >= 0 and line.find("name:") < 0:
             commands += commandFromMenuLine(line)
 
     # may the list unique


More information about the Libreoffice-commits mailing list