quote:
Originally posted by Mattike
Hmm... That would replace any non-word characters. I agree it's lots easier, but is it really necessary to replace a "#" character?
It totally doesn't matter if characters are escaped which don't need to be escaped. Better escape characters than forgetting to escape some. The shown regular expression is a typical one used for this purpose (and works also way faster than your code).
quote:
Originally posted by Mattike
quote:
Another thing (rather important) you want to implement (but it will require recoding major parts): If a tag is not used, the value should be incoorperated with the tags that are used.
This means, for example, when you have:
%d days %h hours %n minutes => 2 days 5 hours 3 minutes
and you leave out the days tag it should become:
%h hours %n minutes => 53 hours 3 minutes
That's indeed lots harder, since you don't know what parts should be kept and what should be left out.
It is actually dead easy to implement this.
Instead of replacing every %d-like tags the first time, you set a mark that the tag is being used. After processing all the possible tags, you pass the whole string again, but this time replace the tags with the correct number.
1) see what tags are being used
2) calculate the seconds, minutes, hours, etc... as needed (thus if tags are being used)
3) pass the whole string again and replace the tags with the correct seconds, minutes, hours, etc...
quote:
Originally posted by Mattike
I could combine "%d" and "%dw" to "%d" which displays "3 days", but I think I better implement those other suggestions you've posted...
don't combine them, you'll regret it as this makes the code very confusing and unneeded big. the word tags actually don't have any relation to the number tags (except for the check if it needs to be plural or singular). If the user for whatever reason wants to use only the word tags without number tags, that's his problem, your script should just check if the word tags needs to be plural or singular and replace them.
quote:
Originally posted by Mattike
quote:
- The countdown tag is restricted in size, remove that
The problem is: how? I've looked for solutions in the Windows XML Reference in the Scripts Documentation but there are no properties available which let the typing area of the combobox go further than the width of the control.
Are you sure??? If so, that's an important thing which must be changed in the scripting engine then...
quote:
Originally posted by Mattike
quote:
- Make it possible to use \n (new line) and \t (tab) in translation texts.
\n is already supported, I already thought about adding \t but I wonder why it should be used for... if you can give me just one example, I add it.
\n isn't supported yet (at least not with the version I used.
\t can be used to visibily make texts look better. The point is that you don't need an example. It is something which can be used.
eg: It is not because in the English translation of Plus! the \t tag isn't used that it shouldn't be supported. As a matter of fact, in the Dutch translation I used the \t quite a lot to format text so it looks way better.
Shouldn't be that hard either to implement since it is only 1 replace line to add.
quote:
Originally posted by NiteMare
thats for personal message atleast, i don't know about nicknames, i'm still working with that one. i've been busy with my job
With nicknames it is even worse and you will also get a error message when you change it to much...
Also don't forget, everything you do isn't only an annoyance for you in your event log, but waaaaaaay more importantly it is super-annoying for your contacts and you also flood the msn servers.