diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-12 08:56:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-12 09:09:58 +0400 |
commit | 6eedddc12dc45322773f48ac059e894276ed2bcf (patch) | |
tree | ca659f03b4ca4d28d3c987664d73eba178eda42c /SConstruct | |
parent | ec4ed2e3df507245aceb7341b4fdf2f5ed935067 (diff) |
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.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
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 = [] |