Пример #1
0
def update_po_with_other_po(po):
	"""
	Add the messages on po to the compendium
	"""
	potools.append_compendium("poto.po",po,"aux_poto.po")
	potools.test_duplicates("aux_poto.po")

	print(debug_msg(" En aux_poto.po tienes la suma "))
Пример #2
0
# This script is licensed under GPL v3
# or higher.
#
# Author: Angel Berlanas Vicente 
# 	  <*****@*****.**>
#
# -*- coding: utf8 -*-

import sys
import potools


if len(sys.argv) > 3:
  potools.debug_msg("Starting")
  compendium_path = sys.argv[1]
  orig_path = sys.argv[2]
  dest_path = sys.argv[3]
  potools.debug_msg("Tenemos los argumentos")

else:
  print("[USAGE]")
  print("File1.po File2.po File_dest.po")
  sys.exit(0)

potools.debug_msg("Make destination PO")
potools.simple_po_creation(dest_path)
potools.debug_msg("Merge the pos")
potools.union_po(compendium_path,orig_path, dest_path)
potools.debug_msg("Checking duplicates")
potools.test_duplicates(dest_path)