Opened on 03/08/2015 at 10:42:34 PM
Closed on 03/13/2015 at 02:17:54 PM
Last modified on 05/13/2015 at 03:32:01 PM
#2105 closed change (fixed)
[adblockplus.org Anwiki to CMS migration] Translatable links handled incorrectly
Reported by: | trev | Assignee: | |
---|---|---|---|
Priority: | P3 | Milestone: | |
Module: | Websites | Keywords: | |
Cc: | saroyanm, kzar | Blocked By: | #2136 |
Blocking: | #2035 | Platform: | Unknown |
Ready: | no | Confidential: | no |
Tester: | Verified working: | yes | |
Review URL(s): |
Description (last modified by trev)
Background
Whenever an href attribute had to be translatable, a construct like <a><attr name="href">http://example/</attr>Link</a> had to be used. Since Anwiki can only translate text content, the attribute value was put inside a special <attr> tag. The conversion script will currently turn these attributes into content that cannot be translated.
What to change
Make sure that attributes like in the example are added to localization files properly and can be translated. This requires syntax like $string($link$)$ to be supported by the CMS first.
Attachments (0)
Change History (9)
comment:1 Changed on 03/09/2015 at 12:26:37 PM by trev
- Blocking 2035 added
comment:2 Changed on 03/09/2015 at 08:31:06 PM by kzar
- Owner set to kzar
comment:3 Changed on 03/10/2015 at 11:24:43 AM by kzar
- Owner kzar deleted
- Ready unset
comment:4 Changed on 03/10/2015 at 02:09:11 PM by saroyanm
- Cc saroyanm added
comment:5 Changed on 03/10/2015 at 02:26:30 PM by kzar
- Cc kzar added
comment:6 Changed on 03/10/2015 at 03:49:15 PM by trev
- Description modified (diff)
- Summary changed from [adblockplus.org Anwiki to CMS migration] Translatable attribute values handled incorrectly to [adblockplus.org Anwiki to CMS migration] Translatable links handled incorrectly
comment:7 Changed on 03/12/2015 at 06:13:20 PM by trev
- Blocked By 2133 added
comment:8 Changed on 03/13/2015 at 02:17:54 PM by trev
- Blocked By 2136 added; 2133 removed
- Resolution set to fixed
- Status changed from new to closed
comment:9 Changed on 05/13/2015 at 03:32:01 PM by Ross
- Verified working set
Working.
Tested by:
Running the website converter script as per the read me and checking the output for translatable links.
Tested with:
www / r18024
sitescripts / r501
web.adblockplus.org / r68
website-converter / master / 105208883c4336a3788820fe9ab379cf639f8387
After playing around with the code a little I've come to the conclusion this issue isn't clear enough yet. Questions I have:
If this ticket is only about href attributes for <a> tags I figured we could generate something like this: "$s4($s5$)$" where s4 is "Test <a>link</a> text" and s5 is a URL. Problem is that syntax doesn't seem to be supported by sitescripts.cms, when I tried it I got this rendered as a result "$s4(http://google.com)$".
So as I'm not clear on exactly what the issue is looking to address or how we plan to address it I'm removing the ready flag for now.