Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2022-02-20 02:02:21 +0300
committerGitHub <noreply@github.com>2022-02-20 02:02:21 +0300
commite0f3f14fb3d648ba640e75cf25e257ac8fde4865 (patch)
treea88b1d0d075cd8a951a757e45114cf64a8cd6fb3 /far2l/src/keybar.cpp
parentdc2f6de4c2f438046b4d31cf4c2078b6ad65a5ce (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/keybar.cpp')
-rw-r--r--far2l/src/keybar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/far2l/src/keybar.cpp b/far2l/src/keybar.cpp
index 7142ca6e..9a0c60b6 100644
--- a/far2l/src/keybar.cpp
+++ b/far2l/src/keybar.cpp
@@ -40,7 +40,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "keys.hpp"
#include "manager.hpp"
#include "syslog.hpp"
-#include "language.hpp"
+#include "lang.hpp"
#include "interf.hpp"
#include "config.hpp"
#include "ConfigRW.hpp"
@@ -311,13 +311,13 @@ void KeyBar::Change(int Group,const wchar_t *NewStr,int Pos)
// Групповая установка идущих подряд строк LNG для указанной группы
-void KeyBar::SetAllGroup(int Group, int StartIndex, int Count)
+void KeyBar::SetAllGroup(int Group, FarLangMsg BaseMsg, int Count)
{
if (Count > KEY_COUNT)
Count = KEY_COUNT;
- for (int i=0, Index=StartIndex; i<Count; i++, Index++)
- far_wcsncpy(KeyTitles[Group][i], MSG(Index), ARRAYSIZE(KeyTitles[Group][i]));
+ for (int i=0; i<Count; i++)
+ far_wcsncpy(KeyTitles[Group][i], (BaseMsg + i).CPtr(), ARRAYSIZE(KeyTitles[Group][i]));
KeyCounts [Group] = Count;
}