Some translatable interface string in the Views UI contain \'. This may cause confusion with translators and should be avoided.
The only documentation I found on this is from D6 t(). But IMHO still applies.

Comments

sutharsan’s picture

Status: Active » Needs review
StatusFileSize
new5.09 KB

This patch removes all the \' I could find.

jbrown’s picture

#1: views_ui-1966514-1.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, views_ui-1966514-1.patch, failed testing.

sutharsan’s picture

Status: Needs work » Needs review
StatusFileSize
new144.9 KB

Rerolled

jbrown’s picture

Status: Needs review » Needs work

I think you uploaded the wrong patch ;-(

sutharsan’s picture

Status: Needs work » Needs review
StatusFileSize
new3.15 KB

Lets try again ;)

attiks’s picture

Title: Don not use \' in translatable strings » Do not use \' in translatable strings

fix title

longwave’s picture

In the second hunk, should we remove the newline from the string? Also, there seems to be no need for two spaces in "or '%5D'"?

ivansf’s picture

Assigned: Unassigned » ivansf

I found another one and will be fixing what #8 says.

ivansf’s picture

StatusFileSize
new4.03 KB

Changes from #8 and found another one.

zhangyi5’s picture

I am starting to review the patch.

zhangyi5’s picture

The syntax looks good, except that there are "<p>" and "</p>"tag in the t() function which should be discouraged and might cause trouble later.

Status: Needs review » Needs work

The last submitted patch, views_ui-1966514.patch, failed testing.

sutharsan’s picture

Assigned: ivansf » Unassigned
Status: Needs work » Needs review
StatusFileSize
new3.22 KB
new5.46 KB

Found another one in Views module. Also moved <p> outside the t() string and removed double spaces from two strings.

ivansf’s picture

#10: views_ui-1966514.patch queued for re-testing.

ivansf’s picture

#14 works fine.

mradcliffe’s picture

The patch in #14 fixes the issue to make it easier for translators, and takes into account comments by @zhangyi5 in #12. I think this is ready for RTBC as it doesn't effect functionality. Localizers may need to repeat some work if they started already.

@Sutharsan: Is there a process for making sure Drupal 8 localizers know about translatable string changes? Change notice?

sutharsan’s picture

@mradcliffe, In past releases there was a string freeze for core at the time RC1 was released. Before that time translators (usually) don't work on core strings. Therefore no need for any notification for this change.

mradcliffe’s picture

Oh, duh, it's been three years since the last time and I completely forgot.

mradcliffe’s picture

#14: views_ui-1966514-14.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, views_ui-1966514-14.patch, failed testing.

mradcliffe’s picture

Issue tags: +Needs reroll

Needs a re-roll to apply against current HEAD

sutharsan’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new4.45 KB

re-rolled.

mradcliffe’s picture

Status: Needs review » Reviewed & tested by the community

Adding RTBC.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.