MCPcopy Create free account
hub / github.com/audacity/audacity / TranslationExists

Function TranslationExists

libraries/lib-strings/Languages.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static bool TranslationExists(const FilePaths &pathList, wxString code)
66{
67 FilePaths results;
68 FindFilesInPathList(code + L"/audacity.mo", pathList, results);
69#if defined(__WXMAC__)
70 FindFilesInPathList(code + L".lproj/audacity.mo", pathList, results);
71#endif
72 FindFilesInPathList(code + L"/LC_MESSAGES/audacity.mo", pathList, results);
73 return (results.size() > 0);
74}
75
76#ifdef __WXMAC__
77#include <CoreFoundation/CFPreferences.h>

Callers 1

GetLanguagesFunction · 0.85

Calls 2

FindFilesInPathListFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected