Install .mo files on osx as well.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6749 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8e3af9c2a6
commit
9c2c083f30
|
@ -71,6 +71,15 @@ elif sys.platform == 'darwin' and env['HAVE_WX']:
|
||||||
env.Install(env['data_dir'],
|
env.Install(env['data_dir'],
|
||||||
'#Source/Core/DolphinWX/resources/Dolphin.icns')
|
'#Source/Core/DolphinWX/resources/Dolphin.icns')
|
||||||
|
|
||||||
|
mo_files = Glob('#Data/Languages/*/dolphin-emu.mo', strings=True)
|
||||||
|
for mo in mo_files:
|
||||||
|
index_lo = mo.find("Languages/") + len("Languages/")
|
||||||
|
index_hi = mo.find("/dolphin-emu.mo")
|
||||||
|
lang_name = mo[index_lo:index_hi]
|
||||||
|
install_loc = env['data_dir'] + "/" + lang_name + ".lproj/dolphin-emu.mo"
|
||||||
|
print install_loc
|
||||||
|
env.InstallAs(install_loc, mo)
|
||||||
|
|
||||||
from plistlib import writePlist
|
from plistlib import writePlist
|
||||||
def createPlist(target, source, env):
|
def createPlist(target, source, env):
|
||||||
for srcNode in source:
|
for srcNode in source:
|
||||||
|
|
Loading…
Reference in New Issue