文字系统大体完工
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Created by EmsiaetKadosh on 25-1-18.
|
||||
//
|
||||
|
||||
#include "Text.h"
|
||||
|
||||
#include "def.h"
|
||||
|
||||
const String& TranslatableText::getText() const noexcept {
|
||||
if (target == nullptr || langConfig == translator.getConfigVersion()) {
|
||||
target = translator.getText(idSrc);
|
||||
langConfig = translator.getConfigVersion();
|
||||
}
|
||||
return *target;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user