From 6eedddc12dc45322773f48ac059e894276ed2bcf Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 12 Dec 2013 05:56:56 +0100 Subject: Fix T37780: no languages in user preferences with SCons on Windows / Linux. The "languages" file was not copied, probably this was not noticed earlier because it only affects clean builds. --- SConstruct | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 3b0bf9cd831..2e000665aff 100644 --- a/SConstruct +++ b/SConstruct @@ -948,6 +948,7 @@ if env['OURPLATFORM']!='darwin': po_dir = os.path.join("release", "datafiles", "locale", "po") + # font files for intpath in internationalpaths: for dp, dn, df in os.walk(intpath): if '.git' in df: @@ -968,6 +969,7 @@ if env['OURPLATFORM']!='darwin': env.Execute(Mkdir(dir)) scriptinstall.append(env.Install(dir=dir,source=source)) + # .mo files for f in os.listdir(po_dir): if not f.endswith(".po"): continue @@ -980,6 +982,12 @@ if env['OURPLATFORM']!='darwin': dir = os.path.join(dir, "datafiles", "locale", locale_name, "LC_MESSAGES") scriptinstall.append(env.InstallAs(os.path.join(dir, "blender.mo"), mo_file)) + # languages file + dir = os.path.join(env['BF_INSTALLDIR'], VERSION) + dir = os.path.join(dir, "datafiles", "locale") + languages_file = os.path.join("release", "datafiles", "locale", "languages") + scriptinstall.append(env.InstallAs(os.path.join(dir, "languages"), languages_file)) + #-- icons if env['OURPLATFORM']=='linux': iconlist = [] -- cgit v1.2.3