Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
locale.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jun 2012 at 18:27 UTC
Updated:
18 Dec 2024 at 08:48 UTC
Jump to comment: Most recent
Comments
Comment #11
catchThis seems like a task. Moving to locale module since language system doesn't handler interface translation.
Comment #12
rootworkTagging as novice just for the issue summary update (though feel free to work on it beyond that)
Comment #14
anjali rathodComment #15
anjali rathodDo we have to write a test for it @catch ?
Comment #18
quietone commentedI have added that standard issue template. It still needs to be updated and that is suitable for a novice, leaving tag.
@Anjali Rathod, good question about tests! In nearly all cases, the answer is yes. And that is true for this issue. There are several steps, or gates, that an issue must pass before it is marked RTBC. For most issues following step 10 in the Review a patch or merge request task of the Contributor guide is sufficient. The complete list of core gates has more topics.
Comment #19
LaureatusI have made the code changes you requested and renamed the function to file_validate_encoding. I also checked with #UX and asked for some feedback on the error message. I think "The file is not encoded with UTF-8." is the best solution.
Comment #21
ravi.shankar commentedAddressed drupal CS issue of MR.
Comment #24
quietone commentedI rebased the MR onto 11.x but there are errors to fix.
Comment #26
sokru commentedNot the most elegant solution, but does the job.
Comment #27
smustgrave commentedComment #28
sokru commentedAll issues should be resolved now.
Comment #29
smustgrave commentedRan test-only feature
Which shows the coverage.
Believe all feedback on the MR has been addressed.
Comment #30
quietone commentedThis is almost there. I left a few comments to look at.
Comment #31
sokru commentedI think other threads are solved, but still open to suggestions if the FileEncoding constraint $encoding should be list of encodings.
Comment #32
quietone commentedSorry that I missed that this will need tests of the new constraint validator.
Comment #33
sokru commentedI added tests for FileEncodingConstraint. Instead of list I converted $encoding into an array, IMO it makes the code cleaner: no need for
implodeorpreg_*that FileExtensionConstraint is using.Comment #34
nicxvan commentedI reviewed this and it looks great.
All of the threads seem to be resolved.
I tried to run the test only job, but it wouldn't run due to:
This job could not start because it could not retrieve the needed artifacts.
Learn more about dependencies and common causes of this error.
The actual tests are passing.
Comment #35
smustgrave commentedRebased and got test-only to run https://git.drupalcode.org/issue/drupal-1630568/-/jobs/2659732
Re-looking at believe all feedback has been addressed
Comment #36
alexpottCommitted 02b324c and pushed to 11.x. Thanks!