Re: [PATCH] Re: Fancy Invoice

2006-02-07 Thread Derek Atkins

Quoting Brian [EMAIL PROTECTED]:


I've finished making the changes.  I don't think I've missed any of the
important hard coded items in the fancy-invoice.

You may want to clean up a few of the old statements I've commented out
in favour of my changes.  You might also want to check that I have all
the translation markings correct.  I followed the code that was there,
but some of that may be wrong since he states that it might be in his
oli-custom comments.


Thanks..  I'll take a look.   Ideally you should create a bug report
and then (after you submit the report) attach this patch, just in case
I forget about it ;)


I also think these changes could be applied to the 1.8.12 as well since
I started them there quite a while ago.


That wont happen.  The 1.8 source tree is EOL'd -- 1.9.x alpha releases
are imminent to get us on the road to 2.0.  There will be no more 1.8 releases
so applying patches to 1.8 is just a waste of time.


Side note:  the gnc:make-number-range-option also does not render on the
screen the best.  It seems to have a display box slightly shorter than
the number text it is displaying. I had to compensate by making the
minimum display number width wider.


Is this true in SVN?  Or only 1.8?


Brian [EMAIL PROTECTED]


-derek

--
  Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
  Member, MIT Student Information Processing Board  (SIPB)
  URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
  [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [PATCH] Re: Fancy Invoice

2006-02-07 Thread Brian
On Tue, 2006-07-02 at 10:10 -0500, Derek Atkins wrote:
 Quoting Brian [EMAIL PROTECTED]:
 

 That wont happen.  The 1.8 source tree is EOL'd -- 1.9.x alpha releases
 are imminent to get us on the road to 2.0.  There will be no more 1.8 releases
 so applying patches to 1.8 is just a waste of time.
 
I know a release won't happen.  I think since the changes are only in
scheme, simply changing out the 3 files changed will do it.

  Side note:  the gnc:make-number-range-option also does not render on the
  screen the best.  It seems to have a display box slightly shorter than
  the number text it is displaying. I had to compensate by making the
  minimum display number width wider.
 
 Is this true in SVN?  Or only 1.8?
 
 -derek
 
This was an older SVN.  I had not updated and rebuilt it while I was
working on the fancy-invoice.  I have just done an svn update, but not
built and tested it yet.

Checking just now the welcome sample report in both 1.8.12 and svn show
the number of columns option fine without any decimals.  However the
gnc:make-number-range-option I used in the fancy-invoice doesn't. Which
is why I set it for some decimals to show.  I started looking but have
not found how it is done in the welcome sample report.  Too many imports
to look thru.  Looks like I'll have to grep it out.
-- 
Brian [EMAIL PROTECTED]

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


segfault on startup in revision 13138

2006-02-07 Thread Andrew Sackville-West
Here is all the gobbledy-gook. note this crash occurs when running with 
--nofile. similar crash when running --debug and --loglevel=6. I can provide 
backtrace for those if you want. --version, --help, --help-all, --help-gtk all 
work fine.

enjoy

A

[EMAIL PROTECTED]:~$ /opt/gnc2/bin/gnucash-env gdb /opt/gnc2/bin/gnucash-bin
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i486-linux-gnu...Using host libthread_db library 
/lib/tls/libthread_db.so.1.

(gdb) run --nofile
Starting program: /opt/gnc2/bin/gnucash-bin --nofile
[Thread debugging using libthread_db enabled]
[New Thread -1229347136 (LWP 22073)]


This is a development version. It may or may not work.
Report bugs and other problems to [EMAIL PROTECTED]
You can also lookup and file bug reports at http://bugzilla.gnome.org
The last stable version was GnuCash 1.8.12
The next stable version will be GnuCash 2.0


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229347136 (LWP 22073)]
0xb7c36c39 in gnome_program_postinit () from /usr/lib/libgnome-2.so.0
(gdb) bt
#0  0xb7c36c39 in gnome_program_postinit () from /usr/lib/libgnome-2.so.0
#1  0xb7c36d59 in gnome_program_init () from /usr/lib/libgnome-2.so.0
#2  0xb731e0c1 in gnc_gnome_init (argc=3, argv=0x3,
version=0xf Address 0xf out of bounds) at gnc-gnome-utils.c:196
#3  0x0804a434 in main (argc=2, argv=0xbf8bc064) at gnucash-bin.c:501
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[EMAIL PROTECTED]:~$ /opt/gnc2/bin/gnucash --version GnuCash 1.9.0 development 
version
Built 2006-02-06 from r13138


pgppoue7XKnpR.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [Gnucash-changes] r13138 - gnucash/trunk - Fix some issues when invoking from a non-utf8, non latin1 locale. Use

2006-02-07 Thread Chris Shoemaker
On Mon, Feb 06, 2006 at 10:59:18PM -0500, David Hampton wrote:
 Author: hampton
 Date: 2006-02-06 22:59:17 -0500 (Mon, 06 Feb 2006)
 New Revision: 13138
 Trac: http://svn.gnucash.org/trac/changeset/13138
 
 Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/bin/gnucash-bin.c
 Log:
 Fix some issues when invoking from a non-utf8, non latin1 locale.  Use
 g_print to print to the console. Convert from popt to g_options for
 glib = 2.6.
 
 
 Modified: gnucash/trunk/src/bin/gnucash-bin.c
 ===
 --- gnucash/trunk/src/bin/gnucash-bin.c   2006-02-07 01:56:45 UTC (rev 
 13137)
 +++ gnucash/trunk/src/bin/gnucash-bin.c   2006-02-07 03:59:17 UTC (rev 
 13138)
 @@ -204,12 +205,12 @@
 +/* Pretend that argv[0] is gnucash */
 +if ((p = strstr(argv[0], -bin))) *p = '\0';
  
 +context = g_option_context_new ( [datafile]);
 +g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
 +g_option_context_add_group (context, gtk_get_option_group (TRUE));
 +g_option_context_parse (context, argc, argv, error);
 +g_option_context_free (context);
 +
 +if (argc  0)
 +  file_to_load = argv[1];

I think the HAVE_GLIB26 and !HAVE_GLIB26 paths need to behave more
similarly w.r.t. modifying argv.  There are still two argv/argc
parsers that come after this: gnome, and guile.  At the very least,
they need an argc that matches argv.

Gnome just supports a sound option and an option for the crash
dialog. If we wanted to we could disable gnome's option parsing by
just passing 0, NULL.

I don't _think_ guile parses any options on its own, but our guile
code does still parse one stinkin' option: doc-path.  Even though we
read it in popt, we're also letting guile read it, too.  This is
because I haven't figured out a way to extricate that option from
guile yet.  Since it's the last option parsed in guile, whoever
figures it out will have the pleasure of killing command-line.scm and
related code.

I don't see any way of telling GOptionContext to always leave argv
alone.  So it seems that:

a) if we want to allow the gnome options, we have to
set_ignore_unknown_options().

b) If we want to use GOptionContext, we either have to remove doc-path
from the option table and set_ignore_unknown_options() or extricate it
from guile.

c) unless we want to allow only the options parsed by the
GOptionContext, we have to recompute argc.


For now, I'll fixup argc until we decide about a) and b).

-chris
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: segfault on startup in revision 13138

2006-02-07 Thread Chris Shoemaker
On Tue, Feb 07, 2006 at 11:07:54AM -0800, Andrew Sackville-West wrote:
 Here is all the gobbledy-gook. note this crash occurs when running with 
 --nofile. similar crash when running --debug and --loglevel=6. I can provide 
 backtrace for those if you want. --version, --help, --help-all, --help-gtk 
 all work fine.

Fixed in revision 13140.

-chris
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: segfault on startup in revision 13138

2006-02-07 Thread Andrew Sackville-West
On Tue, 7 Feb 2006 11:07:54 -0800
Andrew Sackville-West [EMAIL PROTECTED] wrote:

 Here is all the gobbledy-gook. note this crash occurs when running with 
 --nofile. similar crash when running --debug and --loglevel=6. I can provide 
 backtrace for those if you want. --version, --help, --help-all, --help-gtk 
 all work fine.
 
 enjoy

problem exists in 13139 as well...

A

 
 A
 
 [EMAIL PROTECTED]:~$ /opt/gnc2/bin/gnucash-env gdb /opt/gnc2/bin/gnucash-bin
 GNU gdb 6.4-debian
 Copyright 2005 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as i486-linux-gnu...Using host libthread_db library 
 /lib/tls/libthread_db.so.1.
 
 (gdb) run --nofile
 Starting program: /opt/gnc2/bin/gnucash-bin --nofile
 [Thread debugging using libthread_db enabled]
 [New Thread -1229347136 (LWP 22073)]
 
 
 This is a development version. It may or may not work.
 Report bugs and other problems to [EMAIL PROTECTED]
 You can also lookup and file bug reports at http://bugzilla.gnome.org
 The last stable version was GnuCash 1.8.12
 The next stable version will be GnuCash 2.0
 
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread -1229347136 (LWP 22073)]
 0xb7c36c39 in gnome_program_postinit () from /usr/lib/libgnome-2.so.0
 (gdb) bt
 #0  0xb7c36c39 in gnome_program_postinit () from /usr/lib/libgnome-2.so.0
 #1  0xb7c36d59 in gnome_program_init () from /usr/lib/libgnome-2.so.0
 #2  0xb731e0c1 in gnc_gnome_init (argc=3, argv=0x3,
 version=0xf Address 0xf out of bounds) at gnc-gnome-utils.c:196
 #3  0x0804a434 in main (argc=2, argv=0xbf8bc064) at gnucash-bin.c:501
 (gdb) quit
 The program is running.  Exit anyway? (y or n) y
 [EMAIL PROTECTED]:~$ /opt/gnc2/bin/gnucash --version GnuCash 1.9.0 
 development version
 Built 2006-02-06 from r13138
 


pgpjz2LGbWjjf.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Updated Norwegian Bokmaal Translation.

2006-02-07 Thread Christian Stimming
Hi,

thanks for this file. Applied to SVN.

Am Montag, 6. Februar 2006 12:55 schrieb Tor Harald Thorland:
 Could you please try to merge it with a new POT file... When I try to do
 it, I'll get an error on the newly created file.

I merged it with my most recent POT file and I didn't get any errors. I 
committed the merged file to SVN.

 [EMAIL PROTECTED]:~/source/gnucash/po$ msgfmt -c --statistics tht.po
 tht.po:19316: duplicate message definition
 tht.po:3618: ...this is the location of the first definition
 msgfmt: found 1 fatal error
 [EMAIL PROTECTED]:~/source/gnucash/po$


 Thank You!
 Tor Harald
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [Gnucash-changes] r13143 - gnucash/trunk/src/business/business-reports - String cleanup: Remove formatting from translations

2006-02-07 Thread Derek Atkins

Quoting Christian Stimming [EMAIL PROTECTED]:


-(title (string-append (_ type-str) (_  Report)))
+(title (string-append (_ type-str)   (_ Report)))


This makes sense, but

-   (string-append (_ type-str ) (_  Report: ) 
(gnc:owner-get-name owner)))
+   (string-append (_ type-str )   (_ Report:)   
(gnc:owner-get-name owner)))


Any reason not to make this:

   (string-append (_ type-str)   (_ Report) :  ...)

Or do we really need Report and Report: as two separate translatable
strings?

-derek

--
  Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
  Member, MIT Student Information Processing Board  (SIPB)
  URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
  [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [Gnucash-changes] r13140 - gnucash/trunk/src/bin - Recompute argc after argv may have changed.

2006-02-07 Thread Andrew Sackville-West
On Tue, 07 Feb 2006 15:03:34 -0500
David Hampton [EMAIL PROTECTED] wrote:

 On Tue, 2006-02-07 at 14:52 -0500, Chris Shoemaker wrote:
  Author: chris
  Date: 2006-02-07 14:52:29 -0500 (Tue, 07 Feb 2006)
  New Revision: 13140
  Trac: http://svn.gnucash.org/trac/changeset/13140
  
  Modified:
 gnucash/trunk/src/bin/gnucash-bin.c
  Log:
 Recompute argc after argv may have changed.
 
 g_option_context already updates argc. Any reason you didn't just pass a
 pointer to argc into gnucash_command_line instead of recomputing the
 value a second time?

help me understand this, if you would: 

popt doesn't change argc or argv, but g_option_context does and the change 
wasn't coming back to main() right? So Chris just down and dirty reset argc so 
that it was in sync with argv. am I unserstanding this correctly?

A

 
 David
  
 
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel


pgpM70vLJPTgj.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [Gnucash-changes] r13143 - gnucash/trunk/src/business/business-reports - String cleanup: Remove formatting from translations

2006-02-07 Thread Christian Stimming
Am Dienstag, 7. Februar 2006 22:13 schrieb Derek Atkins:
  -   (string-append (_ type-str ) (_  Report: )
  (gnc:owner-get-name owner)))
  +   (string-append (_ type-str )   (_ Report:)  
  (gnc:owner-get-name owner)))

 Any reason not to make this:

 (string-append (_ type-str)   (_ Report) :  ...)

Of course. Can be changed right away.

 Or do we really need Report and Report: as two separate translatable
 strings?

No, we don't (although that string already existed from somewhere else). Can 
be changed immediately.

Christian
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Help running Gnucash in my language

2006-02-07 Thread Tor Harald Thorland

Hi,

Unlike last time i'm now running english language on my install...
When i try to issue the following command i'll get an error and gnucash 
is still in english..


What am I missing here?

[EMAIL PROTECTED]:~$ LANG=no_NB.UTF-8 /opt/gnucash-1.9/bin/gnucash


This is a development version. It may or may not work.
Report bugs and other problems to [EMAIL PROTECTED]
You can also lookup and file bug reports at http://bugzilla.gnome.org
The last stable version was GnuCash 1.8.12
The next stable version will be GnuCash 2.0


(gnucash:6093): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.

(gnucash:6093): Gdk-WARNING **: locale not supported by C library
[EMAIL PROTECTED]:~$

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Help running Gnucash in my language

2006-02-07 Thread Neil Williams
On Tuesday 07 February 2006 10:18 pm, Tor Harald Thorland wrote:
 Hi,

 Unlike last time i'm now running english language on my install...
 When i try to issue the following command i'll get an error and gnucash
 is still in english..

 What am I missing here?

 [EMAIL PROTECTED]:~$ LANG=no_NB.UTF-8 /opt/gnucash-1.9/bin/gnucash

1. There is no no_NB.po in svn. I think you meant nb.po, so you'd use nb

r13141 
Modified:
   gnucash/trunk/po/nb.po
Log:
Update Norwegian translation by Tor Harald Thorland

2. You need to export LANG before it becomes available:

$ export LANG=nb
$ /opt/path/gnucash/bin/gnucash

The unsupported warning simply means that there is no translation for the 
language you specified.

-- 

Neil Williams
=
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/



pgpx5Yo2ajDND.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Help running Gnucash in my language

2006-02-07 Thread Tor Harald Thorland

Neil Williams wrote:

On Tuesday 07 February 2006 10:18 pm, Tor Harald Thorland wrote:
  

Hi,

Unlike last time i'm now running english language on my install...
When i try to issue the following command i'll get an error and gnucash
is still in english..

What am I missing here?

[EMAIL PROTECTED]:~$ LANG=no_NB.UTF-8 /opt/gnucash-1.9/bin/gnucash



1. There is no no_NB.po in svn. I think you meant nb.po, so you'd use nb

r13141 
Modified:

   gnucash/trunk/po/nb.po
Log:
Update Norwegian translation by Tor Harald Thorland

2. You need to export LANG before it becomes available:

$ export LANG=nb
$ /opt/path/gnucash/bin/gnucash

The unsupported warning simply means that there is no translation for the 
language you specified.


  

Can you then explain this one :-)

[EMAIL PROTECTED]:~$ export LANG=nb
[EMAIL PROTECTED]:~$ /opt/gnucash-1.9/bin/gnucash


This is a development version. It may or may not work.
Report bugs and other problems to [EMAIL PROTECTED]
You can also lookup and file bug reports at http://bugzilla.gnome.org
The last stable version was GnuCash 1.8.12
The next stable version will be GnuCash 2.0


(gnucash:5311): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.

(gnucash:5311): Gdk-WARNING **: locale not supported by C library
[EMAIL PROTECTED]:~$


I have now tried with no, nb, no_NB, no_NO since I saw this command in 
another mail: LANG=de_DE.UTF-8 gnucash, And the gnucash translator wiki 
has this text:


Now you can run gnucash with your ned translations:

LANG= /opt/gnucash-svn/bin/gnucash


I tryed to restart my system with norwegian as default, and everything 
worked. Now back on english again, fails.


THT
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Help running Gnucash in my language

2006-02-07 Thread Derek Atkins

Quoting Tor Harald Thorland [EMAIL PROTECTED]:


LANG= /opt/gnucash-svn/bin/gnucash


I tryed to restart my system with norwegian as default, and 
everything worked. Now back on english again, fails.


It's possible that LANG isn't the appropriate environment variable
for your system.  Unfortunately it's not a completely standardized
API.  You might need to set LANGUAGE..  Or maybe even something else
depending on what system/OS/Distro you are running.


THT


-derek

--
  Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
  Member, MIT Student Information Processing Board  (SIPB)
  URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
  [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Help running Gnucash in my language

2006-02-07 Thread Tor Harald Thorland

Derek Atkins wrote:

Quoting Tor Harald Thorland [EMAIL PROTECTED]:


LANG= /opt/gnucash-svn/bin/gnucash


I tryed to restart my system with norwegian as default, and 
everything worked. Now back on english again, fails.


It's possible that LANG isn't the appropriate environment variable
for your system.  Unfortunately it's not a completely standardized
API.  You might need to set LANGUAGE..  Or maybe even something else
depending on what system/OS/Distro you are running.


THT


-derek

Thanks a lot!! worked right away with LANGUAGE=nb 
/opt/gnucash-1.9/bin/gnucash


And no need to export first.
This is on Ubuntu 6.04 Flight 3.

THT
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: problems with g2

2006-02-07 Thread Mark Johnson




David Hampton wrote:

  On Mon, 2006-02-06 at 19:34 -0700, Mark Johnson wrote:
  
  
This time I got Rev 13130.

By my count, I see four errors reported in my first e-mail.

First, I am still getting the dialog about gnucash not being set up 
("Cannot find default values").  This dialog appears EVERY time I start 
gnucash.  I have now submitted this as bug #330203.  I was a little 
surprised not to find this in bugzilla as I thought I had seen it 
mentioned on the list a time or two.

  
  
This should have been fixed by r13104.  Please remove your ~/.gconf.path
file and try again.

David

  

No, it's still happening. I am using rev 13130.

Here is the contents of my .gconf.path file after two runs:

 The following lines were added by Gnucash. 
xml:readwrite:$(HOME)/.gconf
xml:readonly:/opt/gnucash-svn13130/etc/gconf/gconf.xml.defaults
## End of lines added by Gnucash. ##

 The following lines were added by Gnucash. 
xml:readonly:/opt/gnucash-svn13130/etc/gconf/gconf.xml.defaults
## End of lines added by Gnucash. ##


Mark



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel