Who.language.php August 14, 2015, 11:19:44 pm Just continued translating to Serbian after a very long time. And while i were translating Who file, i stumbled upon two last strings being %1$sGuess its just some Transifex import bug, and that it wont interfere with how forum is working but maybe we shall fix it?I just wonder how nobody reported these thing...
Re: Who.language.php Reply #1 – August 15, 2015, 12:33:20 am Nope, they are variables, just copy/paste them the way they are.
Re: Who.language.php Reply #2 – August 15, 2015, 01:25:32 am In that case they are useless there...or im missing something???
Re: Who.language.php Reply #3 – August 15, 2015, 02:16:17 am Like I said... Leave them the way they are! Being a translator (I assume you are, since you said you got on it after a long time), you should know that translations may include variables for stuff like "This topic has X views", where that "X" is actually "%1$s".Disclaimer: if I sound like a rude @ss, I had a pretty bad day, sorry.
Re: Who.language.php Reply #4 – August 15, 2015, 05:06:24 am Don't change or remove them--sprintf() replaces them with variables.
Re: Who.language.php Reply #5 – August 15, 2015, 10:55:23 am I know that they are just passing input string to output as there is no text actually being formated (input is passed just the way it is), and thats why i said they are useless...Anyway i just wanted to report these but if you guys left it that way on purpose (and not being lazy ) than just say it. xD
Re: Who.language.php Reply #7 – August 15, 2015, 12:59:52 pm @emanuele Quote from: Ice – August 14, 2015, 11:19:44 pm%1$s
Re: Who.language.php Reply #8 – August 15, 2015, 01:01:48 pm @Flavio93Zena key is between $txt[' and ']
Re: Who.language.php Reply #10 – August 15, 2015, 05:03:41 pm Code: [Select]// Overrides the already defined strings to get clean results in the table$txt['today'] = '%1$s';$txt['yesterday'] = '%1$s';Thats from downloaded file...
Re: Who.language.php Reply #11 – August 16, 2015, 02:28:09 am I wonder why I didn't just search in the file... xDForgive me, I had a very "full day" yesterday and I was quite tired. Well, as the notes says, the two variable are already defined elsewhere (index.template.php in that case), and there is the need to override them (yeah, it really need the variable as it is because they are used in the function that prettify the dates and times).Why didn't I do it in a "source" file, but in a language files? I guess I thought it could be handy have them there just in case someone needs them and that translated these two variables doesn't really take much efforts. LOLIf you think it's better to move them out of the language files it's not a big problem, it can be done in 1.1.
Re: Who.language.php Reply #12 – August 16, 2015, 02:32:12 am Tbh, I'd leave them there due to the way some languages are. You should know very well the way Italian is, it's often different from English, so you might have the variable in one place or another according to the language, not sure how you could fix that if you placed the variable into a source file. You'd have to place another wild card there but it'd annihilate the whole purpose of the "fix".
Re: Who.language.php Reply #13 – August 16, 2015, 02:45:48 am In theory it's just for the table, so it may be fine with just the time, but I have to check the code again.