MCPcopy Create free account
hub / github.com/VCVRack/Rack / getLanguages

Function getLanguages

src/string.cpp:697–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695
696
697std::vector<std::string> getLanguages() {
698 std::vector<std::string> languages;
699 for (const auto& pair : translations) {
700 languages.push_back(pair.first);
701 }
702 // Sort by language name, by UTF-8 bytes
703 std::sort(languages.begin(), languages.end(), [](const std::string& a, const std::string& b) {
704 return translate("language", a) < translate("language", b);
705 });
706 return languages;
707}
708
709
710void init() {

Callers 1

appendLanguageMenuFunction · 0.85

Calls 1

translateFunction · 0.85

Tested by

no test coverage detected