mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -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)
|
# 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
|
# Set or change the filepaths of the (GnuCash) data source
|
||||||
# and of the new OpenOffice.org database that will be created
|
# 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
|
# Download data from the GnuCash data source to OpenOffice.org
|
||||||
# Base
|
# Base
|
||||||
#
|
#
|
||||||
@ -35,7 +35,7 @@
|
|||||||
#
|
#
|
||||||
#**********************************************************************
|
#**********************************************************************
|
||||||
# Acknowledgements: Special thanks go to the authors on OpenOffice.org
|
# 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)
|
# Andrew Pitonyak (http://www.pitonyak.org)
|
||||||
#**********************************************************************
|
#**********************************************************************
|
||||||
# Changes
|
# Changes
|
||||||
@ -85,8 +85,8 @@ PathSettings = smgr.createInstanceWithContext(
|
|||||||
# ************************** PROLOG ***************************************
|
# ************************** PROLOG ***************************************
|
||||||
from com.sun.star.ui.dialogs.TemplateDescription import FILEOPEN_SIMPLE, FILESAVE_AUTOEXTENSION
|
from com.sun.star.ui.dialogs.TemplateDescription import FILEOPEN_SIMPLE, FILESAVE_AUTOEXTENSION
|
||||||
lcodec = locale.getdefaultlocale()[1]
|
lcodec = locale.getdefaultlocale()[1]
|
||||||
set_makro = "SetGnuCashFilePaths"
|
set_macro = "SetGnuCashFilePaths"
|
||||||
settings_textentrance = "#This file was generated by OpenOfficeMakro: "
|
settings_textentrance = "#This file was generated by OpenOfficeMacro: "
|
||||||
settings_textinp = "GnuCashDatafile: "
|
settings_textinp = "GnuCashDatafile: "
|
||||||
settings_textoutp = "Registered Database in Openoffice.org: "
|
settings_textoutp = "Registered Database in Openoffice.org: "
|
||||||
# Trace / Error - Information
|
# Trace / Error - Information
|
||||||
@ -178,7 +178,7 @@ def exec_SetGnuCashFilePaths():
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
settings = open(settings_filepath(), 'w')
|
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(entrance_line)
|
||||||
settings.write(settings_textinp)
|
settings.write(settings_textinp)
|
||||||
settings.write(GCFile.encode(lcodec) + '\n')
|
settings.write(GCFile.encode(lcodec) + '\n')
|
||||||
@ -194,7 +194,7 @@ def exec_SetGnuCashFilePaths():
|
|||||||
settings.close()
|
settings.close()
|
||||||
|
|
||||||
MessageBox('A new Openoffice.org database has been created.\n' +
|
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")
|
MsgType="infobox")
|
||||||
|
|
||||||
def read_filepaths():
|
def read_filepaths():
|
||||||
@ -630,7 +630,7 @@ def exec_fillGnuCashDB():
|
|||||||
filepaths = read_filepaths()
|
filepaths = read_filepaths()
|
||||||
if not filepaths:
|
if not filepaths:
|
||||||
MessageBox('Reading filepaths not successful.\n' +
|
MessageBox('Reading filepaths not successful.\n' +
|
||||||
'Please run makro ' + '"' + set_makro + '"', MsgType="errorbox")
|
'Please run macro ' + '"' + set_macro + '"', MsgType="errorbox")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
gcfile = filepaths[0]
|
gcfile = filepaths[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user