2009-10-14 GnuCash IRC logs

00:43:58 <jsled> AlonzoTG: your assertions about gtk and gentoo are unique and your own.
02:42:42 *** kling0n has joined #gnucash
02:46:05 *** kling0n has quit IRC
02:52:24 *** bentob0x has joined #gnucash
03:55:44 *** bentob0x has quit IRC
03:55:49 *** Michael2 has joined #gnucash
03:58:01 *** todd has quit IRC
03:58:14 *** muczy has quit IRC
03:58:18 *** talso has quit IRC
03:58:22 *** talso has joined #gnucash
03:58:55 *** muczy has joined #gnucash
03:59:59 *** bentob0x has joined #gnucash
04:01:19 *** todd has joined #gnucash
04:01:23 *** sandeen has quit IRC
04:02:22 *** donfede has quit IRC
04:02:43 *** warlord-afk has quit IRC
04:04:55 *** Michael1 has quit IRC
04:14:59 *** donfede has joined #gnucash
04:21:36 *** LiENUS has quit IRC
04:29:25 *** LiENUS has joined #gnucash
06:18:04 *** Michael2 has quit IRC
07:03:02 *** bentob0x has quit IRC
07:24:29 *** twunder has joined #gnucash
07:50:56 *** Jimraehl has left #gnucash
08:02:56 *** JimRaehl2 has joined #gnucash
08:04:33 *** JimRaehl2 has left #gnucash
08:05:31 *** JimRaehl2 has joined #gnucash
09:38:50 *** fell has joined #gnucash
09:53:28 *** warlord has joined #gnucash
09:53:28 *** gncbot sets mode: +o warlord
09:55:39 <fell> Hi, warlord!
09:56:02 <warlord> good morning
09:56:12 <fell> The translations on our website are all broken.
09:56:53 <fell> de, fr are in old encoding, others are linked to en.
09:57:24 <warlord> linas runs the website. I dont know what (if anything) he changed recently.
09:57:36 <fell> jsled did some work to change them to UTF, but most seems vanished.
09:58:03 <warlord> No, that's not what he did. He did work to make the website claim ISO instead of UTF
09:58:09 <linas> I haven't change a thing ...
09:58:12 <warlord> I suspect that was lost recently.
09:58:55 <warlord> linas, wasn't sure if you recently got new hardware for the server.
10:01:48 <fell> who hosts repo\htdocs?
10:01:59 <linas> well, the french web pages are in iso format, but are served as utf8
10:02:31 <linas> same deal for the german pages
10:03:06 <warlord> That's what I thought was going on.
10:03:22 <warlord> Well, we should either change everything outright to UTF8, or serve them as ISO.
10:03:30 <warlord> I dont know the "right" way..
10:05:30 <linas> the correct long term solution is to convert all pages to utf-8
10:05:53 <fell> http://svn.gnucash.org/trac/browser/htdocs/trunk?order=date&desc=1 show as last jsled set UTF8 override.
10:06:13 <linas> now, someone (jsled?) asked me to make utf-8 the default for all served pages. I don't know why
10:06:23 <linas> clearly, that default breaks the de/fr pages
10:06:48 <linas> why did he do that?
10:07:17 <fell> and the next oldest is 3 years ago in the middle of his work eg. in nl.
10:07:56 <fell> when he changed everything to utf8.
10:08:42 <linas> where do you see this?
10:08:56 <linas> he set utf8 for the docs directory, but that's not where fr/de reside
10:10:30 <fell> http://svn.gnucash.org/trac/browser/htdocs/trunk/nl
10:11:41 <linas> the server declares utf8 by default, individual pages have to over-ride to iso ...
10:12:56 <linas> Sigh. aren't there some simple tools to convert iso to utf? Can't someone with web-site access run them?
10:13:06 <warlord> The docs are UTF8, but htdocs/lang is still iso
10:13:21 <warlord> We'd just need to convert the .po files.
10:14:01 <warlord> I dont know enough about po tools to know how to do that.
10:14:11 * warlord wishes cstim were here.
10:14:45 *** feisar has joined #gnucash
10:15:26 *** gxxse has joined #gnucash
10:17:08 <jsled> I did that because UTF-8 is the only sane encoding.
10:17:47 <fell> if svn.gnucash.org/repo/htdocs is the source for the server, it looks for me as if the current repo is missing some changes after 14186.
10:18:47 <linas> warlord, not talking about any .po files
10:19:07 <linas> just the plain-old html web pages under de/fr
10:19:24 <linas> those web pages are in iso, but are served as utf8
10:19:40 <jsled> iconv can be used to convert the encoding.
10:20:11 <warlord> linas, there are no "plain old html web pages under de/fr" It's all phtml. All the translation is done in PHP using gettext() from the PO files.
10:20:42 <warlord> If you look at the raw directory, de/* are symlinks to ../*
10:21:25 <linas> well, I see pages like features_5.phtml, roadmap.phtml required.phtml etc. which are all clearly in iso, and there's no po anywhere near them
10:21:44 <fell> the po files are plain text, iconv should work on them.
10:22:45 <warlord> those files aren't in SVN. No idea where those are from.
10:23:04 <warlord> * updates from svn just to be sure *
10:23:24 <linas> well, they're owned by svn-mirror, and they all have the same timestamp as everything else in the directory
10:24:10 <linas> I dunno, maybe they are dead pages.
10:24:24 <linas> clearly, they're still there ...
10:24:38 <warlord> run 'svn st' over your htdocs checkout?
10:25:00 <warlord> I just ran a svn update on my checkout and I see no pages like that.
10:26:34 <gxxse> The gnucash help section "Creating Reports and Graphs" needs updating and I want to create a report. Although I am a developer I know nothing of Scheme nor the gnucash source code. Would it be a helpful for me to attempt to create a custom report and document my process?
10:27:09 <warlord> gxxse: sure! (but you'll need to learn scheme). You've also got the Wiki page (Custom Reports?)
10:27:39 <gxxse> I can learn scheme, np. I'll look for the wiki page now, it is still valid for 2.3, right?
10:28:40 <warlord> Yes
10:31:37 <gxxse> warlord: Right-on, looks like a great place to start, thanks
10:31:47 <warlord> You're welcome.
10:46:00 *** AlonzoTG has quit IRC
10:49:20 <muczy> hi
10:49:44 <muczy> how can i get the full date (year, month, day) of a split via the scheme api?
10:50:58 <muczy> or: how can i convert the result of xaccTransGetDate to year, month, day?
11:01:14 <warlord> muczy: why do you want to do that?
11:01:33 <warlord> the date is just a standard timespec.
11:02:01 <muczy> warlord: you know my csv export script...
11:02:14 <warlord> And you can't just print it out?
11:02:20 <muczy> i have to get the date of a split
11:02:32 <warlord> Splits have no dates. Txns have dates.
11:02:48 <muczy> oh yes, split <> txs...
11:02:49 <muczy> so
11:03:02 <muczy> how can I print out the date of a tx?
11:03:03 <warlord> But the report infrastructure will just print it out.
11:03:47 <muczy> report infrastucture?
11:04:00 <muczy> transaction.scm prints it out somehow
11:04:04 <warlord> gnc-print-date
11:04:43 <warlord> E.g., from invoice.scm:
11:04:43 <warlord> (if (date-col column-vector)
11:04:43 <warlord> (addto! row-contents
11:04:43 <warlord> (gnc-print-date (gncEntryGetDate entry))))
11:05:26 <muczy> (display (gnc-print-date (xaccTransGetDate(xaccSplitGetParent split)))) produces: 1970-01-01
11:10:13 <warlord> Are you sure the txn has a valid date?
11:11:01 <muczy> transaction.scm says: 2009-10-14
11:11:10 <muczy> so i think: yes
11:12:50 <warlord> Oh, that's because xaccTransGetDate() returns a time_t, but gnc-print-date expects a Timespec. You need to use xaccTransRetDatePostedTS()
11:13:28 <warlord> (typed data is important, but it's lost in scheme)
11:14:46 <muczy> ah
11:14:51 <muczy> warlord: thanks
11:15:00 <muczy> btw are you a developer?
11:15:15 <warlord> I was.
11:15:28 <warlord> (well, I was a gnucash dev.. don't have much time nowadays)
11:15:54 <muczy> i see
11:16:10 <muczy> however you seem to know gnucash well
11:16:41 <warlord> I just know where to look for answers. (and I've been programming for almost 30 years)
11:17:01 <warlord> ... which is a lot considering I'm not yet 40
11:17:07 <muczy> ah
11:17:08 <muczy> nice
11:17:14 <muczy> "know where to look for answers"
11:17:22 <muczy> can you share this information with me?
11:17:29 <warlord> src/engine/*.h
11:18:10 <warlord> and in this case, src/business/business-core/gncEntry.h to compae gncEntryGetDate() with the txn get date fuctions.
11:19:45 <muczy> nice
11:19:47 <muczy> thanks
11:19:56 <warlord> you're welcome
11:21:00 <fell> BTW can I use xaccAccountGetCurrency in .scm?
11:21:28 <fell> thenI could fix 1/2 bugs ...
11:30:12 <warlord> fell: I dont see why not..
11:31:18 *** bentob0x has joined #gnucash
11:31:36 <fell> warlord: thx
12:50:09 *** nugget has joined #gnucash
13:01:14 *** nugget has left #gnucash
13:02:01 *** nugget has joined #gnucash
14:02:50 *** cortana has joined #gnucash
14:23:54 *** sjc has joined #gnucash
14:30:39 *** warlord has quit IRC
14:37:11 *** warlord has joined #gnucash
14:37:12 *** gncbot sets mode: +o warlord
14:46:46 *** feisar has quit IRC
16:16:42 *** XiXaQ has quit IRC
16:28:22 *** Igotaquestionn has joined #gnucash
16:29:43 *** kling0n has joined #gnucash
16:55:02 *** nugget has quit IRC
17:05:35 *** XiXaQ has joined #gnucash
17:12:21 *** warlord is now known as warlord-afk
18:20:48 *** tyabux has joined #gnucash
18:28:32 *** XiXaQ has quit IRC
18:46:23 *** kling0n has quit IRC
19:24:08 *** bentob0x has quit IRC
19:30:06 *** cortana has quit IRC
21:19:49 *** sjc has quit IRC
21:26:57 <fell> htdocs seems totally broken in nb.po the oldest r14231 has only the section "Search tips" translated, but i beleave, I have seen a full translated page.
21:45:01 <fell> in es.po r14234 translation starts also with "Consulta", similar nl.po and pt.po. looks like a wrong msgmerge long ago.
21:48:48 <fell> de, fr ant it.po's are in utf8, but the presentation is somewhat weird.
21:51:58 <fell> Question 1: has somebody really old .po files which one could iconv and msgmerge to get current?
22:02:17 *** warlord-afk is now known as warlord
22:02:43 <warlord> fell: Its possible that the website has changed and therefore the po files are no longer up to date.
22:03:54 <fell> I were looking in gnucash.org ... svn
22:04:09 *** JimRaehl2 has left #gnucash
22:04:28 *** Jimraehl has joined #gnucash
22:05:38 <warlord> right.
22:05:51 <warlord> You can look in the history...
22:06:19 <warlord> I doubt we lost data.. more likely the raw text changed causing the translations to fall out.
22:06:42 <fell> I started from trac/browser and changed the to revlog
22:07:08 <fell> and the oldest entries there are 3 years old.
22:07:22 <fell> ... about htdocs.
22:10:12 <warlord> Yeah.. not sure about it.
22:11:01 <fell> e.g. http://svn.gnucash.org/trac/log/htdocs/trunk/po/nb.po
22:11:30 <fell> the file has no creation date ...
22:11:37 <warlord> at one point i was going to disable the missing languages
22:12:39 <warlord> what do you mean?
22:12:47 <warlord> I see:
22:12:48 <warlord> "POT-Creation-Date: 2006-11-01 17:50-0500\n"
22:12:48 <warlord> "PO-Revision-Date: 2006-05-28 20:21-0400\n"
22:13:04 <warlord> But it's pretty empty.
22:13:05 <fell> in the rev log
22:13:45 <fell> and I believe once ago I saw a page in norsk bokmal
22:15:48 <fell> You might think 3 Mio. Norwegian are not so important, but with the spanish page it is the same.
22:15:51 <warlord> Well, the file was created 2006-05-28
22:16:24 <warlord> note that a number of the .po files started from the Namazu translations, and we never actually had our pages translated.
22:16:33 <warlord> c.f. r14231
22:19:12 <fell> wait, when I made de.po, I switched over all languages and they were closely full translated.
22:21:03 <fell> 2007-02-25 I sent the po to cstim.
22:21:41 <warlord> It's POSSIBLE that the svn move last season lost data... Unlikely, but possible.
22:37:49 <fell> OK, 2006-05-28 relates to Christians ask for support after your server change.
22:39:18 *** delaman has joined #gnucash
22:39:21 <warlord> the svn migration happened within the last year
22:40:26 <warlord> (when the svn server migrated)
22:41:08 <warlord> The server was installed 2009-01-28; the migration happened after that.
22:42:51 <warlord> Migration happened 2009-03-29
22:45:22 <fell> Hm, assuming the history of de.po is complete, the last string change was 2007-07-26: Windows
22:46:19 <warlord> yeah, the websites haven't changed much in a few years, i dont think
22:49:09 <fell> critical operations, I see, are jsleds iconv and your msgmerges
22:50:21 <warlord> i would believe that
22:52:11 <fell> but the files in question seems to be broken before 2006-05-28
22:53:18 <warlord> well, nb.po was only created then..
22:53:21 <warlord> AFAICT
22:54:15 <fell> at least here in svn.gnucash, probably was www.gnucash showing older pages.
22:54:38 <warlord> should all be the same...
22:55:14 *** nimrod has joined #gnucash
22:56:03 *** nimrod has left #gnucash
22:58:08 <fell> Ok, I #m giving up, I must have seen a Fata Morgana. ;-)
22:59:22 *** Michael1 has joined #gnucash
22:59:26 <warlord> we should fix the translations that exist...
22:59:44 <fell> But then remains the question, why the utf encoded pos are wrong presentated.
22:59:58 <warlord> also we might have had real tranlations prior to the php migration
23:00:57 <warlord> umm.. dont know
23:02:07 *** mmadia has joined #gnucash
23:02:28 * fell is just looking for the source text of the called page
23:04:32 <fell> hm, I think , the header should have some encoding tag.
23:06:39 <warlord> jsled would disagree and say that httpd should say the right thing
23:08:19 <fell> In theory yes, but ... (I can not find my selfhtml book)
23:11:47 <fell> Strange, if I tell my browser use ISO-8859-1, the page looks fine.
23:14:40 <warlord> right... http says its utf8 but the data is iso
23:15:29 <fell> Does php some where a conversion?
23:15:47 <warlord> shouldnt
23:17:43 <fell> some php or http.conf which sets some default?
23:27:20 <warlord> maybe... it's definitely odd. the .po file IS utf8.
23:29:36 <fell> I know.
23:41:39 <fell> I'm not shure, but have a look at htdocs/trunk/accept-to-gettext.inc , RFC2616
23:53:04 <warlord> hmm..