void
dvdomatic_setup_i18n (string lang)
{
+#ifdef DVDOMATIC_WINDOWS
+ string const e = "LANGUAGE=" + lang;
+ putenv (e.c_str());
+#endif
+
+ setlocale (LC_ALL, "");
+ textdomain ("libdvdomatic");
bindtextdomain ("libdvdomatic", LOCALE_PREFIX);
- setlocale (LC_ALL, lang.c_str ());
}
/** @param start Start position for the crop within the image.
SetOutPath "$PROFILE\.magick"
File "%deps%/etc/ImageMagick/delegates.xml"
-SetOutPath "$INSTDIR\bin\fr_FR"
+SetOutPath "$INSTDIR\locale\fr_FR"
File "%binaries%/src/lib/mo/fr_FR/libdvdomatic.mo"
+File "%binaries%/src/wx/mo/fr_FR/libdvdomatic-wx.mo"
File "%binaries%/src/tools/mo/fr_FR/dvdomatic.mo"
-SetOutPath "$INSTDIR\bin\it_IT"
+SetOutPath "$INSTDIR\locale\it_IT"
File "%binaries%/src/lib/mo/it_IT/libdvdomatic.mo"
File "%binaries%/src/wx/mo/it_IT/libdvdomatic-wx.mo"
File "%binaries%/src/tools/mo/it_IT/dvdomatic.mo"
SetOutPath "$PROFILE\.magick"
File "%deps%/etc/ImageMagick/delegates.xml"
-SetOutPath "$INSTDIR\bin\fr_FR"
+SetOutPath "$INSTDIR\locale\fr_FR"
File "%binaries%/src/lib/mo/fr_FR/libdvdomatic.mo"
+File "%binaries%/src/wx/mo/fr_FR/libdvdomatic-wx.mo"
File "%binaries%/src/tools/mo/fr_FR/dvdomatic.mo"
-
-SetOutPath "$INSTDIR\bin\it_IT"
+SetOutPath "$INSTDIR\locale\it_IT"
File "%binaries%/src/lib/mo/it_IT/libdvdomatic.mo"
File "%binaries%/src/wx/mo/it_IT/libdvdomatic-wx.mo"
File "%binaries%/src/tools/mo/it_IT/dvdomatic.mo"
conf.load('winres')
conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing',
- '-Wall', '-Wno-attributes', '-Wextra',
- '-DLOCALE_PREFIX="%s/share/locale"' % conf.env['PREFIX']])
+ '-Wall', '-Wno-attributes', '-Wextra'])
if conf.options.target_windows:
conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_WINDOWS', '-DWIN32_LEAN_AND_MEAN', '-DBOOST_USE_WINDOWS_H', '-DUNICODE'])
+ conv.env.append_value('CXXFLAGS', '-DLOCALE_PREFIX="../locale"')
wxrc = os.popen('wx-config --rescomp').read().split()[1:]
conf.env.append_value('WINRCFLAGS', wxrc)
if conf.options.enable_debug:
boost_thread = 'boost_thread_win32-mt'
else:
conf.env.append_value('CXXFLAGS', '-DDVDOMATIC_POSIX')
+ conf.env.append_value('CXXFLAGS', '-DLOCALE_PREFIX="%s/share/locale"' % conf.env['PREFIX'])
boost_lib_suffix = ''
boost_thread = 'boost_thread'
conf.env.append_value('LINKFLAGS', '-pthread')