mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 08:34:15 -06:00
Fix source typo makro->macro
This commit is contained in:
parent
625d1c063e
commit
1852b0785e
@ -1,14 +1,14 @@
|
||||
#**********************************************************************
|
||||
# Gnu Cash to OpenOffice.org (gnuc2ooo.py)
|
||||
#
|
||||
# Makros for the download of GnuCash Data to OpenOffice.org Base
|
||||
# Macros for the download of GnuCash Data to OpenOffice.org Base
|
||||
#
|
||||
# Makro SetGnuCashFilePaths:
|
||||
# Macro SetGnuCashFilePaths:
|
||||
# Set or change the filepaths of the (GnuCash) data source
|
||||
# and of the new OpenOffice.org database that will be created
|
||||
# in this makro though still empty
|
||||
# in this macro though still empty
|
||||
#
|
||||
# Makro fillGnuCashDB:
|
||||
# Macro fillGnuCashDB:
|
||||
# Download data from the GnuCash data source to OpenOffice.org
|
||||
# Base
|
||||
#
|
||||
@ -35,7 +35,7 @@
|
||||
#
|
||||
#**********************************************************************
|
||||
# Acknowledgements: Special thanks go to the authors on OpenOffice.org
|
||||
# makro programming Roberto Benitez(http://www.baseprogramming.com) and
|
||||
# macro programming Roberto Benitez(http://www.baseprogramming.com) and
|
||||
# Andrew Pitonyak (http://www.pitonyak.org)
|
||||
#**********************************************************************
|
||||
# Changes
|
||||
@ -85,8 +85,8 @@ PathSettings = smgr.createInstanceWithContext(
|
||||
# ************************** PROLOG ***************************************
|
||||
from com.sun.star.ui.dialogs.TemplateDescription import FILEOPEN_SIMPLE, FILESAVE_AUTOEXTENSION
|
||||
lcodec = locale.getdefaultlocale()[1]
|
||||
set_makro = "SetGnuCashFilePaths"
|
||||
settings_textentrance = "#This file was generated by OpenOfficeMakro: "
|
||||
set_macro = "SetGnuCashFilePaths"
|
||||
settings_textentrance = "#This file was generated by OpenOfficeMacro: "
|
||||
settings_textinp = "GnuCashDatafile: "
|
||||
settings_textoutp = "Registered Database in Openoffice.org: "
|
||||
# Trace / Error - Information
|
||||
@ -178,7 +178,7 @@ def exec_SetGnuCashFilePaths():
|
||||
else:
|
||||
return None
|
||||
settings = open(settings_filepath(), 'w')
|
||||
entrance_line = settings_textentrance + set_makro + '\n'
|
||||
entrance_line = settings_textentrance + set_macro + '\n'
|
||||
settings.write(entrance_line)
|
||||
settings.write(settings_textinp)
|
||||
settings.write(GCFile.encode(lcodec) + '\n')
|
||||
@ -194,7 +194,7 @@ def exec_SetGnuCashFilePaths():
|
||||
settings.close()
|
||||
|
||||
MessageBox('A new Openoffice.org database has been created.\n' +
|
||||
'To fill with data please run makro "fillGnuCashDB."',
|
||||
'To fill with data please run macro "fillGnuCashDB."',
|
||||
MsgType="infobox")
|
||||
|
||||
def read_filepaths():
|
||||
@ -630,7 +630,7 @@ def exec_fillGnuCashDB():
|
||||
filepaths = read_filepaths()
|
||||
if not filepaths:
|
||||
MessageBox('Reading filepaths not successful.\n' +
|
||||
'Please run makro ' + '"' + set_makro + '"', MsgType="errorbox")
|
||||
'Please run macro ' + '"' + set_macro + '"', MsgType="errorbox")
|
||||
return False
|
||||
|
||||
gcfile = filepaths[0]
|
||||
|
Loading…
Reference in New Issue
Block a user