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

(-)/usr/share/pyshared/univention/translationhelper.py.orig (-4 / +4 lines)
 Lines 62-80    Link Here 
62
		p = os.path.join(source_dir, packagedir)
62
		p = os.path.join(source_dir, packagedir)
63
		os.chdir(p)
63
		os.chdir(p)
64
		if not module['core']:
64
		if not module['core']:
65
			def _create_po_files(po_files):
65
			def _create_po_files(po_files, src_files):
66
				for po_file in po_files:
66
				for po_file in po_files:
67
					po_file_full_path = os.path.join(translated_package_dir_absolute, po_file)
67
					po_file_full_path = os.path.join(translated_package_dir_absolute, po_file)
68
					if not os.path.exists(os.path.dirname(po_file_full_path)):
68
					if not os.path.exists(os.path.dirname(po_file_full_path)):
69
						os.makedirs(os.path.dirname(po_file_full_path))
69
						os.makedirs(os.path.dirname(po_file_full_path))
70
					try:
70
					try:
71
						dh_umc.create_po_file(po_file_full_path, modulename, module.python_files)
71
						dh_umc.create_po_file(po_file_full_path, modulename, src_files)
72
					except dh_umc.Error as exc:
72
					except dh_umc.Error as exc:
73
						print str(exc)
73
						print str(exc)
74
74
75
			# build python po files
75
			# build python po files
76
			_create_po_files(module.python_po_files)
76
			_create_po_files(module.python_po_files, module.python_files)
77
			_create_po_files(module.js_po_files)
77
			_create_po_files(module.js_po_files, module.js_files)
78
78
79
		# xml always has to be present
79
		# xml always has to be present
80
		for lang, po_file in module.xml_po_files:
80
		for lang, po_file in module.xml_po_files:

Return to bug 40936