- EDL::id_lock = new Mutex("EDL::id_lock");
-
- get_exe_path(exe_path);
- snprintf(env_path, sizeof(env_path), "CINELERRA_PATH=%s", exe_path);
- putenv(env_path);
- sprintf(locale_path, "%s%s", exe_path, LOCALEDIR);
-
-// detect an UTF-8 locale and try to use a non-Unicode locale instead
-// <---Beginning of dirty hack
-// This hack will be removed as soon as Cinelerra is UTF-8 compliant
-// char *s, *language;
-
-// Query user locale
-// if ((s = getenv("LC_ALL")) ||
-// (s = getenv("LC_MESSAGES")) ||
-// (s = getenv("LC_CTYPE")) ||
-// (s = getenv ("LANG")))
-// {
-// Test if user locale is set to Unicode
-// if (strstr(s, ".UTF-8"))
-// {
-// extract language from language-charset@variant
-// language = strtok (s, ".@");
-// set language as the default locale
-// setenv("LANG", language, 1);
-// }
-// }
-// End of dirty hack --->
-
- bindtextdomain (PACKAGE, locale_path);
- textdomain (PACKAGE);
- setlocale (LC_MESSAGES, "");
+ Units::init();
+
+ File::init_cin_path();
+ const char *locale_path = File::get_locale_path();
+ const char *cin = File::get_cin();
+
+ bindtextdomain(cin, locale_path);
+ textdomain(cin);
+ setlocale(LC_MESSAGES, "");
+