Skip to content

Commit c4f7e26

Browse files
committed
Add localization (batch 2).
1 parent ba26da2 commit c4f7e26

32 files changed

+654
-94
lines changed

include/output.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace steppable::output
7777
* @param[in] args Additional arguments for formatting the message.
7878
*/
7979
template<typename T>
80-
void error(const std::string& name, std::basic_string<T> msg, const std::vector<std::string>& args = {})
80+
void error(const std::string& name, const std::basic_string<T>& msg, const std::vector<std::string>& args = {})
8181
{
8282
auto formattedMsg = format::format(msg, args);
8383
std::cerr << colors::red << formats::bold << LARGE_DOT << name << " - ERROR: " << reset << colors::red;
@@ -99,13 +99,14 @@ namespace steppable::output
9999
* It is intended to tell the user that something is going wrong but can be handled.
100100
*
101101
* @tparam T The character type of the message.
102+
* @param[in] name The name of the warning
102103
* @param[in] msg The error message.
103104
* @param[in] args Additional arguments for formatting the message.
104105
*/
105106
template<typename T>
106-
[[maybe_unused]] void warning(const std::basic_string<T>& name,
107-
const std::basic_string<T>& msg,
108-
const std::vector<std::string>& args = {})
107+
void warning(const std::basic_string<T>& name,
108+
const std::basic_string<T>& msg,
109+
const std::vector<std::string>& args = {})
109110
{
110111
std::cout << colors::yellow << formats::bold << LARGE_DOT << name << " - WARNING: " << reset << colors::yellow;
111112
std::cout << format::format(msg, args) << reset << '\n';
@@ -122,6 +123,7 @@ namespace steppable::output
122123
* It is intended to tell the user that something is going right, or to provide some information.
123124
*
124125
* @tparam T The character type of the message.
126+
* @param[in] name The name of the info message.
125127
* @param[in] msg The info message.
126128
* @param[in] args Additional arguments for formatting the message.
127129
*/

res/translations/argParse.stp_strings

Lines changed: 38 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/argParse.stp_localized

Lines changed: 38 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/log.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.

res/translations/en-US/multiply.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/power.stp_localized

Lines changed: 35 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)