Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
config_translation.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Dec 2014 at 17:03 UTC
Updated:
3 Mar 2015 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webflo commentedComment #2
webflo commentedComment #3
tstoecklerAwesome, thanks a lot!
I've hit this exact problem over in #2381147-4: Text and text with summary field default value config does not use the text_format schema type. See my 2. over in that comment.
Comment #5
alexpottDocs formatting - should be
Gets....Unneeded blank(ish) line.
Need to doc what the return value is.
An inline comment might be nice.
Comment #6
tstoecklerJust marked #2413481: Sequence translation as duplicate. That one simply uses an ltrim() instead of the array_filter(), which seems a little less (conceptual, not performance) overhead IMO. In any case, that means we should really fix this as multiple people (myself included) have been bitten by this.
Comment #7
tstoecklerComment #8
tstoecklerHere we go.
Fixed #5 added a beta evaluation and a suggested commit message, because I brought the ltrim() over from the referenced issue.
Comment #9
tstoecklerComment #10
tstoecklerWell, actually pasting the suggested commit message helps...
Comment #12
tstoecklerHehe, 8.0.x changed a bit in the meantime, so the test code itself "failed"...
Comment #13
gábor hojtsyComment #14
gábor hojtsyThis comment may not be accurate anymore. Probably not needed as its a method now.
of => if
In general it would be great to explain what are base and subkeys now that this is removed from its original surroundings.
Add comment block on method.
Comment #15
gábor hojtsyNot being actively worked on.
Comment #16
schnitzel commentedas @tstoeckler suggested here #2413481: Sequence translation there is a similar approach that would fix that as well, maybe we want to merge these two
Comment #17
gábor hojtsy@Schnitzel: wanna work on this? :)
Comment #18
tstoeckler@Schnitzel: I the latest patch already "merges" the two approaches in that I brought over the ltrim().
Comment #19
schnitzel commented@Gabor
Wanna have it fixed yes :D
And yep, will check that I or one of my people will spend some time on it.
Comment #20
leksat commented2395627-20.patch includes all fixes for #14
2395627-20-v2.patch is just another approach. It doesn't add the getElementKey() method, reasons:
- the $base_key variable is already described in getTranslationBuild() and setConfig() methods; there is no need to describe it in another one place
- when I see
$element_key = isset($base_key) ? "$base_key.$key" : $key;I don't need any comments to understand what's happennigComment #21
gábor hojtsyYeah v2 makes more sense, we don't need a method introduced to concatenate strings. Uploading again to make sure this one will be committed and not the other one.
Comment #22
alexpottCommitted 1ff477b and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #24
gábor hojtsyYay, thanks all!