mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-30 23:13:31 +01:00
Linux/macOS: print LANG environment variable to console only in DEBUG mode
This commit is contained in:
parent
fd9412e6ac
commit
0809f456d9
@ -70,7 +70,9 @@ namespace VeraCrypt
|
|||||||
string filename = filenamePrefix + defaultLang + filenamePost;
|
string filename = filenamePrefix + defaultLang + filenamePost;
|
||||||
if(const char* env_p = getenv("LANG")){
|
if(const char* env_p = getenv("LANG")){
|
||||||
string lang(env_p);
|
string lang(env_p);
|
||||||
|
#ifdef DEBUG
|
||||||
std::cout << lang << std::endl;
|
std::cout << lang << std::endl;
|
||||||
|
#endif
|
||||||
if ( lang.size() > 1 ){
|
if ( lang.size() > 1 ){
|
||||||
int found = lang.find(".");
|
int found = lang.find(".");
|
||||||
if ( found > 1 ){
|
if ( found > 1 ){
|
||||||
|
Loading…
Reference in New Issue
Block a user