2024-04-20 GnuCash IRC logs
00:12:42 <fell> arahael: https://wiki.gnucash.org/wiki/FAQ#Q:_Is_the_Postgres_DB_.2F_SQL_backend_supported.3F
00:59:09 *** chris has quit IRC
01:46:50 *** chris has joined #gnucash
01:46:51 *** ChanServ sets mode: +v chris
01:46:51 *** gncbot sets mode: +o chris
01:48:03 *** fell has quit IRC
01:49:21 *** fell has joined #gnucash
01:49:21 *** ChanServ sets mode: +o fell
02:06:12 *** nevivurn has joined #gnucash
02:06:13 *** ChanServ sets mode: +v nevivurn
02:07:50 *** gjanssens has joined #gnucash
02:07:50 *** ChanServ sets mode: +o gjanssens
02:15:20 *** chris has quit IRC
04:10:29 *** Kaligula has joined #gnucash
04:10:40 *** ChanServ sets mode: +v Kaligula
05:03:10 <Kaligula> fell [translating source strings]: If I add a full stop to source string (e.g. "Make a copy of the current transaction" → "Make a copy of the current transaction.") do I have to add the full stop also to the `msgid "Make a copy of the current transaction"` in all *.po files?
05:04:10 <Simon> yes
05:04:35 <Simon> it might be possible to get some gettext tool to do it for you without making a mess of it
05:05:27 <Simon> the translations work by looking up the "msgid" and returning the "msgstr" for the language, so the msgid has to match
05:05:28 <Kaligula> I use Notepad++ with regexp for such things.
05:05:34 <Kaligula> thx
05:06:13 <Simon> what you might be able to do is get gettext to update the msgid for you, but it wouldn't update the msgstr so when you're updating those you may as well update the msgid at the same time
05:10:26 <Kaligula> I think it can be accomplished with regexp /msgid "(A string for correction)"\nmsgstr "(.*?)\.?"\n/ → msgid "\1."\nmsgstr "\2."\n
05:29:22 *** chris has joined #gnucash
05:29:22 *** ChanServ sets mode: +v chris
05:29:22 *** gncbot sets mode: +o chris
05:29:41 <chris> warlord: any memory of what qof_choice_check is used for? it's unused...
06:04:59 *** chris has quit IRC
06:41:57 *** AdrienM has quit IRC
06:43:04 *** AdrienM has joined #gnucash
06:43:04 *** ChanServ sets mode: +v AdrienM
06:52:46 *** chris has joined #gnucash
06:52:47 *** ChanServ sets mode: +v chris
06:52:47 *** gncbot sets mode: +o chris
06:54:40 <chris> warlord: qofchoice.cpp could be removed except for the QOF_TYPE_CHOICE in gncAdress.c -- what does that do?
08:20:33 <warlord> Sorry, I honestly don't remember. I wrote that code 20 years ago.
08:20:48 <warlord> I'd have to take a look. Are there no comments about how it is used?
08:28:03 <chris> nopes... only it mimics some cpp class feature
08:30:25 <warlord> If I were to guess, it's a dropdown to allow choosing between specific choices. But honestly I don't recall and would need to see how it is used, or look at the code again.
08:30:46 *** fabior has joined #gnucash
08:31:43 <chris> ok... it's a GHashTable of GHashtable of GList of char*
08:31:54 <chris> nw
08:32:52 *** fabior has quit IRC
09:19:06 *** chris has quit IRC
09:20:13 <warlord> A hash of hash of list of strings?!?
09:20:33 <warlord> Where is it usedd?
09:30:56 *** chris has joined #gnucash
09:30:56 *** ChanServ sets mode: +v chris
09:30:56 *** gncbot sets mode: +o chris
10:03:32 *** chris has quit IRC
10:05:02 *** chris has joined #gnucash
10:05:02 *** ChanServ sets mode: +v chris
10:05:02 *** gncbot sets mode: +o chris
11:07:24 *** Kaligula has quit IRC
11:49:51 *** chris has quit IRC
13:03:52 *** aj has quit IRC
13:06:01 *** aj has joined #gnucash
13:06:01 *** ChanServ sets mode: +v aj
13:14:45 *** AdrienM has quit IRC
13:15:25 *** AdrienM has joined #gnucash
13:15:25 *** ChanServ sets mode: +v AdrienM
13:50:40 *** gjanssens has quit IRC
18:11:09 <jralls> @tell chris QofChoice is thoroughly documented in https://code.gnucash.org/docs/STABLE/group__Choice.html.
18:11:09 <gncbot> jralls: The operation succeeded.
18:18:14 <jralls> @tell chris and while only gncAddress has a QOF_TYPE_CHOICE parameter, qof_choice functions are called in gncAddress, gncCustomer.c, gncInvoice.c, gncJob.c, and gncVendor.c.
18:18:14 <gncbot> jralls: The operation succeeded.
20:00:03 *** raghukamath has quit IRC
20:11:42 *** raghukamath has joined #gnucash
20:11:42 *** ChanServ sets mode: +v raghukamath
22:06:17 *** chris has joined #gnucash
22:06:17 *** ChanServ sets mode: +v chris
22:06:17 *** gncbot sets mode: +o chris
22:21:58 <chris> warlord: yes it's a GHT<char*,GHT<char*,GList*<char*>>>
22:21:58 <gncbot> chris: Sent 4 hours and 10 minutes ago: <jralls> QofChoice is thoroughly documented in https://code.gnucash.org/docs/STABLE/group__Choice.html.
22:21:59 <gncbot> chris: Sent 4 hours and 3 minutes ago: <jralls> and while only gncAddress has a QOF_TYPE_CHOICE parameter, qof_choice functions are called in gncAddress, gncCustomer.c, gncInvoice.c, gncJob.c, and gncVendor.c.
22:22:54 <chris> jralls: yes gncJob etc will populate the GHT but the GHT isn't ever queried. so why populate it?
22:23:32 <chris> unless I missed somewhere in gncAddress.c would query the GHT
22:27:58 <chris> there's no caller for qof_choice_check nor qof_choice_get_choices
22:31:33 <chris> so we could remove it except for gncAddress.c which states ADDRESS_OWNER needs QOF_TYPE_CHOICE