2013-10-22 GnuCash IRC logs

01:02:53 *** fell_ has quit IRC
01:32:33 *** aqua___ has joined #gnucash
02:01:31 *** aqua___ has quit IRC
02:20:33 *** john has joined #gnucash
02:20:34 *** gncbot sets mode: +o john
02:22:18 *** nafg has joined #gnucash
02:22:19 *** aqua___ has joined #gnucash
02:30:16 *** aqua_ has joined #gnucash
02:33:26 *** aqua___ has quit IRC
02:45:07 *** john has quit IRC
03:46:48 *** aqua_ has quit IRC
03:53:11 *** Jimraehl1 has joined #gnucash
03:57:46 *** benoitg has joined #gnucash
04:23:48 *** gjanssens has joined #gnucash
04:23:49 *** gncbot sets mode: +o gjanssens
04:27:46 *** Jimraehl1 has left #gnucash
04:31:28 *** Jimraehl1 has joined #gnucash
05:10:47 *** rtvd has joined #gnucash
05:13:08 *** rtvd has quit IRC
05:28:32 *** nafg has quit IRC
05:41:34 *** benoitg has quit IRC
05:49:22 *** benoitg has joined #gnucash
06:50:35 *** benoitg has quit IRC
07:15:41 *** aqua___ has joined #gnucash
07:39:08 *** fell_ has joined #gnucash
07:39:08 *** gncbot sets mode: +o fell_
09:00:01 *** benoitg has joined #gnucash
09:02:41 *** rpg_ has quit IRC
09:07:52 *** benoitg has quit IRC
09:08:09 *** wizkid238 has quit IRC
09:18:21 *** wizkid238 has joined #gnucash
09:24:35 *** aqua___ has quit IRC
09:25:34 *** benoitg has joined #gnucash
09:35:47 *** benoitg has quit IRC
09:36:03 *** aqua___ has joined #gnucash
09:39:26 *** rpg has joined #gnucash
09:46:20 *** aqua___ has quit IRC
10:06:13 *** rpg has quit IRC
10:11:15 *** rpg has joined #gnucash
10:12:10 *** talso has quit IRC
10:19:49 *** aqua___ has joined #gnucash
10:37:50 <gjanssens> Need some details on N_() versus _()
10:38:10 <gjanssens> I want to #define a translatable string
10:38:25 <gjanssens> And found examples in the gnucash source
10:38:43 <gjanssens> Some use #define NAME N_("translatable string")
10:39:00 <gjanssens> Others use #define NAME _("translatable string")
10:39:14 <gjanssens> So I wonder which one should be used in what circumstance ?
10:40:12 <gjanssens> The string I want to have translatable is "Changes will be saved automatically in %d seconds"
10:40:42 <gjanssens> This string will be used by a g_strdup_printf to fill in the number of seconds
10:47:37 *** rpg has quit IRC
11:45:02 *** aqua___ has quit IRC
12:34:22 *** keryell has joined #gnucash
12:36:19 *** john has joined #gnucash
12:36:20 *** gncbot sets mode: +o john
13:11:16 *** TradeBorG has joined #gnucash
13:19:18 *** Krzysiek_K has joined #gnucash
13:41:04 <gjanssens> mikee did you make any progress with gsettings and ofx on your system
13:43:31 *** aqua___ has joined #gnucash
13:46:02 *** thomas has quit IRC
13:46:02 *** thomas_ has quit IRC
13:53:14 *** TradeBorG has quit IRC
13:55:48 <warlord> gjanssens: N_() marks a string as translatable but keeps the original. This is useful for data-file items that you want to translate in display but store untranslated. _() both marks the string and translates immediately.
13:56:33 <warlord> The string marked by N_() must later be passed (as a variable) to _() for translation.
13:56:54 *** TradeBorG has joined #gnucash
13:58:26 <gjanssens> warlord tx
13:58:56 <gjanssens> My string will only be used in code, so I guess it's safe to use _() in this case
13:59:49 <warlord> If you never need access to the non-translated string then yes, _() is correct.
14:11:31 *** aqua___ has quit IRC
14:14:56 *** aqua___ has joined #gnucash
14:24:43 *** Anton has joined #gnucash
14:25:53 *** Anton_ has quit IRC
14:38:06 *** aqua___ has quit IRC
15:11:01 *** fell_ is now known as fell
15:13:57 <fell> Because of http://wiki.gnucash.org/wiki/Translation#How_to_make_strings_in_code_translatable I am wondering,
15:15:04 <fell> '#define NAME _("translatable string")' should work.
15:34:25 <gjanssens> fell for my simple use case this will work
15:35:10 <gjanssens> the NAME macro is only fed to g_strdup_printf (NAME, value), which would expand into
15:35:54 <gjanssens> g_strdup_printf ( _("translatable string"), value) which is -as far as I know- valid syntax
15:39:23 <fell> AFAIK _() is simply a somewhere defined abbreviation for gettext()
15:48:31 <gjanssens> indeed
16:34:49 *** TradeBorG has quit IRC
16:36:07 *** Topcat has joined #gnucash
16:39:29 *** Topcat has quit IRC
16:45:00 *** thomas has joined #gnucash
16:47:55 *** gjanssens has quit IRC
17:17:04 *** Krzysiek_K has left #gnucash
18:25:04 *** john has quit IRC
20:50:57 *** keryell has quit IRC
21:16:33 *** keryell has joined #gnucash
21:39:41 *** fell_ has joined #gnucash
21:39:43 *** gncbot sets mode: +o fell_
21:41:21 *** keryell has quit IRC
21:48:39 *** fell has quit IRC
21:49:38 *** mib_2fl7u8 has joined #gnucash
21:50:30 *** mib_2fl7u8 has left #gnucash
23:06:57 *** Jimraehl1 has quit IRC