From de0ab29121ffa5939abba884af0ec18dc899ffda Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 5 Dec 2010 18:01:41 +0000 Subject: a lot of typo and documentarion fixes by OmegaPhil git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5175 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/addon/libkviaddon.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/modules/addon') diff --git a/src/modules/addon/libkviaddon.cpp b/src/modules/addon/libkviaddon.cpp index e3a50677d..394105733 100644 --- a/src/modules/addon/libkviaddon.cpp +++ b/src/modules/addon/libkviaddon.cpp @@ -603,8 +603,8 @@ static bool addon_kvs_cmd_register(KviKvsModuleCallbackCommandCall * c) @switches: !sw: -q | --quiet Makes the command run quietly - !sw: -s | --skip-inexisting - Skip inexisting entries in the [files] list + !sw: -s | --skip-inexistant + Skip inexistant entries in the [files] list @description: Installs the [files] for the addon identified by the specified . The files will be automatically removed when the addon is uninstalled. @@ -638,7 +638,8 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c) KVSM_PARAMETERS_END(c) bool bQuiet = c->switches()->find('q',"quiet"); - bool bSkipInexisting = c->switches()->find('i',"skip-inexisting"); + // we had a typo here, support the old switch name for backward scripts compatibility + bool bSkipInexistant = c->switches()->find('i',"skip-inexistant") || c->switches()->find('i',"skip-inexisting"); KviKvsScriptAddon * a = KviKvsScriptAddonManager::instance()->findAddon(szName); if(!a) @@ -685,10 +686,10 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c) QDir dir(szPath); if(!dir.exists()) { - if(!bSkipInexisting) + if(!bSkipInexistant) return c->error(__tr2qs_ctx("The directory '%1' doesn't exist","addon").arg(szPath)); if(!bQuiet) - c->warning(__tr2qs_ctx("Skipping inexisting entry '%1'","addon").arg(szEntry)); + c->warning(__tr2qs_ctx("Skipping inexistant entry '%1'","addon").arg(szEntry)); continue; } @@ -708,16 +709,16 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c) QFileInfo inf(szEntry); if(!inf.exists()) { - if(!bSkipInexisting) + if(!bSkipInexistant) return c->error(__tr2qs_ctx("The file '%1' doesn't exist","addon").arg(szEntry)); if(!bQuiet) - c->warning(__tr2qs_ctx("Skipping inexisting entry '%1'","addon").arg(szEntry)); + c->warning(__tr2qs_ctx("Skipping inexistant entry '%1'","addon").arg(szEntry)); continue; } if(!inf.isFile()) { - if(!bSkipInexisting) + if(!bSkipInexistant) return c->error(__tr2qs_ctx("The entry '%1' is not a file","addon").arg(szEntry)); if(!bQuiet) c->warning(__tr2qs_ctx("Skipping invalid entry '%1'","addon").arg(szEntry)); -- cgit v1.3.1-10-gc9f91