[Plugin] imessage - fast multilanguage strings
#25

Quote:
Originally Posted by legodude
Посмотреть сообщение
this is very interesting, it doesnt support formatting does it?
It assumes the formatting within the framework of format() function:

istrings.txt:
Код:
[MULTISTRING]
en {Hello, %s!};
es {Hola, %s!};
gamemode.pwn:
PHP код:
new str[256];
new 
mes[256];
...
imessage(mes"MULTISTRING""en");
format(strsizeof(str), mes"John");
... 
But there are some types of string which can not be formatted in such a way. I still don't know the reason why, so it was said nothing about formatting possibility.


Quote:
Originally Posted by ******
Посмотреть сообщение
That doesn't answer the question of why it was done that way in the first place instead of researching existing solutions.
You are wrong, researching existing solutions had been done at first. The result is:
y_languages' format of text strings was designed for compatibility with y_ini. But it is hard to use for translators and redactors. For example, translation from French to Polish - it's a real mockery of translator because of different code pages. You can not have two strings (original and translation) in a single file.

P.S. I've added benchmarks +test code.
Reply


Messages In This Thread
imessage - fast multilanguage strings - by Bombo - 20.03.2013, 16:06
Re: imessage - fast multilanguage strings - by Gamer_Z - 20.03.2013, 17:12
Re: imessage - fast multilanguage strings - by Bombo - 20.03.2013, 17:27
Re: imessage - fast multilanguage strings - by leong124 - 20.03.2013, 17:40
Re: imessage - fast multilanguage strings - by Bombo - 20.03.2013, 18:09
Re: imessage - fast multilanguage strings - by Gamer_Z - 20.03.2013, 19:36
Re: imessage - fast multilanguage strings - by Bombo - 20.03.2013, 20:05
Re: imessage - fast multilanguage strings - by Rock - 20.03.2013, 20:48
Re: imessage - fast multilanguage strings - by TheArcher - 20.03.2013, 21:25
Re: imessage - fast multilanguage strings - by Bombo - 20.03.2013, 21:59
Re: imessage - fast multilanguage strings - by freddy smyth - 21.03.2013, 01:55
Re: imessage - fast multilanguage strings - by ReneG - 21.03.2013, 05:12
Re: imessage - fast multilanguage strings - by Dzines4SAMP - 21.03.2013, 05:53
Re: imessage - fast multilanguage strings - by CoaPsyFactor - 21.03.2013, 09:57
Re: imessage - fast multilanguage strings - by steki. - 21.03.2013, 10:14
Re: imessage - fast multilanguage strings - by u3ber - 21.03.2013, 10:22
Respuesta: imessage - fast multilanguage strings - by TheChaoz - 21.03.2013, 11:40
Re: imessage - fast multilanguage strings - by Rock - 21.03.2013, 12:05
Re: imessage - fast multilanguage strings - by Gamer_Z - 21.03.2013, 12:38
Re: imessage - fast multilanguage strings - by xeeZ - 21.03.2013, 12:50
Re: imessage - fast multilanguage strings - by Edvin - 21.03.2013, 14:15
Re: imessage - fast multilanguage strings - by leong124 - 22.03.2013, 16:13
Re: imessage - fast multilanguage strings - by QuaTTrO - 23.03.2013, 19:42
Re: imessage - fast multilanguage strings - by legodude - 24.03.2013, 11:23
Re: imessage - fast multilanguage strings - by Bombo - 25.03.2013, 23:54
Re: imessage - fast multilanguage strings - by Gamer_Z - 26.03.2013, 00:07
Respuesta: imessage - fast multilanguage strings - by xDarkuzSx - 01.10.2014, 10:04
Re: imessage - fast multilanguage strings - by wahyumahadir - 01.03.2015, 16:25
Re: imessage - fast multilanguage strings - by Kaperstone - 02.03.2015, 12:15
Re: imessage - fast multilanguage strings - by nevahudo - 13.06.2015, 23:22
Re: imessage - fast multilanguage strings - by CoaPsyFactor - 16.06.2015, 11:03
Re: imessage - fast multilanguage strings - by iSanchez - 26.12.2016, 00:28

Forum Jump:


Users browsing this thread: 1 Guest(s)