aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar un1versal2015-11-28 00:52:37 +0000
committerGravatar un1versal2015-12-05 11:33:54 +0000
commit20d6d32b4856b33f29112cd20cf24f68297f83e7 (patch)
treeb10bbd3bfd2119edc03cb2f15eade2295e915a75 /src
parentClassEditorWindow: capitalization and typo fix (diff)
downloadKVIrc-20d6d32b4856b33f29112cd20cf24f68297f83e7.tar.gz
KVIrc-20d6d32b4856b33f29112cd20cf24f68297f83e7.tar.bz2
KVIrc-20d6d32b4856b33f29112cd20cf24f68297f83e7.zip
libkviconfig: typos, consistency and capitalization fixes
Diffstat (limited to 'src')
-rw-r--r--src/modules/config/libkviconfig.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/config/libkviconfig.cpp b/src/modules/config/libkviconfig.cpp
index 4a7adc86d..3724929cf 100644
--- a/src/modules/config/libkviconfig.cpp
+++ b/src/modules/config/libkviconfig.cpp
@@ -48,12 +48,12 @@ static int g_iNextConfigId = 0;
If the file already exists, its contents
are parsed and available for extracting by the [fnc]$config.read[/fnc]() function.[br]
<filename> may be an absolute path or a relative path: if a relative path is used,
- KVIrc will complete it with a local kvirc directory suitable for writing script config files.[br]
+ KVIrc will complete it with a local KVIrc directory suitable for writing script config files.[br]
If the config file doesn't exist, it is opened as empty config file.[br]
Flags can contain a combination of letters 'r' and 'w'.[br]
If only 'r' is specified, the config file is opened in "read-only" mode: no changes will be written to disk.[br]
If only 'w' is specified, the config file is opened in "write-only" mode: the contents of the file on disk
- are not readed.[br]
+ are not read.[br]
If <flags> are not specified then 'rw' is assumed.[br]
The function returns an identifier for the open config file. This identifier
is a mandatory parameter in all the other config.* functions and commands.[br]
@@ -264,11 +264,11 @@ static bool config_kvs_fnc_section(KviKvsModuleFunctionCall * c)
@title:
$config.readonly
@short:
- Checks wheter a config file is opened in readonly mode
+ Checks whether a config file is opened in read-only mode
@syntax:
$config.readonly(<id>)
@description:
- Returns 1 if the config file identified by <id> is opened in readonly mode,
+ Returns 1 if the config file identified by <id> is opened in read-only mode,
0 otherwise.[br]
<id> must be a valid config identifier returned by [fnc]$config.open[/fnc]()
If <id> does not identify an open config file, a warning is printed and 0 is returned.[br]
@@ -338,7 +338,7 @@ static bool config_kvs_fnc_filename(KviKvsModuleFunctionCall * c)
@title:
$config.hassection
@short:
- Checks wheter a section is present in a config file
+ Checks whether a section is present in a config file
@syntax:
$config.hassection(<id>,<section_name>)
@description:
@@ -587,7 +587,7 @@ static bool config_kvs_cmd_flush(KviKvsModuleCommandCall * c)
if(cfg)
{
if(cfg->readOnly())
- c->warning(__tr2qs("The config file with id '%Q' is read only"),&szId);
+ c->warning(__tr2qs("The config file with id '%Q' is read-only"),&szId);
else
if(!cfg->sync())
c->warning(__tr2qs("An error has occurred while trying to save the config file with id '%Q'"),&szId);