Add checkbox to search only directory names

When the checkbox is checked, only directories are matched against
"Filename" field. Files are not matched and no file is searched for
content even if the field "Content" is not empty.

This is an example feature implemented for open source programming course
at Czech Technical University. It is intentionally based on older version,
so that students can learn how to use git to resolve merge conflicts or
update (rebase) their patches.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Document "Only directories" checkbox
Ticket #2974: broken opening of .war archives.

Widely used java web application .war archives are are .jar archives
which is essentially a zip archive with manifest file being the first
entry.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2974_broken_war_opening'

* 2974_broken_war_opening:
  Ticket #2974: broken opening of .war archives.
Ticket #2976: magic mode is broken in mcview.

The bug:
  If we open a file with F3 from panels, then mc uses "file extension"
  style open (e.g. archive.sh) and Format/Raw switching is O.K.

  If we open file in "Raw" mode, or use quick view, mc opens files
  without "file extension" helpers. Format/Raw switching is broken.

  In mcview_load() we check magic_mode and detect "compressed" files.
  If magic mode is on and file is "compressed" we free the current vpath
  and generate a new vpath with "decompress magic", but nothing else.
  So, the file name disappear and we see the raw content.
  After user press F8, mcview reloads the file. Now filename is the "new"
  magic filename. mcview_load() open the file with the decompress "helper"
  (using sfs). We see the uncompressed (parsed) content.
  After user press F8, nothing happend, because original file name is lost.

The solution:
  Remove the old vpath destruction.
  Open the file with "uncopress magic" if magic_mode is on and file is
  "compressed".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2976_broken_magic_mode'

* 2976_broken_magic_mode:
  Ticket #2976: magic mode is broken in mcview.
Ticket #2957: broken autocompletion in mcedit

...if system and file charsets are different.

Initial step: refactoring: do actual completion word substitution
outside of editcmd_dialog_completion_show().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2968: mcviewer: broken Raw/Parse and Format/UnformatRaw/Parse and Format/Unformat

...after CK_FileNext/CK_FilePrev.

Initial commit: refactoring of mcview_t typedef.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_complete_word_cmd): make correct charset conversion

...before insert autocompletion result.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add tests for coverage the bug.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add test_autocomplete_single() test

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
(edit_complete_word_cmd): don't get bytes directly from editor buffer.

(edit_get_match_keyword_cmd): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(editcmd_dialog_completion_show): adjust dialog position.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2957_mcedit_broken_autocompletion'

* 2957_mcedit_broken_autocompletion:
  (editcmd_dialog_completion_show): adjust dialog position.
  (edit_complete_word_cmd): don't get bytes directly from editor buffer.
  Add test_autocomplete_single() test
  Add tests for coverage the bug.
  (edit_complete_word_cmd): make correct charset conversion
  Ticket #2957: broken autocompletion in mcedit
Indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(exec_extension_view): refactoring: remove temporary file in exec_extension().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2980: Add missing doc/hints french translation

Hints was split by paragraph (by double new line symbol instead of single newline symbol)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add the hint-files synchronization with Transifex.

For upload English hint-file to transifex, type:
cd doc/hints/po && make to-transifex

For download translation from Transifex type:
cd doc/hints/po && make from-transifex && \
    git add ../l10n/mc.hints.* && \
    git commit -s -m 'Update hints files from Transifex'

WARNING! For the functionality you should have installed 'tx' and 'po4a'
utilities. These utilities isn't required for compile and install mc
(you may install these utilities only if you want to interact with Transifex).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Merge branch '2980_doc_hints'

* 2980_doc_hints:
  Add the hint-files synchronization with Transifex.
  Ticket #2980: Add missing doc/hints french translation
Updated translations from Transifex

Signed-off-by: Slava Zanko <slavazanko@gmail.com>