aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/I18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/I18n.h')
-rw-r--r--Minecraft.World/I18n.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Minecraft.World/I18n.h b/Minecraft.World/I18n.h
index 0a43fe20..f459f4de 100644
--- a/Minecraft.World/I18n.h
+++ b/Minecraft.World/I18n.h
@@ -10,6 +10,9 @@ private:
static Language *lang;
public:
- static wstring get(const wstring& id, ...);
- static wstring get(const wstring& id, va_list args);
+ template<typename ...Args>
+ static wstring get(Args... args)
+ {
+ return lang->getElement(std::forward<Args>(args)...);
+ }
}; \ No newline at end of file