Opened 16 years ago

Closed 16 years ago

#661 closed Enhancement (fixed)

New translatable strings added into to "team.inc" - tested by Rytis on PrimeGrid.

Reported by: Simek Owned by: davea
Priority: Trivial Milestone: Undetermined
Component: Web - Localization Version:
Keywords: patch Cc:

Description

I made "team.inc" file translatable and I add those new translations strings to "en.po" file. Two patches for those files included.

Changes tested by Rytis on PrimeGrid? - thanks so much!

Attachments (2)

team.inc.patch (16.3 KB) - added by Simek 16 years ago.
en.po.patch (2.4 KB) - added by Simek 16 years ago.

Download all attachments as: .zip

Change History (12)

Changed 16 years ago by Simek

Attachment: team.inc.patch added

Changed 16 years ago by Simek

Attachment: en.po.patch added

comment:1 Changed 16 years ago by Nicolas

That is a mess to translate. How can somebody translate "without" or "You may use" if he doesn't actually look at where the strings are used?

Given this: tra("You may use")." <a href=\"html.php\" target=\"_new\">".tra("limited HTML tags")."

What if in some language the only way to say that is with "HTML tags" before "you"? Not every language has the same grammatical order. Sometimes the only way to say it is like "limited HTML tags may be used", and that's impossible with the current patch.

comment:2 Changed 16 years ago by davea

Strings should generally be at the level of sentence rather than phrase; e.g. "You may use %1limited HTML tags%2."

Nicolas, can you make these changes in team.inc?

comment:3 Changed 16 years ago by Nicolas

Erm, are you sure this was tested in PrimeGrid completely? I see things that couldn't possibly work, like commas instead of concatenation operators in some places. It would make "Don't use HTML tags." go into the second column instead of below "Team name, text version".

comment:4 Changed 16 years ago by Nicolas

Heh nice, I found a few XSS bugs too.

What a mess.

comment:5 Changed 16 years ago by Simek

Sure; send me the file and I'll try it on PrimeGrid.

Line 19:

row2(tra("Key words") "<br/>
should be
row2(tra("Key words")."<br/>
(notice the missing dot)

Other than that, I haven't spotted any errors.

Those replies I got for Rytis. Sorry for this mess. I'll try to fix it.

comment:6 Changed 16 years ago by Nicolas

I'm working on those files now (It needs somewhat deep changes to get rid of the security bugs). You may want to wait with the translations...

comment:7 Changed 16 years ago by Simek

Ok, great. It's no problem, I'll wait untill you finish it...

comment:8 Changed 16 years ago by Nicolas

XSS bug is fixed - wasn't as hard as it seemed.

comment:9 Changed 16 years ago by davea

For some reason the patch didn't work; see below Please post new team.inc.patch relative to trunk.

patch -p0 < temp patching file team.inc Hunk #1 FAILED at 12. Hunk #2 FAILED at 37. Hunk #3 succeeded at 60 (offset 1 line). Hunk #4 FAILED at 70. Hunk #6 FAILED at 134. Hunk #7 FAILED at 160. Hunk #8 succeeded at 204 (offset 1 line). Hunk #9 FAILED at 223. Hunk #11 succeeded at 248 (offset 1 line). Hunk #13 succeeded at 309 (offset 1 line). Hunk #15 succeeded at 364 (offset 1 line). 6 out of 15 hunks FAILED -- saving rejects to file team.inc.rej

comment:10 Changed 16 years ago by Rytis

Resolution: fixed
Status: newclosed

(In [15747]) user web: make team.inc translatable, and update en.po using the new script (fix #661)

Note: See TracTickets for help on using tickets.