diff options
author | elfmz <fenix1905@tut.by> | 2022-02-20 02:02:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-20 02:02:21 +0300 |
commit | e0f3f14fb3d648ba640e75cf25e257ac8fde4865 (patch) | |
tree | a88b1d0d075cd8a951a757e45114cf64a8cd6fb3 /far2l/src/Mounts.cpp | |
parent | dc2f6de4c2f438046b4d31cf4c2078b6ad65a5ce (diff) |
Language refactor (#1271)
optimized and refactored language files loader
got rid of MSG() macro and use Msg:: namespace instead
Diffstat (limited to 'far2l/src/Mounts.cpp')
-rw-r--r-- | far2l/src/Mounts.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/far2l/src/Mounts.cpp b/far2l/src/Mounts.cpp index 14a67fce..4eb615bb 100644 --- a/far2l/src/Mounts.cpp +++ b/far2l/src/Mounts.cpp @@ -4,7 +4,6 @@ #include "Mounts.hpp" #include "lang.hpp" -#include "language.hpp" #include "keys.hpp" #include "help.hpp" #include "vmenu.hpp" @@ -112,11 +111,11 @@ namespace Mounts } if (!has_rootfs) { - emplace(begin(), Entry(L"/", MSG(MMountsRoot), false, ID_ROOT)); + emplace(begin(), Entry(L"/", Msg::MountsRoot, false, ID_ROOT)); } - emplace(begin(), Entry( GetMyHome(), MSG(MMountsHome), false, ID_HOME)); - emplace(begin(), Entry( another_curdir, MSG(MMountsOther), false, ID_ANOTHER)); + emplace(begin(), Entry( GetMyHome(), Msg::MountsHome, false, ID_HOME)); + emplace(begin(), Entry( another_curdir, Msg::MountsOther, false, ID_ANOTHER)); ConfigReader cfg_reader(HOTKEYS_SECTION); for (auto &m : *this) { @@ -157,7 +156,7 @@ namespace Mounts const auto &Key = SettingsKey(id); const auto &Setting = ConfigReader(HOTKEYS_SECTION).GetString(Key, def_hk); WCHAR Letter[2] = {Setting.IsEmpty() ? 0 : Setting[0], 0}; - if (HotkeyLetterDialog(MSG(MLocationHotKeyTitle), path.CPtr(), Letter[0])) { + if (HotkeyLetterDialog(Msg::LocationHotKeyTitle, path.CPtr(), Letter[0])) { ConfigWriter cw(HOTKEYS_SECTION); if (Letter[0]) cw.SetString(Key, Letter); |