Skip to content

Commit

Permalink
All - Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Jan 5, 2024
1 parent b38bd98 commit e1ca1de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Path: `Nickvision::Aura::StringHelpers`
- Returns: A list of the splits of s on delimiter and casted to type T.
- Note: T requires the `StringImplicitlyConstructible` concept defined as: `std::is_constructible_v<T, std::string> && std::is_convertible_v<std::string, T>`.
- Ex: `StringHelpers::split<std::string>("1,2,3,4", ",")` will return `std::vector<std::string>{ "1", "2", "3", "4" }`.
- Ex: `StringHelpers::split<int>("1,2,3,4", ",")` will return `std::vector<int>{ 1, 2, 3, 4 }`.
- ```cpp
std::string replace(std::string s, const std::string& toReplace, const std::string& replace)
```
Expand Down
4 changes: 2 additions & 2 deletions src/localization/documentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Nickvision::Aura::Localization
}
#endif
std::string lang{ "C" };
std::string sysLocale{ StringHelpers::split<std::string>(boost::locale::util::get_system_locale(), ".")[0] }; //split to remove the .UTF-8
std::string sysLocale{ StringHelpers::split(boost::locale::util::get_system_locale(), ".")[0] }; //split to remove the .UTF-8
if (!sysLocale.empty() && sysLocale != "C" && sysLocale != "en_US")
{
/*
Expand All @@ -36,7 +36,7 @@ namespace Nickvision::Aura::Localization
}
else
{
std::string twoLetter{ StringHelpers::split<std::string>(sysLocale, "_")[0] };
std::string twoLetter{ StringHelpers::split(sysLocale, "_")[0] };
for (const std::string& l : langs)
{
if (l.find(twoLetter) != std::string::npos)
Expand Down

0 comments on commit e1ca1de

Please sign in to comment.