Skip to content

Commit

Permalink
The default log directory has been moved to the standard application …
Browse files Browse the repository at this point in the history
…directory.
  • Loading branch information
xvitaly committed May 22, 2024
1 parent bfe8643 commit 953a753
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
4 changes: 3 additions & 1 deletion docs/source/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ Data files storage

All program settings are stored in the ``%LOCALAPPDATA%\EasyCoding_Team`` directory (each subdirectory for every version).

Logs -- ``%LOCALAPPDATA%\mhed\logs``.
All other data files -- ``%APPDATA%\Micro Hosts Editor``.

Logs -- ``%APPDATA%\Micro Hosts Editor\logs``.

.. index:: removing program, uninstalling program
.. _gs-uninstall:
Expand Down
30 changes: 17 additions & 13 deletions docs/source/locale/ru/LC_MESSAGES/getting-started.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Micro Hosts Editor 1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-11 10:26+0100\n"
"PO-Revision-Date: 2024-03-11 10:29+0100\n"
"POT-Creation-Date: 2024-05-22 13:55+0200\n"
"PO-Revision-Date: 2024-05-22 13:56+0200\n"
"Last-Translator: Vitaly <vitaly@easycoding.org>\n"
"Language-Team: EasyCoding Team\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
"X-Generator: Poedit 3.4.4\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-Basepath: ../../..\n"
"X-Poedit-SearchPath-0: .\n"
Expand Down Expand Up @@ -158,14 +158,18 @@ msgstr ""
"для каждой версии отдельно."

#: ../../source/getting-started.rst:68
msgid "Logs -- ``%LOCALAPPDATA%\\mhed\\logs``."
msgstr "Журналы работы -- ``%LOCALAPPDATA%\\mhed\\logs``."
msgid "All other data files -- ``%APPDATA%\\Micro Hosts Editor``."
msgstr "Все остальные файлы -- ``%APPDATA%\\Micro Hosts Editor``."

#: ../../source/getting-started.rst:74
#: ../../source/getting-started.rst:70
msgid "Logs -- ``%APPDATA%\\Micro Hosts Editor\\logs``."
msgstr "Журналы работы -- ``%APPDATA%\\Micro Hosts Editor\\logs``."

#: ../../source/getting-started.rst:76
msgid "Uninstalling program"
msgstr "Удаление программы"

#: ../../source/getting-started.rst:76
#: ../../source/getting-started.rst:78
msgid ""
"If you want to uninstall Micro Hosts Editor from your compuler, use "
"**Start** -- **Settings** -- **Apps** -- **Apps & features** -- **Micro "
Expand All @@ -175,7 +179,7 @@ msgstr ""
"через **Пуск** -- **Параметры** -- **Приложения** -- **Приложения и "
"возможности** -- **Micro Hosts Editor** -- **Удалить**."

#: ../../source/getting-started.rst:78
#: ../../source/getting-started.rst:80
msgid ""
"Uninstaller will automatically remove all program files, shortcuts, registry "
"entries, but will save created by user :ref:`data files <gs-datafiles>`. You "
Expand All @@ -186,33 +190,33 @@ msgstr ""
"решите когда-нибудь переустановить её. Эти :ref:`файлы <gs-datafiles>` вы "
"можете удалить вручную."

#: ../../source/getting-started.rst:84
#: ../../source/getting-started.rst:86
msgid "Mono issues"
msgstr "Проблемы с Mono"

#: ../../source/getting-started.rst:86
#: ../../source/getting-started.rst:88
msgid ""
"When running under Mono, the program may crash on start with the following "
"error:"
msgstr ""
"При запуске программы с использованием Mono, может произойти падение со "
"следующей ошибкой:"

#: ../../source/getting-started.rst:93
#: ../../source/getting-started.rst:95
msgid ""
"This is a known `upstream issue <https://github.com/mono/mono/"
"issues/21630>`__."
msgstr ""
"Это `известная проблема <https://github.com/mono/mono/issues/21630>`__."

#: ../../source/getting-started.rst:95
#: ../../source/getting-started.rst:97
msgid ""
"It can be trivially workarounded by editing the ``mhed.exe.config`` file and "
"removing the following lines:"
msgstr ""
"Её достаточно просто решить, открыв в текстовом редакторе файл ``mhed.exe."
"config`` и удалив следующие строки:"

#: ../../source/getting-started.rst:103
#: ../../source/getting-started.rst:105
msgid "The next launch will be successful."
msgstr "Следующий запуск будет успешным."
4 changes: 2 additions & 2 deletions src/mhed/NLog.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<variable name="appname" value="mhed" />
<variable name="logdir" value="${specialfolder:folder=LocalApplicationData}/${appname}/logs" />
<variable name="appname" value="Micro Hosts Editor" />
<variable name="logdir" value="${specialfolder:folder=ApplicationData}/${appname}/logs" />
<targets>
<target name="logfile" xsi:type="File"
layout="${longdate} :: ${level:uppercase=true} :: ${callsite} :: ${message} ${exception:format=tostring}"
Expand Down

0 comments on commit 953a753

Please sign in to comment.