mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 04:04:17 +01:00
refactored project structure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "fastfetch.h"
|
||||
|
||||
void ffPrintLocale(FFstate* state)
|
||||
{
|
||||
if(ffPrintCachedValue(state, "Locale"))
|
||||
return;
|
||||
|
||||
char locale[256];
|
||||
ffParsePropFile("/etc/locale.conf", "LANG=%[^\n]", locale);
|
||||
if(locale[0] == '\0')
|
||||
{
|
||||
ffPrintError(state, "Locale", "\"LANG=%[^\\n]\" not found in \"/etc/locale.conf\"");
|
||||
return;
|
||||
}
|
||||
|
||||
ffPrintAndSaveCachedValue(state, "Locale", locale);
|
||||
}
|
||||
Reference in New Issue
Block a user