67 """ |
67 """ |
68 Install the translation files into the right place. |
68 Install the translation files into the right place. |
69 """ |
69 """ |
70 global privateInstall, configDir |
70 global privateInstall, configDir |
71 |
71 |
72 if privateInstall: |
72 targetDir = (configDir if privateInstall |
73 targetDir = configDir |
73 else getConfig('ericTranslationsDir')) |
74 else: |
|
75 targetDir = getConfig('ericTranslationsDir') |
|
76 |
74 |
77 try: |
75 try: |
78 for fn in glob.glob(os.path.join('eric', 'eric6', 'i18n', '*.qm')): |
76 for fn in glob.glob(os.path.join('eric', 'eric6', 'i18n', '*.qm')): |
79 shutil.copy2(fn, targetDir) |
77 shutil.copy2(fn, targetDir) |
80 os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644) |
78 os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644) |