mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-06-08 02:05:56 +02:00
strings translations
This commit is contained in:
parent
7be7f770bd
commit
d13592dfb1
4 changed files with 690 additions and 10 deletions
|
@ -41,7 +41,7 @@ public:
|
||||||
Steam_Overlay_Stats(class Settings* settings);
|
Steam_Overlay_Stats(class Settings* settings);
|
||||||
|
|
||||||
bool show_any_stats() const;
|
bool show_any_stats() const;
|
||||||
void render_stats();
|
void render_stats(int current_language);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef _STEAM_OVERLAY_TRANSLATIONS_H
|
||||||
|
#define _STEAM_OVERLAY_TRANSLATIONS_H
|
||||||
|
|
||||||
|
|
||||||
const int TRANSLATION_NUMBER_OF_LANGUAGES = 31;
|
const int TRANSLATION_NUMBER_OF_LANGUAGES = 31;
|
||||||
const int TRANSLATION_BUFFER_SIZE = 256;
|
const int TRANSLATION_BUFFER_SIZE = 256;
|
||||||
|
@ -3477,3 +3480,678 @@ const char translationAutoAcceptFriendInvite[TRANSLATION_NUMBER_OF_LANGUAGES][TR
|
||||||
u8"Invitations are controlled by auto_accept_invite.txt!",
|
u8"Invitations are controlled by auto_accept_invite.txt!",
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char translationFpsCheckbox[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"FPS",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationFpsDisplay[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"FPS: ",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationFrametimeCheckbox[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"Frametime",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationFrametimeDisplay[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"FRT: ",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationFrametimeUnitDisplay[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8" ms",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationPlaytimeCheckbox[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"Playtime",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const char translationPlaytimeDisplay[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATION_BUFFER_SIZE] = {
|
||||||
|
// 0 - English
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 1 - Arabic
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 2 - Bulgarian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 3 - Simplified Chinese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 4 - Traditional Chinese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 5 - Czech
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 6 - Danish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 7 - Dutch
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 8 - Finnish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 9 - French
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 10 - German
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 11 - Greek
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 12 - Hungarian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 13 - Italian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 14 - Japanese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 15 - Korean
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 16 - Norwegian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 17 - Polish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 18 - Portuguese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 19 - Brazilian Portuguese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 20 - Romanian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 21 - Russian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 22 - Spanish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 23 - Latin American
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 24 - Swedish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 25 - Thai
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 26 - Turkish
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 27 - Ukrainian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 28 - Vietnamese
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 29 - Croatian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
// 30 - Indonesian
|
||||||
|
u8"PLT: ",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // _STEAM_OVERLAY_TRANSLATIONS_H
|
||||||
|
|
|
@ -1256,7 +1256,7 @@ void Steam_Overlay::overlay_render_proc()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stats.show_any_stats()) {
|
if (stats.show_any_stats()) {
|
||||||
stats.render_stats();
|
stats.render_stats(current_language);
|
||||||
}
|
}
|
||||||
|
|
||||||
load_next_ach_icon();
|
load_next_ach_icon();
|
||||||
|
@ -1400,17 +1400,17 @@ void Steam_Overlay::render_main_window()
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
// user clicked on "FPS"
|
// user clicked on "FPS"
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Checkbox("FPS", &stats.show_fps)) {
|
if (ImGui::Checkbox(translationFpsCheckbox[current_language], &stats.show_fps)) {
|
||||||
allow_renderer_frame_processing(stats.show_fps);
|
allow_renderer_frame_processing(stats.show_fps);
|
||||||
}
|
}
|
||||||
// user clicked on "Frametime"
|
// user clicked on "Frametime"
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Checkbox("Frametime", &stats.show_frametime)) {
|
if (ImGui::Checkbox(translationFrametimeCheckbox[current_language], &stats.show_frametime)) {
|
||||||
allow_renderer_frame_processing(stats.show_frametime);
|
allow_renderer_frame_processing(stats.show_frametime);
|
||||||
}
|
}
|
||||||
// user clicked on "Playtime"
|
// user clicked on "Playtime"
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Checkbox("Playtime", &stats.show_playtime)) {
|
if (ImGui::Checkbox(translationPlaytimeCheckbox[current_language], &stats.show_playtime)) {
|
||||||
allow_renderer_frame_processing(stats.show_playtime);
|
allow_renderer_frame_processing(stats.show_playtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#include "overlay/steam_overlay_stats.h"
|
#include "overlay/steam_overlay_stats.h"
|
||||||
|
// translation
|
||||||
|
#include "overlay/steam_overlay_translations.h"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
|
||||||
|
@ -54,7 +56,7 @@ void Steam_Overlay_Stats::update_playtime(const std::chrono::high_resolution_clo
|
||||||
active_playtime_hr = static_cast<unsigned>(time_duration_hr % 24);
|
active_playtime_hr = static_cast<unsigned>(time_duration_hr % 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Steam_Overlay_Stats::render_stats()
|
void Steam_Overlay_Stats::render_stats(int current_language)
|
||||||
{
|
{
|
||||||
auto now = std::chrono::high_resolution_clock::now();
|
auto now = std::chrono::high_resolution_clock::now();
|
||||||
if (show_fps || show_frametime) {
|
if (show_fps || show_frametime) {
|
||||||
|
@ -84,7 +86,7 @@ void Steam_Overlay_Stats::render_stats()
|
||||||
|
|
||||||
std::stringstream stats_txt_buff{};
|
std::stringstream stats_txt_buff{};
|
||||||
if (show_fps) {
|
if (show_fps) {
|
||||||
stats_txt_buff << "FPS: "
|
stats_txt_buff << translationFpsDisplay[current_language]
|
||||||
<< std::left << std::setw(2)
|
<< std::left << std::setw(2)
|
||||||
<< active_fps
|
<< active_fps
|
||||||
<< std::right << std::setw(0);
|
<< std::right << std::setw(0);
|
||||||
|
@ -93,18 +95,18 @@ void Steam_Overlay_Stats::render_stats()
|
||||||
if (stats_txt_buff.tellp() > 0) {
|
if (stats_txt_buff.tellp() > 0) {
|
||||||
stats_txt_buff << " | ";
|
stats_txt_buff << " | ";
|
||||||
}
|
}
|
||||||
stats_txt_buff << "FRT: "
|
stats_txt_buff << translationFrametimeDisplay[current_language]
|
||||||
<< std::left << std::setw(4) << std::fixed << std::setprecision(1)
|
<< std::left << std::setw(4) << std::fixed << std::setprecision(1)
|
||||||
<< active_frametime_ms
|
<< active_frametime_ms
|
||||||
<< std::defaultfloat << std::right << std::setw(0)
|
<< std::defaultfloat << std::right << std::setw(0)
|
||||||
<< " ms";
|
<< translationFrametimeUnitDisplay[current_language];
|
||||||
}
|
}
|
||||||
if (show_playtime) {
|
if (show_playtime) {
|
||||||
if (stats_txt_buff.tellp() > 0) {
|
if (stats_txt_buff.tellp() > 0) {
|
||||||
stats_txt_buff << " | ";
|
stats_txt_buff << " | ";
|
||||||
}
|
}
|
||||||
const auto org_fill = stats_txt_buff.fill();
|
const auto org_fill = stats_txt_buff.fill();
|
||||||
stats_txt_buff << "PLT: "
|
stats_txt_buff << translationPlaytimeDisplay[current_language]
|
||||||
<< std::setw(2) << std::setfill('0')
|
<< std::setw(2) << std::setfill('0')
|
||||||
<< active_playtime_hr << ':'
|
<< active_playtime_hr << ':'
|
||||||
<< std::setw(2) << std::setfill('0')
|
<< std::setw(2) << std::setfill('0')
|
||||||
|
|
Loading…
Add table
Reference in a new issue