コード例 #1
0
			def _create_po_files(po_files, src_files, language):
				# type: (Iterable[str], Iterable[str], str) -> None
				for po_file in po_files:
					po_path = os.path.join(output_dir, module['relative_path_src_pkg'], po_file)
					make_parent_dir(po_path)
					try:
						dh_umc.create_po_file(po_path, module['module_name'], src_files, language)
					except dh_umc.Error as exc:
						print(str(exc))
コード例 #2
0
	def _create_po_template(self, gettext_lang, pot_path):
		# type: (str, str) -> None
		dh_umc.create_po_file(pot_path, self.binary_pkg_name, self.files, language=gettext_lang)