On Thursday, 30 November 2017 at 00:50:35 UTC, Gerald wrote:
On Tuesday, 28 November 2017 at 07:39:19 UTC, Ivan Trombley wrote:
On Sunday, 24 January 2016 at 19:18:28 UTC, Gerald wrote:
On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote:
Please, write a HowTo some where. GtkD lack of documentation it's very anoying.

I've gotten this going with Terminix and posted some information what it took to get it going here:

http://gexperts.com/wp/gtkd-and-localization/

I tried this out but I get this compile error:
"Error: static variable c_g_dgettext cannot be read at compile time"

Did you have any issues like this?

Nope, you can see how Tilix is doing localization in it's repo below. I haven't looked at the localization code in awhile so I can't remember how well it still aligns with that blog post.

https://gitHub.com/gnunn1/tilux

Page not found, 404.


BTW, this is what I tried:

import glib.Internationalization;

string t(string text)
{
  return Internationalization.dgettext([], text);
}

That generates these errors:

~/.dub/packages/gtk-d-3.7.2/gtk-d/generated/gtkd/glib/Internationalization.d(103,23):
 Error: static variable c_g_dgettext cannot be read at compile time
~/.dub/packages/gtk-d-3.7.2/gtk-d/generated/gtkd/glib/Internationalization.d(103,22):
        called from here: toString((*c_g_dgettext)(toStringz(domain), 
toStringz(msgid)), 0LU)

Reply via email to