View | Details | Raw Unified | Return to bug 30520
Collapse All | Expand All

(-)/home/phahn/GIT/branches/ucs-3.1/ucs/management/univention-management-console/dev/dh-umc-module-install (-5 / +5 lines)
 Lines 107-132   def do_package( package, core ): Link Here 
107
				# get destination path
107
				# get destination path
108
				destFile = 'debian/%s/usr/share/univention-management-console-frontend/js/umc/modules/%s' % ( package, srcFile[len(module.js_path):] )
108
				destFile = 'debian/%s/usr/share/univention-management-console-frontend/js/umc/modules/%s' % ( package, srcFile[len(module.js_path):] )
109
				# copy the .html file
109
				# copy the .html file
110
				dh_ucs.doIt( 'install', srcFile, destFile )
110
				dh_ucs.doIt( 'install', '-m', '644', srcFile, destFile )
111
111
112
			# copy XML definitions
112
			# copy XML definitions
113
			dh_ucs.doIt( 'install', module.xml_definition, 'debian/%(package)s/usr/share/univention-management-console/modules' % module )
113
			dh_ucs.doIt( 'install', '-m', '644', module.xml_definition, 'debian/%(package)s/usr/share/univention-management-console/modules' % module )
114
114
115
		if module.xml_categories:
115
		if module.xml_categories:
116
			dh_ucs.doIt( 'install', module.xml_categories, 'debian/%(package)s/usr/share/univention-management-console/categories' % module )
116
			dh_ucs.doIt( 'install', '-m', '644', module.xml_categories, 'debian/%(package)s/usr/share/univention-management-console/categories' % module )
117
117
118
		if not core:
118
		if not core:
119
			# copy translation files (python)
119
			# copy translation files (python)
120
			for lang in dh_umc.LANGUAGES:
120
			for lang in dh_umc.LANGUAGES:
121
				mo_file = os.path.join( module.python_path, '%s.mo' % lang )
121
				mo_file = os.path.join( module.python_path, '%s.mo' % lang )
122
				module[ 'lang' ] = lang
122
				module[ 'lang' ] = lang
123
				dh_ucs.doIt( 'install', mo_file, 'debian/%(package)s/usr/share/locale/%(lang)s/LC_MESSAGES/%(package)s.mo' % module )
123
				dh_ucs.doIt( 'install', '-m', '644', mo_file, 'debian/%(package)s/usr/share/locale/%(lang)s/LC_MESSAGES/%(package)s.mo' % module )
124
124
125
			# copy translation files (javascript)
125
			# copy translation files (javascript)
126
			for lang in dh_umc.LANGUAGES:
126
			for lang in dh_umc.LANGUAGES:
127
				json_file = os.path.join( module.js_path, '%s.json' % lang )
127
				json_file = os.path.join( module.js_path, '%s.json' % lang )
128
				module[ 'lang' ] = lang
128
				module[ 'lang' ] = lang
129
				dh_ucs.doIt( 'install', json_file, 'debian/%(package)s/usr/share/univention-management-console-frontend/js/umc/modules/i18n/%(lang)s/%(Module)s.json' % module )
129
				dh_ucs.doIt( 'install', '-m', '644', json_file, 'debian/%(package)s/usr/share/univention-management-console-frontend/js/umc/modules/i18n/%(lang)s/%(Module)s.json' % module )
130
130
131
		# copy translation files (xml)
131
		# copy translation files (xml)
132
		for lang in dh_umc.LANGUAGES:
132
		for lang in dh_umc.LANGUAGES:

Return to bug 30520