Document the reload feature

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-28 13:04:03 +02:00
parent 1cf173106a
commit 0d481aa00c
5 changed files with 52 additions and 0 deletions

View File

@ -92,6 +92,11 @@ file_filter = po/doc/priority-<lang>.po
source_file = po/doc/priority.pot
source_lang = en
[calcurse.doc-reload]
file_filter = po/doc/reload-<lang>.po
source_file = po/doc/reload.pot
source_lang = en
[calcurse.doc-repeat]
file_filter = po/doc/repeat-<lang>.po
source_file = po/doc/repeat.pot

View File

@ -36,6 +36,7 @@ nobase_dist_doc_DATA = \
other.txt \
pipe.txt \
priority.txt \
reload.txt \
repeat.txt \
save.txt \
tab.txt \

10
doc/reload.txt Normal file
View File

@ -0,0 +1,10 @@
Reload
======
Reload appointments and todo items.
When there are unsaved modifications, calcurse asks you whether you want to
discard the modifications, keep the local modifications (and cancel the reload
action) or merge the modifications with the content of the data files. The
merge operation launches an external merge tool (defaults to vimdiff(1), can be
changed by setting the 'MERGETOOL' environment variable).

34
po/doc/reload.pot Normal file
View File

@ -0,0 +1,34 @@
#. extracted from reload.txt
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-07-28 13:12+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 1.11.0\n"
#: reload.txt:1
msgid ""
"Reload\n"
"======"
msgstr ""
#: reload.txt:4
msgid "Reload appointments and todo items."
msgstr ""
#: reload.txt:6
msgid ""
"When there are unsaved modifications, calcurse asks you whether you want to\n"
"discard the modifications, keep the local modifications (and cancel the "
"reload\n"
"action) or merge the modifications with the content of the data files. The\n"
"merge operation launches an external merge tool (defaults to vimdiff(1), can "
"be\n"
"changed by setting the 'MERGETOOL' environment variable)."
msgstr ""

View File

@ -119,6 +119,8 @@ int display_help(const char *topic)
topic = "intro";
else if (!strcmp(topic, "generic-save"))
topic = "save";
else if (!strcmp(topic, "generic-reload"))
topic = "reload";
else if (!strcmp(topic, "generic-copy"))
topic = "copy_paste";
else if (!strcmp(topic, "generic-paste"))