domo implemented

This commit is contained in:
S.Çağlar Onur
2005-08-15 10:37:02 +00:00
parent 815bbae7dd
commit 8ceb273efc
+7 -2
View File
@@ -133,9 +133,14 @@ def doman(*sourceFiles):
makedirs(manDIR + '/man%s' % pageDirectory)
os.system('install -m0644 %s %s' % (source, manDIR + '/man%s' % pageDirectory))
def domo_(*sourceFiles):
def domo(sourceFile, locale, destinationFile ):
'''inserts the mo files in the list of files into /usr/share/locale/LOCALE/LC_MESSAGES'''
pass
'''example call: pisitools.domo("po/tr.po", "tr", "pam_login.mo")'''
system("msgfmt %s" % sourceFile)
makedirs(get.installDIR() + "/usr/share/locale/%s/LC_MESSAGES/" % locale)
shutil.move("messages.mo", get.installDIR() + "/usr/share/locale/%s/LC_MESSAGES/%s" % (locale, destinationFile))
def domove(sourceFile, destination, destinationFile = ''):
'''moves sourceFile/Directory into destinationFile/Directory'''