Skip to main content

Snippets

Sprache

Sprache des User ermitteln:

local _var_lang=$(locale | grep "LANG=" | cut -d"=" -f2 | cut -d"_" -f1)

Code des User ermitteln:

local _var_lang=$(locale | grep "LANG=" | cut -d"=" -f2 )