Search found 481 matches

by Nore
Sat Feb 02, 2019 08:50
Forum: Modding Discussion
Topic: How to use client-side translations in Minetest 5.0.0?
Replies: 7
Views: 1705

Re: How to use client-side translations in Minetest 5.0.0?

If not even the client GUI is translated, then it means you did not enable gettext.
by Nore
Mon Jan 21, 2019 10:41
Forum: Modding Discussion
Topic: How to use client-side translations in Minetest 5.0.0?
Replies: 7
Views: 1705

Re: How to use client-side translations in Minetest 5.0.0?

You are not missing anything - the issue was the missing translation of LANG_CODE. See https://github.com/minetest/minetest/pull/8119 for details.
by Nore
Mon Dec 10, 2018 06:24
Forum: Modding Discussion
Topic: Efficient graph based networks (electronics and transport)
Replies: 29
Views: 4691

Re: Efficient graph based networks (electronics and transpor

Hmmmm, that is a good question. I'm not sure we can even get something even remotely as good with dynamic shortest paths compared to dynamic connectivity; the problem seems much harder. There seems to be no polylogarithmic algorithm, unfortunately...
by Nore
Sun Dec 09, 2018 18:03
Forum: Modding Discussion
Topic: Efficient graph based networks (electronics and transport)
Replies: 29
Views: 4691

Re: Efficient graph based networks (electronics and transpor

Ah, we didn't mean the same thing by dynamic connectivity. By that, I meant algorithms that maintain information as to which vertices are connected to which in a graph that can change with added or removed vertices and edges. It probably wouldn't be very useful for pipeworks-like mods, but very effi...
by Nore
Sun Dec 09, 2018 15:07
Forum: Modding Discussion
Topic: Efficient graph based networks (electronics and transport)
Replies: 29
Views: 4691

Re: Efficient graph based networks (electronics and transpor

However, to get the full benefit of them, it would probably be better if such algorithms were implemented in the engine. There might even be some C/C++ libraries we can use for that. I don't believe that you can implement that fully in C/C++. I was thinking along the lines of having the dynamic con...
by Nore
Fri Dec 07, 2018 16:16
Forum: Modding Discussion
Topic: Efficient graph based networks (electronics and transport)
Replies: 29
Views: 4691

Re: Efficient graph based networks (electronics and transpor

I see this as a dynamic connectivity problem: https://en.wikipedia.org/wiki/Dynamic_connectivity . Although these algorithms use quite complicated data structures, they allow updates and accesses to be done efficiently (in polylogarithmic time). However, to get the full benefit of them, it would pr...
by Nore
Fri Dec 07, 2018 10:52
Forum: Modding Discussion
Topic: Efficient graph based networks (electronics and transport)
Replies: 29
Views: 4691

Re: Efficient graph based networks (electronics and transpor

I see this as a dynamic connectivity problem: https://en.wikipedia.org/wiki/Dynamic_connectivity . Although these algorithms use quite complicated data structures, they allow updates and accesses to be done efficiently (in polylogarithmic time). However, to get the full benefit of them, it would pro...
by Nore
Mon Nov 12, 2018 21:23
Forum: General Discussion
Topic: Secrets Inside the Box
Replies: 68
Views: 16397

Re: Secrets Inside the Box

I so loooove this topic :). Things are being added, don't worry, and there is much, much you haven't found yet. Of course, we won't tell you what -- keep searching!
by Nore
Fri Feb 02, 2018 22:55
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

The problem isn't memory usage per se, but rather that translations specific to a server should be unloaded once the server is left. The translations also need to be loaded when the server is joined, and I never found how to do that, unfortunately. (I'm not even sure it is possible with the gettext ...
by Nore
Fri Feb 02, 2018 22:18
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

Well, basically, that would be as much work as parsing the po files. The question is, how to do this without rewriting gettext?
by Nore
Fri Feb 02, 2018 17:01
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

One thing which bothers me the most at the moment: Why did you use a non-standard format for the translations instead of just Gettext / PO? I mean, is there really any reason for that? Honestly, this seems like a stupid decision. The format used was the same as intlib used, although now intlib uses...
by Nore
Sat Jan 27, 2018 07:48
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

Unfortunately, it can't, for 2 reasons:
- the translated parts must be known statically
- it won't work with signs showing text with sign_lib or things like that (but it will work with infotexts), due to how sign_lib or other similar mods work.
by Nore
Sat Dec 02, 2017 07:54
Forum: Servers
Topic: [Server] Inside The Box [Puzzles]
Replies: 627
Views: 182507

Re: [Server] Inside The Box [Puzzles]

Wuzzy wrote:Sofar, I wonder how you managed to make sure that you can't jump over fences, even with sneak-jumping.
Hint: sneak is completely disabled :).
by Nore
Fri Nov 17, 2017 09:35
Forum: Servers
Topic: [Server] Inside The Box [Puzzles]
Replies: 627
Views: 182507

Re: [Server] Inside The Box [Puzzles]

Server chat is connected to #insidethebox Do note, it's actually ##insidethebox . Every IRC channel starts with a #, so when it was specified with # in the name, it became ##insidethebox. Don't know if that was intentional or not. IRC channels are usually specified with a '#' in the same, even thou...
by Nore
Mon Aug 28, 2017 07:48
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

Yes.
by Nore
Mon Aug 28, 2017 07:24
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

As I said earlier, the name you need to give corresponds to the lang code used by minetest with that specific locale. In your case, if will be "de". As for having a configuration option to set the language, as I said, *it already exists*.
by Nore
Mon Aug 28, 2017 05:33
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

By the way. Which standard for the language codes do you use? The languages codes used are exactly the same as the folder names in po/. For now, derived language detection needs to be exact. Thus, the server needs to provide "pt_BR.tr" or there will be no translation. It might be a good i...
by Nore
Sun Aug 27, 2017 20:59
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

For now, derived language detection needs to be exact. Thus, the server needs to provide "pt_BR.tr" or there will be no translation. It might be a good idea to change that, indeed.
by Nore
Fri Aug 25, 2017 15:49
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

Linuxdirk wrote:Is it possible to provide colorized strings as parameters for the variables?
Yes.
by Nore
Fri Aug 25, 2017 14:28
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

Linuxdirk wrote:Well then. Maybe at least make it so that newlines can be escaped and don't have to be real newlines. I guess that's the best we can get when it comes to client-side translations.
There is already a pull request doing that.
by Nore
Fri Aug 25, 2017 14:21
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

As for named variables: yes it can be done, no it won't be done unless you provide the code for it yourself You expect 100% dedication from everyone else, yet fail to contribute or even put 10% in yourself. Here's a wrapping function that allows using named variables: https://repl.it/KZr4 It takes ...
by Nore
Fri Aug 25, 2017 13:02
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

But I see. It's only another rushed project by a core dev who wants to implement something the dev likes no matter how handy it is in real-life usage and that needs a mod wrapping it into something useful. If you think that, then you haven't tried to understand at all how client-side translations c...
by Nore
Fri Aug 25, 2017 11:39
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

I'm still waiting for you to show me how these translations can be different for each client according to their locale. Your code doesn't do that.
by Nore
Fri Aug 25, 2017 11:30
Forum: News
Topic: Client-side translations
Replies: 59
Views: 28645

Re: Client-side translations

You can do that with numbered escape sequences. Minimal working example please. S("The value: @1", "the value") I already explained in a previous post *why* this was not possible without making the code quite a bit more complex. Translations ARE complex. What'the problem with wr...