2022-03-10 GnuCash IRC logs

00:16:33 <fell> jralls: msgmerge while commits are pending on weblate is no good idea. Now they have conflicts.
00:51:20 <fell> Were many conflicts to resolve?
01:01:52 *** David has quit IRC
01:02:12 *** aj has quit IRC
01:02:15 *** oztunan has quit IRC
01:02:17 *** oztunan has joined #gnucash
01:02:18 *** ChanServ sets mode: +v oztunan
01:02:35 *** David has joined #gnucash
01:02:58 *** aj has joined #gnucash
01:02:58 *** ChanServ sets mode: +v aj
01:04:25 *** paul has quit IRC
01:18:02 *** sbluhm has joined #gnucash
01:18:27 *** aj has quit IRC
01:18:59 *** aj has joined #gnucash
01:18:59 *** ChanServ sets mode: +v aj
01:19:06 *** David has quit IRC
01:19:18 *** David has joined #gnucash
01:20:44 *** fell has quit IRC
01:22:02 *** fell has joined #gnucash
01:22:02 *** ChanServ sets mode: +o fell
01:28:10 *** tj123 has quit IRC
01:28:27 *** tj123 has joined #gnucash
01:43:02 *** frakturfreak1 has quit IRC
01:57:10 *** frakturfreak1 has joined #gnucash
01:57:35 *** tj123 has quit IRC
01:58:07 *** tj123 has joined #gnucash
02:00:38 *** David has quit IRC
02:00:48 *** David has joined #gnucash
02:23:03 *** tomk_dk has joined #gnucash
02:32:05 *** tomk_dk has quit IRC
02:32:38 *** tomk_dk has joined #gnucash
02:50:30 *** tomk_dk has quit IRC
02:50:33 *** tomk_dk has joined #gnucash
02:53:34 *** tomk_dk has quit IRC
02:55:06 *** tomk_dk has joined #gnucash
03:07:47 *** gjanssens has joined #gnucash
03:07:47 *** ChanServ sets mode: +o gjanssens
03:25:08 *** tomk_dk has quit IRC
03:39:30 *** tomk_dk has joined #gnucash
03:44:48 *** tomk_dk has quit IRC
03:44:51 *** tomk_dk has joined #gnucash
03:49:21 *** tomk_dk has quit IRC
04:03:47 *** David has quit IRC
04:04:22 *** David has joined #gnucash
04:09:26 *** tomk_dk has joined #gnucash
04:16:52 *** tj123 has quit IRC
04:17:00 *** tj123 has joined #gnucash
04:36:19 *** tomk_dk has quit IRC
04:45:08 *** tomk_dk has joined #gnucash
05:33:40 *** tj123 has quit IRC
05:34:00 *** tj123 has joined #gnucash
05:40:26 <chris> fell: I keep trying to get C_ to work -- I do not think it actually works in code, have you seen evidence that the translation in .po is used?
05:41:21 *** tomk_dk has joined #gnucash
05:41:55 <chris> ok it works in .scm
05:44:47 <fell> Chris, run 'ninja pot' to check that it arrives in $BUILDDIR/po/gnucash.pot
05:44:58 <chris> but can't find an example in *.c real UI showing C_ actually works
05:47:56 <chris> ok i found one
05:53:21 *** chrko has quit IRC
05:55:04 <fell> In C the macros are of the form <underline><letter>*
05:55:42 *** chrko has joined #gnucash
05:55:42 *** ChanServ sets mode: +v chrko
05:55:57 <fell> Oh, no
05:57:21 <fell> Chris: https://wiki.gnucash.org/wiki/I18N#Strings_in_C_files
06:03:03 *** Hamaryns has joined #gnucash
06:03:03 *** ChanServ sets mode: +v Hamaryns
06:04:14 *** Hamaryns has quit IRC
06:04:17 *** Hamaryns has joined #gnucash
06:04:17 *** ChanServ sets mode: +v Hamaryns
06:20:40 *** User has joined #gnucash
06:51:01 *** Hamaryns has quit IRC
07:10:27 *** rando25892 has quit IRC
07:20:30 *** rando25892 has joined #gnucash
07:37:05 *** tj123 has quit IRC
07:37:42 *** tj123 has joined #gnucash
08:05:30 <chris> fell: in #818 I've added two commits which seems to indicate a problem translating strings with context.
08:06:05 <chris> note I'm using a custom pgettext function because all other experiments fail to trigger any translation at all
08:18:43 <chris> ^ jralls as well
08:24:53 *** paul has joined #gnucash
08:54:54 *** Jimraehl1 has joined #gnucash
08:57:05 *** Jimraehl1 has left #gnucash
09:09:47 *** sbluhm has quit IRC
09:24:53 *** chris has quit IRC
09:34:54 *** tomk_dk1 has joined #gnucash
09:35:49 *** tomk_dk has quit IRC
09:35:49 *** tomk_dk1 is now known as tomk_dk
10:10:02 *** tomk_dk has quit IRC
10:46:14 *** ZedThou_ has joined #gnucash
10:50:50 *** ZedThou_ has quit IRC
10:50:53 *** sbluhm has joined #gnucash
11:07:37 *** guak has joined #gnucash
11:14:21 *** tj123 has quit IRC
11:14:27 *** tj123 has joined #gnucash
11:45:37 *** sbluhm has quit IRC
12:00:56 *** mauritslamers_ has quit IRC
12:03:10 *** mauritslamers has joined #gnucash
12:03:10 *** ChanServ sets mode: +v mauritslamers
12:16:15 *** chris has joined #gnucash
12:16:15 *** ChanServ sets mode: +v chris
12:16:15 *** gncbot sets mode: +o chris
12:26:31 *** sbluhm has joined #gnucash
12:43:36 *** tj123 has quit IRC
13:05:31 *** sbluhm has quit IRC
13:48:19 *** sbluhm has joined #gnucash
13:53:41 *** guak has quit IRC
13:54:37 *** guak has joined #gnucash
13:59:25 *** guak has quit IRC
14:00:48 *** guak has joined #gnucash
14:05:13 <jralls> fell, Yeah, I remembered that as soon as I saw the weblate notification. It wasn't too awful, only Slovak had a lot of conflicts. I'll hold off on any more gnucash.pot merges until string freeze is in place.
15:47:56 *** field^Mop has joined #gnucash
15:58:51 *** sbluhm has quit IRC
16:25:39 *** gjanssens has quit IRC
16:27:58 *** field^Mop has quit IRC
16:57:57 *** rando25892 has quit IRC
17:38:59 *** User has quit IRC
17:49:42 <chris> jralls: #1274 merged into maint? The discussion mentioned merge into master.
17:53:27 <jralls> chris, I could go either way. It's not that much code nor is it that big of a feature.
17:54:19 <jralls> Do you anticipate a bunch of conflicts with later maint merges if it goes into master?
17:54:24 <chris> not at all
17:55:35 <chris> I'd put into maint for simplicity myself
17:56:06 <jralls> OK, then put it in maint.
18:26:57 <chris> jralls: thanks for the pgettext clue! O_o
18:27:32 <chris> maybe I'll move pgettext to gnc-locale-utils.c as gnc_pgettext
18:31:49 *** storyjesse has quit IRC
18:49:08 <jralls> chris, please don't use the GLib context-gettext functions. They're an ancient hack that predates gettext's having that capability and rely on a weird formulation in the po file. While xgettext can create that formulation it's considered obsolete and deprecated.
18:50:54 <chris> you mean the | separator. \004 didn't seem to work though.
18:51:44 <jralls> Both. The correct formulation is a context line above the msgid line.
18:53:25 <chris> so best call gettext directly?
18:54:24 <jralls> Yes, or via boost::locale::gnuc_gettext in a C++ file.
18:54:45 <jralls> s/gnuc_gettext/gnu_gettext/
18:56:04 <jralls> (Did you use g_dpgettext2 when you tried the '\004' separator?)
19:12:08 *** storyjesse has joined #gnucash
19:21:41 <chris> I might have
19:56:32 <chris> oh magic, with g_dpgettext2 it works well
19:59:08 <chris> it must have been the #,fuzzy all along
20:02:23 <chris> I think #818 finally i18n-ready
20:02:47 <chris> if it's mergeable I'll fixup and rebase
20:05:28 <chris> so is g_dpgettext2 the best one to use? it's still glib
20:06:35 <chris> oh regarding your earlier comment, the "%s|%s" hack was not contingent on having "context|msgid" in .po file; it would still interpret msgctxt and msgid the "modern" way
20:06:48 <chris> anyway g_dpgettext2 works well
20:12:47 <chris> I'd still add a "Translators:" comment which copies directly from the char* explanation
21:51:02 *** tonysoar has joined #gnucash
22:42:30 *** paul has quit IRC
23:37:38 *** guak has quit IRC