January 25, 2016 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gerald | 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/
:thumbsup:
|
November 28, 2017 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gerald | 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?
|
November 30, 2017 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | 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 |
November 30, 2017 [OT] tilix packaging | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gerald | Gerald, I'd like to learn how to make deb packages, could you share your scripts etc you use to build packages for tilix? Thank in advance) |
November 30, 2017 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gerald | 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) |
November 30, 2017 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | it was typo, should be https://gitHub.com/gnunn1/tilix |
November 30, 2017 Re: Localization (i18n) Options | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | Figured it out. I was initializing some member strings where they were declared in a class. I just needed to move that initialization to the constructor. |
Copyright © 1999-2021 by the D Language Foundation