Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
user interface text
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Dec 2009 at 12:05 UTC
Updated:
4 Dec 2014 at 11:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Tor Arne Thune commentedStill a valid issue. See for example the description text for a user picture upload form. Moving to 8.x.
Comment #2
droplet commentedsubscribe
Comment #3
Brandonian commentedsubscribe
Comment #4
hazaHere are some changes about that. I also change the test according to the new × instead of x
Comment #5
hazaComment #6
droplet commentedwhy it's using str_replace ??
Comment #7
hazaBecause the informations is still save with the x (the letter), not the × so the only purpose of this replace is to display a × instead of the x when displaying the data. (but I know, that still might be a bad idea ... )
Comment #8
damien tournoud commentedThis (and others) look wrong. The % in %dimensions means that the argument is plain-text. As consequence it should not contain HTML. Moreover, we try to avoid using entities, and prefer straight Unicode characters.
Comment #9
hazaGot it, what about this one so ?
Comment #10
tr commentedReposting patch from #9 without modification, in attempt to get the testbot to run.
Comment #12
tr commentedRe-rolled patch against current D8 head, and in -p1 format for the testbot.
Comment #13
irunflower commentedPatch did not work. Could not get it to apply to 8.x-dev.
I get: fatal: corrupt patch at line 139
Comment #14
heaths1 commentedRerolled to the recent head. Noob input.
Comment #15
enhdless commentedPatch needs rerolling again.
Comment #16
tr commented14: 657166-14.patch queued for re-testing.
Comment #18
mgiffordOk, this needs a bunch of work. Where is the image_resize_effect() function? I could only find the test:
grep -ir image_resize_effect core/modules/
core/modules//image/src/Tests/ImageEffectsTest.php: * Test the image_resize_effect() function.
same for function image_crop_effect() & image_scale_and_crop_effect().
or for that matter core/modules/user/lib/Drupal/user/AccountFormController.php
This still needs work obviously, but wanting the bot to test it.
Comment #19
tstoecklerI think that should not be necessary.
Instead everywhere where 'x' is still used we should use the proper character instead. I could find the following places that still need to updated:
EditorImageDialogImageItem(there's some instances of x there)Comment #20
mgiffordOk, I dropped the str_replace() as requested and added it to EditorImageDialog & ImageItem. Let me know if I missed anything.
Comment #22
mgiffordHope this addresses the failed test in core/modules/image/src/Tests/ImageFieldDisplayTest.php
Comment #24
cs_shadow commentedThis should take care of the tests.
Comment #25
cs_shadow commentedComment #26
tr commentedYou forgot to change one of the "WIDTHxHEIGHT" that appears in the patch.
Comment #27
mgiffordOk, this should address that. Thanks for pointing it out TR.
Comment #29
cs_shadow commentedSeems like a very unrelated failure to me.
Comment #32
mgiffordI posted a version of the code on SimplyTest.me - admin/structure/types/manage/article/fields/node.article.field_image
I noticed it isn't in admin/config/media/image-styles when I was looking at this just now... That's probably the biggest place where it is visible in the UI.
Comment #33
mgiffordNow with changes to the image module.
Comment #34
mgiffordSorry for the noise. Missed the YML file.
Comment #35
mgiffordand small/medium too apparently..
Comment #36
mgiffordScreenshot with ×
Comment #40
mgiffordWith tests..
Comment #41
tstoecklerAwesome, thanks! The patch is now a simple search and replace, which is how it should be. The various test failures show that this is sufficiently tested.
Comment #42
wim leersWonderful :)
Comment #43
catchCommitted/pushed to 8.0.x, thanks!
Comment #45
mgiffordComment #46
yannickooAlmost 5 years now, wow :)
Comment #48
alexpottThis broke stuff. We should have only change UI text here. See #2363077: Max and min resolution not working and #2387011: EditorImageDialog passes incorrect arguments to file_validate_image_resolution