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

Function translate

src/string.cpp:669–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667
668
669std::string translate(const std::string& id) {
670 std::string s = translate(id, settings::language);
671 if (!s.empty())
672 return s;
673
674 // English fallback
675 if (settings::language != "en") {
676 return translate(id, "en");
677 }
678 return "";
679}
680
681
682std::string translate(const std::string& id, const std::string& language) {

Callers 15

mainFunction · 0.85
logInFunction · 0.85
checkUpdatesFunction · 0.85
saveDialogMethod · 0.85
saveAsDialogMethod · 0.85
saveTemplateDialogMethod · 0.85
loadTemplateMethod · 0.85
loadTemplateDialogMethod · 0.85
loadActionMethod · 0.85
loadDialogMethod · 0.85
loadPathDialogMethod · 0.85
revertDialogMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected