Skip to content

Commit 102486f

Browse files
committed
Add localization (batch 1).
1 parent 6aa1e3c commit 102486f

37 files changed

+612
-169
lines changed

include/getString.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,18 @@ namespace steppable::localization
3636
* @return The string in its localized form.
3737
*/
3838
std::string $(const std::string& origin, const std::string& key);
39+
40+
/**
41+
* @brief Gets a string from origin, and by the key. Formats it with the format strings.
42+
* @details The origin is the name of the file, and the key is the GUID of the string. This method also
43+
* enables you to format the string with the format strings.
44+
*
45+
* @param origin The name of the file, without the extension.
46+
* @param formatKey The GUID key of the format string.
47+
* @param formatStrings The format strings to format the string with.
48+
* @return The formatted string in its localized form, formatted with the format strings.
49+
*/
50+
std::string $(const std::string& origin,
51+
const std::string& formatKey,
52+
const std::vector<std::string>& formatStrings);
3953
} // namespace steppable::localization

res/translations/abs.stp_strings

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/add.stp_strings

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/baseConvert.stp_strings

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/comparison.stp_strings

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/decimalConvert.stp_strings

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/division.stp_strings

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/abs.stp_localized

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/add.stp_localized

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/baseConvert.stp_localized

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/comparison.stp_localized

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/decimalConvert.stp_localized

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)