#193 | metatag-n2564483-193.interdiff.txt | 4.83 KB | DamienMcKenna |
#193 | metatag-n2564483-193.patch | 183.52 KB | DamienMcKenna |
|
#191 | metatag-n2564483-191.patch | 182.12 KB | DamienMcKenna |
|
#191 | metatag-n2564483-191.interdiff.txt | 9.79 KB | DamienMcKenna |
#190 | metatag-n2564483-190.interdiff.txt | 3.45 KB | DamienMcKenna |
#190 | metatag-n2564483-190.patch | 173.84 KB | DamienMcKenna |
|
#187 | metatag-n2564483-187.interdiff.txt | 3.35 KB | DamienMcKenna |
#187 | metatag-n2564483-187.patch | 173.17 KB | DamienMcKenna |
|
#182 | metatag-n2564483-182.patch | 172.4 KB | DamienMcKenna |
|
#182 | metatag-n2564483-182.interdiff.txt | 3.02 KB | DamienMcKenna |
#181 | metatag-n2564483-181.interdiff.txt | 22.51 KB | DamienMcKenna |
#181 | metatag-n2564483-181.patch | 171.59 KB | DamienMcKenna |
|
#180 | metatag-n2564483-180.interdiff.txt | 1.7 KB | DamienMcKenna |
#180 | metatag-n2564483-180.patch | 155.76 KB | DamienMcKenna |
|
#177 | metatag-n2564483-177.interdiff.txt | 497 bytes | DamienMcKenna |
#177 | metatag-n2564483-177.patch | 155.7 KB | DamienMcKenna |
|
#174 | metatag-n2564483-174.interdiff.txt | 12.17 KB | DamienMcKenna |
#174 | metatag-n2564483-174.patch | 155.69 KB | DamienMcKenna |
|
#171 | metatag-n2564483-171.patch | 156.26 KB | DamienMcKenna |
|
#171 | metatag-n2564483-171.interdiff.txt | 1.79 KB | DamienMcKenna |
#167 | metatag-n2564483-167.interdiff.txt | 9.11 KB | DamienMcKenna |
#167 | metatag-n2564483-167.patch | 156.33 KB | DamienMcKenna |
|
#166 | metatag-n2564483-166.interdiff.txt | 9.34 KB | DamienMcKenna |
#166 | metatag-n2564483-166.patch | 156.77 KB | DamienMcKenna |
|
#165 | metatag-n2564483-165.patch | 148.02 KB | DamienMcKenna |
|
#165 | metatag-n2564483-165.interdiff.txt | 27.1 KB | DamienMcKenna |
#163 | metatag-n2564483-163.patch | 141.62 KB | DamienMcKenna |
|
#163 | metatag-n2564483-163.interdiff.txt | 15.75 KB | DamienMcKenna |
#162 | metatag-n2564483-161.patch | 134.31 KB | DamienMcKenna |
|
#162 | metatag-n2564483-161.interdiff.txt | 517 bytes | DamienMcKenna |
#161 | metatag-n2564483-161.patch | 134.31 KB | DamienMcKenna |
|
#161 | metatag-n2564483-161.interdiff.txt | 517 bytes | DamienMcKenna |
#160 | metatag-n2564483-160.patch | 134.3 KB | DamienMcKenna |
|
#160 | metatag-n2564483-160.interdiff.txt | 7.73 KB | DamienMcKenna |
#157 | metatag-n2564483-157.interdiff.txt | 11.06 KB | DamienMcKenna |
#157 | metatag-n2564483-157.patch | 134.26 KB | DamienMcKenna |
|
#155 | metatag-n2564483-155.interdiff.txt | 8.73 KB | DamienMcKenna |
#155 | metatag-n2564483-155.patch | 132.19 KB | DamienMcKenna |
|
#142 | metatag-n2564483-142.interdiff.txt | 5.88 KB | DamienMcKenna |
#142 | metatag-n2564483-142.patch | 130.09 KB | DamienMcKenna |
|
#141 | metatag-n2564483-141.interdiff.txt | 12.98 KB | DamienMcKenna |
#141 | metatag-n2564483-141.patch | 125.31 KB | DamienMcKenna |
|
#134 | metatag-n2564483-134.interdiff.txt | 3.84 KB | DamienMcKenna |
#134 | metatag-n2564483-134.patch | 122.3 KB | DamienMcKenna |
|
#129 | metatag-n2564483-129.interdiff.txt | 10.42 KB | DamienMcKenna |
#129 | metatag-n2564483-129.patch | 119.08 KB | DamienMcKenna |
|
#126 | 2564483-126.patch | 124.28 KB | webflo |
|
#126 | 2564483-126.interdiff.txt | 575 bytes | webflo |
#124 | metatag-n2564483-124.patch | 118.97 KB | DamienMcKenna |
|
#124 | metatag-n2564483-124.interdiff.txt | 11.56 KB | DamienMcKenna |
#114 | metatag-n2564483-114.patch | 115.73 KB | DamienMcKenna |
|
#113 | metatag-n2564483-113.patch | 115.76 KB | DamienMcKenna |
|
#111 | metatag-n2564483-111.patch | 113.59 KB | DamienMcKenna |
|
#111 | metatag-n2564483-111.interdiff.txt | 28.75 KB | DamienMcKenna |
#110 | metatag-n2564483-110.patch | 108.56 KB | DamienMcKenna |
|
#110 | metatag-n2564483-110.interdiff.txt | 3.82 KB | DamienMcKenna |
#106 | metatag-n2564483-106.patch | 108.55 KB | DamienMcKenna |
|
#106 | metatag-n2564483-106.interdiff.txt | 4.09 KB | DamienMcKenna |
#105 | metatag-n2564483-105.patch | 105.55 KB | DamienMcKenna |
|
#105 | metatag-n2564483-105.interdiff.txt | 3.17 KB | DamienMcKenna |
#102 | metatag-n2564483-102.patch | 103.49 KB | DamienMcKenna |
|
#102 | metatag-n2564483-102.interdiff.txt | 7.13 KB | DamienMcKenna |
#98 | metatag-n2564483-98.interdiff.txt | 23.34 KB | DamienMcKenna |
#98 | metatag-n2564483-98.patch | 97.54 KB | DamienMcKenna |
|
#94 | metatag-n2564483-95.patch | 85.84 KB | DamienMcKenna |
|
#94 | metatag-n2564483-95.interdiff.txt | 1.15 KB | DamienMcKenna |
#93 | metatag-n2564483-93.patch | 85.09 KB | DamienMcKenna |
|
#93 | metatag-n2564483-93.interdiff.txt | 2.21 KB | DamienMcKenna |
#79 | metatag-n2564483-79.patch | 84.12 KB | DamienMcKenna |
|
#79 | metatag-n2564483-79.interdiff.txt | 6.38 KB | DamienMcKenna |
#78 | metatag-n2564483-78.patch | 83.82 KB | DamienMcKenna |
|
#78 | metatag-n2564483-78.interdiff.txt | 568 bytes | DamienMcKenna |
#76 | metatag-n2564483-76.patch | 83.92 KB | DamienMcKenna |
|
#76 | metatag-n2564483-76.interdiff.txt | 9.41 KB | DamienMcKenna |
#73 | metatag-n2564483-73.interdiff.txt | 26.16 KB | DamienMcKenna |
#73 | metatag-n2564483-73.patch | 77.31 KB | DamienMcKenna |
|
#71 | drupal_metatag.20151015_131817.tar_.gz | 6.39 MB | drupov |
#69 | metatag-n2564483-69.patch | 65.04 KB | DamienMcKenna |
|
#68 | metatag-n2564483-68.interdiff.txt | 3.14 KB | DamienMcKenna |
#68 | metatag-n2564483-68.patch | 54.88 KB | DamienMcKenna |
|
#67 | metatag-n2564483-64.patch | 53.46 KB | DamienMcKenna |
|
#67 | metatag-n2564483-64.interdiff.txt | 1.78 KB | DamienMcKenna |
#62 | metatag-n2564483-62.patch | 54 KB | DamienMcKenna |
|
#60 | metatag-n2564483-60.patch | 33.8 KB | DamienMcKenna |
|
#60 | metatag-n2564483-60.interdiff.txt | 9.39 KB | DamienMcKenna |
#57 | metatag-n2564483-57.patch | 33.96 KB | DamienMcKenna |
|
#57 | metatag-n2564483-57.interdiff.txt | 7.17 KB | DamienMcKenna |
#56 | metatag-n2564483-56.interdiff.txt | 2.99 KB | DamienMcKenna |
#56 | metatag-n2564483-56.patch | 31 KB | DamienMcKenna |
|
#54 | metatag-n2564483-54.interdiff.txt | 4.03 KB | DamienMcKenna |
#54 | metatag-n2564483-54.patch | 30.63 KB | DamienMcKenna |
|
#53 | metatag-n2564483-53.patch | 29.19 KB | DamienMcKenna |
|
#53 | metatag-n2564483-53.interdiff.txt | 6.73 KB | DamienMcKenna |
#52 | metatag-n2564483-52.patch | 29.56 KB | DamienMcKenna |
|
#52 | metatag-n2564483-52.interdiff.txt | 760 bytes | DamienMcKenna |
#49 | metatag-n2564483-49.interdiff.txt | 616 bytes | DamienMcKenna |
#49 | metatag-n2564483-49.patch | 29.44 KB | DamienMcKenna |
|
#48 | metatag-n2564483-48.patch | 29.51 KB | DamienMcKenna |
|
#48 | metatag-n2564483-48.interdiff.txt | 9.74 KB | DamienMcKenna |
#45 | metatag-n2564483-45-interdiff.txt | 5.33 KB | DamienMcKenna |
#45 | metatag-n2564483-45.patch | 23.88 KB | DamienMcKenna |
|
#42 | metatag-n2564483-42.patch | 22.55 KB | DamienMcKenna |
|
#41 | metatag-n2564483-41.patch | 22.41 KB | DamienMcKenna |
|
#35 | metatag-n2564483-35.patch | 19.64 KB | DamienMcKenna |
|
#31 | metatag-n2564483-31.patch | 19.01 KB | DamienMcKenna |
|
#29 | metatag-n2564483-29.patch | 19.1 KB | DamienMcKenna |
|
#27 | metatag-n2564483-27.patch | 0 bytes | DamienMcKenna |
|
#25 | metatag-n2564483-25.patch | 16.71 KB | DamienMcKenna |
|
Comments
Comment #2
mas0h CreditAttribution: mas0h commentedI also tried to refresh strings for metatag, but I got the following message:
Cannot refresh strings for Metatag.
Comment #3
DamienMcKennaTry the latest -dev release, I changed the context used for the translation strings.
Comment #4
mas0h CreditAttribution: mas0h commentedI already tried the latest dev dated September 06, but the same result.
Comment #5
sylus CreditAttribution: sylus commentedYeah I can confirm this as well on latest dev. Using Entity Translation with a token for dcterms.title: [node:title] | [site:name].
It will generate the token on both english + french but only the english ever shows. The functionality works as expected in metatag 1.4.
If i manually enter different text on the english + french dcterms.title that does work, just not tokens.
I am using latest dev with this issue: #2560649: Translate meta tags after tokens are replaced
Comment #6
sylus CreditAttribution: sylus commentedActually sorry for the noise seems the issue I mentioned above resolves my issue. I am not sure it should be opt-in behavior but it does work! Bumping down priority.
Comment #7
DamienMcKenna@mas0h: Can you please clarify what you're using for the translations, and presuming you're using the i18n module, the exact version you're using.
Comment #8
mas0h CreditAttribution: mas0h commentedI'm using Internationalization 7.x-1.13, and I'm doing translation from the normal interface admin/config/regional/translate/i18n_string
Comment #9
DamienMcKenna.
Comment #10
DamienMcKenna.
Comment #11
mas0h CreditAttribution: mas0h commentedSo, is it fixed in the latest dev?
Comment #12
DamienMcKennaI'm going to look into this today, I'll get back to you.
Comment #13
DamienMcKennaVia k_zoltan on iRC: http://hojtsy.hu/blog/2011-jun-01/challenges-satisfy-translation-needs-d...
Comment #14
mas0h CreditAttribution: mas0h commentedIs that supposed to fix my problem? As I understood it's how to make a custom module to translate things line contact page.
My question is, why do I need to do a custom module while the translation via translation interface was working normally after the last metatag updates?
This is a major change and you should have told us about that before we update, because right now I cannot roll back to previous version that was working fine with me because there were some database updates with your new versions of metatag.
Is there any way to roll back to previous versions of metatag-1.4?
Thanks.
Comment #15
DamienMcKenna@mas0h: No, that was for my own review. I didn't get to look into this too far yet, but I'll be doing a lot of testing this coming week to make sure that the i18n integration is correct and will provide update scripts to fix existing sites.
I'm not entirely sure what changed or when it changed, and I'm not sure if I wrote a change notice for anything related either. I'm really sorry for the mess over this but I will fix it.
FYI because of a bug on d.o it's impossible to look for unpublished change notices: #2302003: Change records tabs for contrib projects link to Drupal core's change records
Comment #16
mas0h CreditAttribution: mas0h commentedGood, now can relax :)
Comment #17
DamienMcKenna@mas0h: Would you please share with me an example record from the locales_source table that no longer translates? Thanks.
Comment #18
mas0h CreditAttribution: mas0h commentedThis is one record from locales_source table that was translated and now is gone:
I also checked locales_target table and found an entry for this lid, these are the values for this row:
Comment #19
mas0h CreditAttribution: mas0h commentedAfter further investigation I found that the all tokens were translated but the text strings between them lost translation and cannot be translated again.
Comment #20
DamienMcKennaComment #21
DamienMcKennaFYI I'm working on tests to confirm everything's where it should be, I'm hoping to have a working patch tomorrow sometime, then we can haggle on how it should work and fix the things that aren't working right.
Comment #22
DamienMcKennaSo the problem appears to be that it runs i18n_string_translate() prior to outputting the strings, but it never announces the translations via i18n_string_update().
FYI this is related to #1986032: i18n support for Metatag submodules (Views, Context, Panels), where the i18n_string support was refactored to work better for the submodules.
Comment #23
DamienMcKennaComment #24
DamienMcKennaI hope it isn't a silly question, but what's the benefit of using i18n_string in the first place? Wouldn't we have the same functionality just by wrapping the output in e.g. t($value, array(), array('context' => $metatag_name))? I'll be in #drupal-i18n most of the week, if anyone would be able to help work this out? Thanks.
Comment #25
DamienMcKennaA WIP patch I wanted to save to show some progress. Right now I'm working on making the global configurations translatable.
Comment #27
DamienMcKennaFurther progress - the configurations are now successfully translated.
Comment #28
DamienMcKennaOne notable change in #27 is that the configurations now include the current page's langcode as part of the cache ID.
Comment #29
DamienMcKennaOf course if I don't build the patch correctly it's all for naught.
Comment #31
DamienMcKennaThis fixes the unit tests.
Comment #33
DamienMcKennaThe i18n tests are failing because of missing test dependencies, so I've opened an issue with the testbot project (#2584815: Rebuild test dependencies for Metatag 7.x-1.x) that'll hopefully resolve this problem.
Comment #34
DamienMcKennaClosed two duplicates: #2030427: Integration with i18n_taxonomy for per-language defaults, #2027903: Incomplete i18n_strings integration means front page translations don't work.
Comment #35
DamienMcKennaRerolled.
Comment #37
DamienMcKennaClosed a duplicate: #2157349: Individual front page tags
Comment #38
drupov CreditAttribution: drupov commentedI just tested this the latest dev and the patch from #35 and the metatag strings sadly don't get translated.
They are listed on the translation interface and everything seems to be configured correctly, but they just don't get translated.
Comment #39
DamienMcKenna@drupov: Yes, I'm not finished fixing it yet. ;)
Comment #40
DamienMcKennaClosed a duplicate: #2587725: Source language of metatag strings changes to the default language of the site
Comment #41
DamienMcKennaSmall improvements, have added another test file for just locale support.
Comment #42
DamienMcKennaSome fixes to the Locale tests.
Comment #44
drupov CreditAttribution: drupov commentedThanks for the update. Translations seem to work now, but as in #40 the source language of the metatag strings is the default language of the site and not the "Source language" definied in Multilingual settings -> Strings (mostly English).
Comment #45
DamienMcKennaAll tests should now be green.
Comment #46
DamienMcKenna@drupov: I've reopened #2587725: Source language of metatag strings changes to the default language of the site after looking into it a little bit. I'm confused why it's happening this way, the labels are passed through the t() function and should just work?
Comment #47
drupov CreditAttribution: drupov commented#45-patch is good. Thanks!
Comment #48
DamienMcKennaAll of the tests are passing, and the homepage translations appear to work now.
Comment #49
DamienMcKennaThere's one test failing and I'm not sure why it fails.
Comment #51
DamienMcKennaStill to do:
Comment #52
DamienMcKennaThis fixes the broken test.
Comment #53
DamienMcKennaMinor adjustments.
Comment #54
DamienMcKennaAll exported configurations are now translated too.
Comment #56
DamienMcKennaFixed the tests and reordered it slightly so that now it tests for translation strings before one is manually inserted.
Comment #57
DamienMcKennaI split up the i18n tests into two methods - one for the default configurations, one for the custom configurations.
Comment #58
DamienMcKennaComment #59
DamienMcKennaComment #60
DamienMcKennaSome further refactoring.
Comment #61
DamienMcKennaThe todo list:
Make it translate default configurations provided by the hooks, right now they're not showing up on the translation page.Done.Fix all tests.Done.Comment #62
DamienMcKennaMetatag:Panels integration! Woot!
I've also refactored things a bit, including renaming the tests to be a little more consistent, and have split out the submodules' i18n tests into separate files.
Comment #63
DamienMcKennaNote - I haven't written any tests for the Metatag:Panels integration yet.
Comment #64
sylus CreditAttribution: sylus commentedBased on this issue I was curious if I should hold off on updating some sites to Metatag 1.7 until 1.8 comes out. Am I correct that all metatag translations are broken in this release and this is what this issue addresses? Sorry just looking for clarification before perform some upgrades.
Comment #65
sylus CreditAttribution: sylus commentedBased on this issue I was curious if I should hold off on updating some sites to Metatag 1.7 until 1.8 comes out. Am I correct that all metatag translations are broken in this release and this is what this issue addresses? Sorry just looking for clarification before perform some upgrades. Appreciate all the work @DamienMcKenna.
Comment #66
DamienMcKenna@sylus: Yes, if you're using i18n on a site with Metatag you should wait to update.
Comment #67
DamienMcKennaThis updates the Panels integration to use the full handler name as multiple variants on the same page would have the same task & subtask strings.
Comment #68
DamienMcKennaAnother small update, this time it only saves the meta tags if they were enabled.
Comment #69
DamienMcKennaThis should make the i18n functionality work for Metatag:Context and Metatag:Views too. Again, no tests yet, and there are some @todo items remaining, but it appears to work. Also, no interdiff because it's getting a little complicated at this point ;-)
Comment #70
DamienMcKennaAt this point all of the submodules have i18n functionality working, though they need tests, and the configurations (from admin/config/search/metatags) are translatable.
All that's left is dealing with the main {metatag} records for entities. The question is: how should these be handled? Any advice?
Comment #71
drupov CreditAttribution: drupov commentedHm, I just tested #69 with only "Metatag: Panels" and "Metatag: Views" submodules enabled and it worked for the global metatag, for a node, for a page manager page and a views page.
However I enabled "Metatag: Context" on the site also and the views page stopped translating. Also the context page did not get translated. The global metatag, the node and the page manager page still worked.
I am attaching a "drush arb" dump of the site I tested this. There is a custom module printing the content of meta name="description", so that the translations are visible better/faster.
Comment #72
DamienMcKenna@drupov: Is the problem you're seeing with the Metatag:Context translations happening because the per-path definitions are overriding the Views or Panels page paths that you were testing? Or are the metatag_views or metatag_panels translations in admin/config/regional/translate/translate no longer showing because the Context saved? I have all three running concurrently and I can see strings for all three, plus global configurations.
Comment #73
DamienMcKennaThis adds tests to the Metatag:Context-i18n integration, and refactors some things accordingly.
Comment #74
drupov CreditAttribution: drupov commentedNo, I am using different paths for all configurations in this test.
The metatag_panels translations are showing, only the views translations are not. And yes, the views translations stopped working after "Metatag: Context" got enabled. But I just tested it on a new instance (but with #73) and it worked ok.
BTW, the Context translations started translating on my previous instance (the one from #71, with the patch from #69) after applying the patch from #73. I guess it's ok now.
I hope that helps.
Comment #75
DamienMcKenna@drupov: Thanks, that does help.
Comment #76
DamienMcKennaThis adds tests for the Views-based display. Woot.
Comment #77
DamienMcKennaJust to confirm it, the patch in #76 is for making sure that meta tags still work on pages controlled by Views.
Comment #78
DamienMcKennaA minor change from #76, this just reduces the amount of effort spent on cache clearing.
Comment #79
DamienMcKennaA minor change.
Comment #80
mas0h CreditAttribution: mas0h commentedGreat work DamienMcKenna, I really appreciate your effort. I tried to apply the patch #79 with NetBeans IDE, but it said patch applied partially. Is this OK?
Comment #81
DamienMcKenna@mas0h: Thanks. Is there any way to tell what parts of the patch didn't apply correctly? In my local testing it seemed to be changes to some of the submodule info files that failed, but the main module changes should be ok.
Comment #82
mas0h CreditAttribution: mas0h commentedI have no idea, I applied the patch against the latest dev release. How to know what parts failed? what are you using for applying patches?
Comment #83
DamienMcKennaI use the following to apply patches:
curl [URL] | patch -p1
Does phpStorm show you files ending in .rej, e.g. metatag_views.info.rej? Those would contain details of which patch chunks failed.
Comment #84
mas0h CreditAttribution: mas0h commentedI don't know man, but I use NetBeans to apply patches, and there are no .rej files there.
Comment #85
chegor CreditAttribution: chegor as a volunteer commentedApplied patch from #79 against the latest dev.
There are 2 problems after:
1)In class MetatagPanelsI18nTest - 'name' repeated
2)In class MetatagCoreWithViewsTest - a)'name' repeated b)'extends' repeated
Comment #86
drupov CreditAttribution: drupov commentedHere are my results with latest dev and patch from #79
Comment #87
DamienMcKenna@chegor: What do you mean by "problems"? Do the tests fail? Do you see problems with the tests or the page output? Thanks.
@drupov: Thanks for providing that detail - the info file changes failing makes sense because the files are different between what's in git vs what's in the dev snapshots.
Comment #88
chegor CreditAttribution: chegor as a volunteer commentedNo, that's not about running tests.
1)Phpstorm said in these places "Patched (with problems)".
2)After patch applied in these places in code I see something like
Comment #89
drupov CreditAttribution: drupov commented@DamienMcKenna: yes, sorry, with the latest checkout from git the patch applies perfectly
Comment #90
DamienMcKennaI hope it isn't a silly question, but would anyone be upset if I were to remove all of the non-working i18n_strings -based translations of entity values (all of the values that get saved in the {metatag} table), and instead rely on the normal entity translation functionality for entities meta tags?
Comment #91
mas0h CreditAttribution: mas0h commentedI don't use entity translation, will this mean that I will have to install this module to do translate my strings?
Comment #92
DamienMcKennaJust to be clear, my comment in #90 was strictly about the entity string translations, translations on config / default / Panels / Views / Context would continue to work.
The question, then, is how translations for entity values should work? Right now it runs i18n_string() on the strings before they tokens are parsed, and then again (optionally) after the tokens are parsed. Is this ok? Should it be changed to only running after the tokens are parsed? Right now this doesn't fully work anyway, so will need further work.
Current bugs:
The worst part? Once we work out how it should work I'm not sure there'll be an easy way to update any of the existing translations, they may have to be re-entered :( That's still to-be-confirmed, but I am concerned about it.
Comment #93
DamienMcKennaThis updates the README.txt, removes an incorrect call to i18n_string_object_update(), and puts back in a call to i18n_string(). Output i18n still doesn't work though ;-)
Comment #94
DamienMcKennaSome minor improvement to the README.txt file.
Comment #95
jwilson3Totally in favor of moving to entity translation. But I'm opinionated because we *always* use entity translation.
Functionally speaking, the big difference I can see is that i18n_strings method has one single UI for finding translations and adding them, and the entity translation way depends more on a translate dropbutton / tab / etc found on each entity being translated, thus no centralized place to enter translations and thus more clicky clicky in the UI (maybe theres a module for this?).
Aside from UX differences that are out of scope of being fixed by this issue, one addition problem that may be surmountable here is that sites currently using the string method would have to re-create translations using the entity way, so maybe the module could include an update script that checks for presence of entity_translate, and if present runs a migration inserting entities for existing strings, and removes those strings? Thinking about this again, maybe not a great method, because if the module isnt present things would simply break. Hrm... hard problem :(
Comment #96
jwilson3Reading the last patch you're actually proposing maintaining both string and entity approaches for translation. Ok! Mindblown!
Comment #97
DamienMcKenna@jwilson3: Yes, we've started down the road to supporting i18n_string and sites already use it, so we can't go back. I don't think it'll take much work to do at this point, just need to confirm how it's supposed to work.
Comment #98
DamienMcKennaThis includes i18n_strings support for output tags. And more tests.
This still needs an update script to batch-create translations for all existing sites, but otherwise I think it's functionally complete.
Please test the heck out of it :-)
Comment #99
DamienMcKennaThings to decide:
Thanks!
Comment #100
mas0h CreditAttribution: mas0h commentedApplied the last patch #98 against latest dev October, 12. Again I cannot translate metatag strings, deleted old strings and re-saved content-type metatag form again, and visited translation interface again with the same result, I couldn't translate my strings. re-rolled to metatag-1.4, still not able to translate, but my old translations worked. I'm not touching this again until it's 100% safe and fixed.
Thank you for your hard work.
Comment #101
DamienMcKenna@mas0h: So it seems that we need an update script to update meta tag configurations from the following structures:
to this:
Comment #102
DamienMcKennaI had to split out the i18n tests into separate files as it was taking too long to run the tests.
Comment #103
DamienMcKenna@mas0h: Can you please let me know what sort of records you see in the {locales_source} table for items that are *not* configs, i.e. that have a different format than what you posted in #18?
Comment #104
DamienMcKennaI've updated the issue summary with the latest details.
Comment #105
DamienMcKennaThis adds translations to the other meta tag class types.
Comment #106
DamienMcKennaDon't bother trying to process meta tags on the submodules on admin pages and don't try running translations unless the 'admin page' option is enabled; making this change/fix because it was adding meta tag translations on the Metatag settings page(s).
Comment #107
DamienMcKennaComment #108
mas0h CreditAttribution: mas0h commentedI have other records for taxonomy terms like this:
Also some for views like:
And for metatag related records:
and so on for the same node number with description, keywords, abstract.etc.
Comment #109
das-peter CreditAttribution: das-peter at Cando commentedI couldn't review as much as I liked but here's a first feedback:
Not sure if I understand it correctly. Would this mean that e.g.
This is my sentence with a [token]
couldn't be switched to Yoda stylezMy sentence with a [token] this is
? We should be able to "move around" tokens in a translation since the structure of sentences vary from language to language.If a token is replace before translation wouldn't this make it impossible to use tokens in the translation itself? Me is a bit confused :)
Visual code review:
Inline comments must end in full-stops, exclamation marks, or question marks.
Variable not used.
Wondering if we can / should use the uuid if available.
A rebuild of exported displays could lead to a changed did and thus to orphaned translations.
Isn't this a copy/paste artifact?
Comment #110
DamienMcKenna@das-peter: Thanks for the review.
tl;dr: Yes, strings are translatable before the tokens are parsed.
There are three different types of string translations currently available via the patch - configurations, the submodule custom integrations (Context, Panels, Views), and then finally the output. If a site has a global configuration set up via the defaults system at admin/config/search/metatags, then those will be translated when they're loaded on the page and before the per-entity values are loaded on top; this is usually where token-based values are set, so those will be translated correctly.
The one-off values that are entered in an entity (e.g. node) form are not translated until they're output on the final page. I did it this way because I suspect that most people are not switching from one token to another on a per-node basis, that instead they're filling in complete strings, so to translate both the pre-tokenized and post-tokenized strings would result in a *lot* of duplicates.
One additional question I have: should the per-entity translations be keyed off the revision ID as well as the entity ID, or just the entity ID? Or would it be better to offer an option on which is used?
I've fixed the first two items you noticed, thanks.
As for the hook_i18n_object_info() implementations, I was kinda guessing on how to make them work, it's likely I have something incorrect.
Comment #111
DamienMcKennaThis includes some refactoring and improvements:
All existing questions still remain.
Comment #112
DamienMcKennaFYI, one thing I'm trying to do in relation to this is work out how to handle Smartling integration (#2604884: i18n_string support?), I'm hoping I won't have to change the i18n integration further because of it.
Comment #113
DamienMcKennaRerolled.
Comment #114
DamienMcKennaRerolled again.
Comment #115
pwiniacki CreditAttribution: pwiniacki commentedGREAT job. I did test previous patches - working well
Notice: Undefined index: group in metatag_i18n_object_info() (line 99 of \sites\all\modules\metatag\metatag.i18n.inc).
and now I did test last one from #114 - all seems to be OK. You can drop 'Localized global Meta tags' module now (big thanks for author). Damien you are very active and talented maintainer - big thanks for you and rest of you who fix this.
Tested with stable version of: Domain Variable, Domain Access, i18n, variable + metatag with a patch.
Comment #116
DamienMcKennaBased upon experience on a large site, something needs to be refactored as the string updating via admin/config/regional/translate/i18n_string can fail on a site with lots of supported object configurations.
If anyone has any idea on how to what to do when hook_i18n_string_list times out, please let me know.
Comment #118
sylus CreditAttribution: sylus commentedI am interested in why hook_i18n_strings_list timeouts. I don't see much difference in logic with how other modules use hook_i18n_string_list particulatly for i18n panels which has big objects to import and does roughly the same thing. Though the second link is interesting as shows how their invocation uses drupal_static before the call to ctools_include('export') and ctools_export_crud_load_all.
http://cgit.drupalcode.org/panels/tree/i18n_panels/i18n_panels.module#n302
http://cgit.drupalcode.org/panels/tree/i18n_panels/i18n_panels.module#n375
As an aside I was wondering about the following line under the hook
Should we only need to check if the group is metatag? I guess we need to check from all the groups?
Comment #119
DamienMcKenna@sylus: It seems like all occurrences of hook_i18n_string_list would have the potential to time out on sites with lots of displays. On this one site I'm working with there are several hundred Panels variants spread across dozens of Panels pages.
That code is correct - when someone doesn't select a specific group to process it is supposed to process all of them by setting $group to 'all'.
Comment #120
DamienMcKennaFYI while I've been redoing the translation functionality to use the object system, one UX improvement I've added is 'translate' subpages for the configuration system.
Comment #121
sylus CreditAttribution: sylus commentedAh thanks for the clarification. I see what you mean now I wasn't able to get a time out but I also don't have several hundred panel variants. Excited to get this patch in but not really sure either how to resolve those time out issues your experiencing.
Comment #122
sylus CreditAttribution: sylus commentedIs that the only issue holding up this release?
I unfortunately did upgrade a few sites to metatag v1.7 and don't want to resort to checking out a git hash in my makefile to apply the patch.
Though the current patch does work great and resolves my issues.
I'd be happy to help however I can :)
Comment #123
DamienMcKennaThere are a few @todo notes in the codebase, and in my latest WIP patch, and I need to talk to someone in the #drupal-i18n IRC channel about how to implement this properly, because my current effort isn't finding the strings.
Comment #124
DamienMcKennaWIP to change to using hook_i18n_string_objects() instead of hook_i18n_string_list(). It also adds a new Translate page for configurations.
Comment #126
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #128
DamienMcKennaTodo list:
Comment #129
DamienMcKennaWIP that I don't want to loose. The main configs now load metatag_i18n_list_configs, a 'list callback' instead of hooks.
Comment #133
sylus CreditAttribution: sylus commentedJust wanted to chime in and say I really appreciate all your work on this @DamienMcKenna!
Comment #134
DamienMcKennaThis fixes the 12 failing tests and improves the docblocks in the metatag.inc file.
Comment #135
pwiniacki CreditAttribution: pwiniacki commentedpatch applied partially, working good. Gonna test it in some live environment soon. Agree with @sylus.
Comment #136
sylus CreditAttribution: sylus commentedI have tried the latest patch and all seems good as well. Still checking some integrations with tokens and panels but don't see the problems that created this issue.
Think this is the only blocker for next metatag release. I'll try to post some of the areas I tested within a few hours.
Comment #137
DamienMcKennaFYI the submodule configurations are being re-done.
Comment #138
ptkobe CreditAttribution: ptkobe commentedI've applied the #134 patch to the git repo and I got pretty much everything I needed: translate strings works fine now, I could translate every meta tag, and even the multi-language front page is ok. The existent meta tags from 7x-1.7 were kept. So, thank you, Damien, a lot.
The only glitch I noticed was that if I have a [site-name] with a character that is outputted as "'" to the html source, and if I use [site-name] in a, say, og: meta tag, that tag gets to the html source as "'".
EDIT: It was the #134 patch, not #124.
Comment #139
DamienMcKenna@ptkobe: So it's double encoded?
Comment #140
ptkobe CreditAttribution: ptkobe commentedYes, exactly, I suppose.
Comment #141
DamienMcKennaThis version finishes implementing the metatag_i18n_translate_output variable to control whether the output tags are made available for translation, and fills in the update script to convert existing meta tag translations.
Comment #142
DamienMcKennaThis adds some initial tests for using Panels for node_view displays.
Comment #143
DamienMcKennaTodo list update:
Comment #144
DamienMcKenna@ptkobe: Ok, I can confirm that. Bother. Guess I'll have to fix it ;)
Comment #145
DamienMcKennaOk, the double-encoding bug is being handled in #2180031: Metatag displays "'" instead of apostrophe in meta title tag.
Comment #146
DamienMcKennaI've fixed the double-encoding bug in #2180031, now back to the main event.
Comment #147
ptkobe CreditAttribution: ptkobe commentedApplied metatag-n2180031-14.patch and it solved the double encoding on #134.
I guess I should say that I'm testing only for meta tags on pages with multi-lingual support (not for panels or views, context, admin pages, etc...).
patch at https://www.drupal.org/files/issues/metatag-n2180031-14.patch
Comment #148
lmeurs CreditAttribution: lmeurs commentedWe started using the Metatags module on a multilingual project more extensively just recently. Nodes are being content translated using i18n 7.x-1.13.
This seems to work just fine for nodes and views pages, but not for the front page node which always shows the metatag texts like title and description in the default language. NB: It only happens when the path only exists out of the language prefix as in
/nl
, not when the path is the full alias to the translated front page node as in/nl/my-front-page
.I tried the dev version if Metatags patched with patch from #142, ran database updates and cleared all caches, unfortunately no changes.
Is what we are experiencing related to this issue? Thanks a lot for all the great work!
Comment #149
DamienMcKenna@lmeurs: Please describe how your front page nodes are set up - are you using Entity Translation or Content Translation, are you using the same nid for each version of the front page or do they have different nids, are you using the "front page" configuration from admin/config/search/metatag or the node's values?
Comment #150
lmeurs CreditAttribution: lmeurs commented@DamienMcKenna: Thanks for the quick response! The culprit appeared to be the same node ID for both languages. Since the front page only shows blocks and no node content we did not notice this any earlier... After changing the settings everything worked out fine with the latest stable version of Metatags. My apologies for the noise and so many thanks.
Comment #151
DamienMcKenna@lmeurs: No problem, thanks for chiming in.
Comment #152
rodarc CreditAttribution: rodarc commentedWe are using Panels Everywhere and have encountered a serious issue with using current_path() in the string context.
As Panels handle all the page views on the site a new string context is created for every unique url on the site.
This has led the translation table to grow out of control to 1 million+ rows.
We have a lot of entities passing through the site every day so we have a lot of unique urls that only last for a short time before being replaced by others.
Comment #153
DamienMcKenna@rodarc: That's an interesting issue. For your scenario, what would you suggest doing here? Maybe add a hook for custom modules to work out a context to use?
Comment #154
rodarc CreditAttribution: rodarc commentedThanks for your quick reply.
I think that a hook would be a good solution.
Comment #155
DamienMcKennaThis adds hook_metatag_i18n_context_alter() which lets the string's $context be altered before it's passed in, and if the string is erased then it won't be translated.
Comment #156
DamienMcKennaStill needs work on the submodules.
Comment #157
DamienMcKennaThis is a WIP to rewrite the submodule handling using the new list/load structure. It doesn't work yet and I'm starting to get concerned it might not work due to the use of CTools exportables.
Comment #158
DamienMcKenna@webflo: How would you suggest handling the submodules? They all have the situation where they need to identify configs that are both exported and in the database, so the primary 'key' value wouldn't always be applicable? I've added both a 'list callback' and 'load callback', but it doesn't seem like the load callbacks are being triggered? Any suggestions? Thanks.
Comment #159
DamienMcKennaFYI the question in #58 is open to anyone who might have an answer, not just webflo :)
Comment #160
DamienMcKennaRenamed the MetatagCoreWithI18nTest class to MetatagCoreWithI18nOutputTest, and other minuscule changes.
Comment #161
DamienMcKennaForgot to update the info file.
Comment #162
DamienMcKennaThis adds assertResponse() calls for all drupalGet() and drupalPost() calls.
Comment #163
DamienMcKennaDoh, uploaded the wrong files.
Comment #164
DamienMcKennaOk, so the remaining issues boil down to one thing: What's the best way of listing all objects that need translating, given I need to support exported configurations and not just records in the database? I've been digging through it but haven't been able to work it out yet. I'll be in IRC all week, if anyone would have some time to help me? Thanks.
Comment #165
DamienMcKennaMoved the test files into a subdirectory of each submodule, and added a custom module to each for holding default configurations that will have tests written for them.
Comment #166
DamienMcKennaThis adds tests for a default/exported Panels page that contains three meta tags.
Comment #167
DamienMcKennaSome initial i18n tests for Metatag:Panels.
Comment #168
DamienMcKennaThe Metatag:Panels tests work because they're only dealing with exported displays, which are triggered via metatag_panels_ctools_render_alter(), it doesn't (yet) test for existing records in the database that need parsing. Will work on that soon but also (still) need help getting that piece to work correctly.
Comment #169
DamienMcKennaAnother problem: On the admin/config/regional/translate/i18n_string page, if you select "Clean up left over strings.", which is the default, strings saved by Metatag:Panels are removed.
Comment #170
DamienMcKennaAnother problem: On the admin/config/regional/translate/i18n_string page, if you select "Clean up left over strings.", which is the default, strings saved by Metatag:Panels are removed.
Comment #171
DamienMcKennaThis shows the problem - after the strings have been refreshed in MetatagPanelsI18nTest::setUp() by i18n_string_refresh_group('metatag') the Panels strings should be available, but they aren't.
Comment #174
DamienMcKennaWith some help from Gabor Hojtsy and webflo in IRC I was able to get the Panels integration working.
Comment #177
DamienMcKennaDoh! I renamed one of the test classes but forgot to update another that extended from it.
Comment #178
DamienMcKennaComment #179
DamienMcKennaThat's better :-)
Comment #180
DamienMcKennaNow trying to make the Metatag:Views functionality to work.
Comment #181
DamienMcKennaWorking on a test Views page. Also, simplified the name of the test Panels page.
Comment #182
DamienMcKennaFixed the main Metatag:Views tests.
Comment #187
DamienMcKennaContinued work on the Metatag:Views integration.
Comment #190
DamienMcKennaThis appears to fix the Metatag:Views integration!!!! :-D
Comment #191
DamienMcKennaThis adds some more tests for Metatag:Context.
Comment #192
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedI manually tested the Metatag: Panels integration with #190 applied. Everything seemed to work as expected, however, I notice a lot of logging by i18n_string. They look like this:
On a busy site, this can cause a lot of unwanted overhead. I think it might be possible to disable the comments by adding 'watchdog' => FALSE to the $options array in metatag_translate_metatag() in metatag.module (or better yet, make it configurable):
Would that be the right spot to add it?
Comment #193
DamienMcKenna@pjonckiere: Thanks for noticing that. This adds a new option to enable the watchdog logging, which is now disabled by default.
Comment #194
DamienMcKennaThis is the output when I run the tests locally:
(This is a total of 1377 test assertions! Woot!)
Anyone able to identify any problems with the patch, or missing use cases? I'd like to get this committed ASAP.
Comment #195
sylus CreditAttribution: sylus commentedThis is awesome, thanks so much @DamienMcKenna! Was there still the problem of "listing all objects that need translating"? Or was that solved?
Comment #196
DamienMcKenna@sylus: This should cover everything, if it doesn't then please let me know.
Comment #197
sylus CreditAttribution: sylus commentedI did a review of this, hope this helps! Again I can't say enough for all that you did!
Looks like currently scenario 3 is failing but thinking to do with token handling?(Was unrelated issue)git clone --branch 7.x-1.x http://git.drupal.org/project/metatag.git && patch -p1 < metatag-n2564483-193.patch
time drush --root=/data/var/www updatedb
Scenario 1 (Entity Translated Node with Workbench Moderation)
Node Edit
Title: Metatag Translation Testing
Language: EN
Body: Metatag Translation for Entity Translated Node
Moderation: Draft
Tokens:
Node View Draft
Scenario 2 (Entity Translated Node with Workbench Moderation and Deploy Enabled)
Node Edit
Title: Metatag Translation Testing
Language: EN
Body: Metatag Translation for Entity Translated Node
Moderation: Published
Tokens:
Node Published (Source Site)
Node Published (Destination Site)
Scenario 3 (Entity Translated Node with French Translation added / Workbench Moderation)
Node Edit
Title: Metatag Traduction Testing
Language: FR
Body: Traduction Metatag pour Node Entité Traduit
Moderation: Published
Tokens:
Node Published (EN)
Node Published (FR)
Comment #198
sylus CreditAttribution: sylus commentedNevermind I forgot I was fiddling around with admin_language for an unrelated project and this was causing issues so removed it and the third scenario worked. Will continue some tests and post results here. Sorry for the false notice! I have adjusted my the 3rd scenario to reflect success.
Currently English + French Metatags with tokens seems to work both with Workbench Moderation and the Deploy + UUID + Services deploy paradigm.
I will start to take a look at Panels now.
Comment #199
sylus CreditAttribution: sylus commentedScenario 4 (Panel Page)
Panels Metatag Configuration
Tokens:
Panels Page (EN)
Note: Went to the Translate Interface screen and translated the english non tokens above. They all appeared properly and with given contexts.
Panels Page (FR)
Comment #200
sylus CreditAttribution: sylus commentedScenario 5 (View)
Overrode Metatag Views Config @ admin/config/search/metatags/config/view
Tokens:
…
Views Page Display (EN)
Note: Went to the Translate Interface screen and translated the english non tokens above. They all appeared properly and with given contexts.
Views Page Display (FR)
Comment #201
sylus CreditAttribution: sylus commentedEverything seems to work on my local testing am now going to test on a site with lots of existing content but on initial evaluation haven't seen any regressions and everything is working as expected. This is awesome!
Comment #202
DamienMcKenna@sylus: Thanks for all the testing, that's excellent news!
I'm going to test it on a rather large site I have access to, rather than just my local testbed, I'll post an update on how it goes.
Comment #203
sylus CreditAttribution: sylus commentedSo I ran a few more tests and one with a site with quite a few thousand nodes. This was from Metatag 7.x-1.4 -> 7.x-1.x (latest)
I did maybe notice a regression to do with html entities? Though not sure if something else related but an untouched site has the following:
Metatag updated site:
Seems like carriage returns are being encoded or something? The token that fills out description is just simply a [node:summary].
Comment #204
DamienMcKenna@sylus: Are you testing with the very latest dev release? I added a change recently to better handle encoding of HTML entities from tokens.
Comment #205
DamienMcKenna@sylus: Either way, I suggest if the problem persists that we take the string encoding problems to a separate issue.
Comment #206
sylus CreditAttribution: sylus commentedYeah I am on the latest dev and can only reproduce this on metatag dev, pasting the following should allow you to reproduce:
Your right though should be filed as a separate issue :) I'll try to see if can find the culprit before file one. Other then that on a large site everything was good. ^_^
Comment #207
sylus CreditAttribution: sylus commentedI think I found the problem in this patch under metatag.inc for the following function:
I added back those lines that were removed by the patch and then the entities rendered as expected.
Comment #208
sylus CreditAttribution: sylus commentedWould you like me to reroll the patch is changes look okay? Hoping that potentially a new metatag could be released this upcoming week :)
Comment #209
DamienMcKenna@sylus: I don't think a reroll is needed, I just need to test it on a site or two at work tomorrow and it should be good to go.
Comment #210
k_zoltan CreditAttribution: k_zoltan at Cylex commentedI tested the latest patch, on a site with 800000+ nodes:
git clone --branch 7.x-1.x http://git.drupal.org/project/metatag.git && patch -p1 < metatag-n2564483-193.patch
Everything worked well.
Thanks for your efforts.
Comment #211
pwiniacki CreditAttribution: pwiniacki commentedI have tested it on page with Domain Access 7.x-3.11, Domain Variable 7.x-1.1 with few subdomains/multilingual pages. Patch applied partially to 7.x-1.7 metatag module.
admin/config/system/site-information (admin/structure/domain/variables all variables checked)
Meta description, Meta keywords are not available and cannot be translated. Also you can't chose email for different language version of your subdomains/domains. Front page, Error pages are working fine. Different node language Titles and Descriptions etc. are working fine.
Comment #212
DamienMcKenna@pwiniacki: What are you using for the translations, where are you trying to translate them?
Comment #213
sylus CreditAttribution: sylus commented@pwiniacki said patch applied partially to 7.x-1.7? The patch shouldn't really apply at all since only really applies to 7.x-1.x. That is probably the problem as most of patch didn't apply.
Both of those meta tags can be translated and I have outlined scenario showing that they are.
The patch has an issue against latest dev but that is only for the test file:
I think we just need:
Added to metatag.inc for the tidyValue function.
Comment #214
pwiniacki CreditAttribution: pwiniacki commented@DamienMcKenna admin/config/system/site-information (I'm using i18n and entity mix) but it should be done with Domain Meta Tags 7.x-1.x-dev
@sylus it doesn't matter if you use dev or stable, I try to change netbean and use git directly latter on and test it on clean drupal install.
Comment #215
DamienMcKenna@pwiniacki: There may be limitations in Domain Meta Tags, it may need to be updated to handle i18n too; I suspect the problems you're seeing are outside of Metatag's scope.
Comment #216
pwiniacki CreditAttribution: pwiniacki commented@DamienMcKenna got it, BTW there are two 'domain meta' modules:
https://www.drupal.org/project/domain_meta
https://www.drupal.org/project/domains_metatag
I'm using first one, but second is broken too. Normal sites are working fine, clean drupal install confirm that there is problem with integration between Metatag and any of the above modules so in multidomain configuration it's worthless (atm) to use any meta module.
@Damien Support one of the modules to better integrate with new metatag would be on you @todo list, and IF, any time soon? :)
Comment #218
DamienMcKennaI gave this a try on a large site that extensively uses the Panels integration, and all appears to be working correctly.
Committed! Thank you all so much for your help and patience over the past few months as we worked through this!
Comment #219
DamienMcKenna@pwiniacki: It'd be best to bring it up in their respective issue queues - I haven't had time to work on the Domain Access integration and can't comment on what anyone else has done.
Comment #220
k_zoltan CreditAttribution: k_zoltan at Cylex commentedI also tried to apply the patch to the 1.7 version of the metatag module but that didn't worked
BUT
This definitely works as it should.
Tested the module on 2 more instances in German language having 80000+ and 40000+ nodes.
I used Panels Metatags. Works like a charm. :)
Comment #221
mas0h CreditAttribution: mas0h commentedAm I missing something here? I applied patch #193 on the latest dev yesterday, did database update. And I'm still facing the same symptoms. Variables are translated correctly but text strings reverted to original language, tried to re-translate them with no success, no matter what I do, they are listed in the translation dashboard as not translated strings.
Any hint or explanation would be appreciated.
Comment #222
DamienMcKenna@mas0h: If you applied patch 193 to the latest -dev release then it would have reverted the changes - patch 193 is already in the -dev release. Please just try the -dev release and let us know if you have any problems with it.
Comment #223
mas0h CreditAttribution: mas0h commentedI tried also with latest dev without patching, cleared all caches, ran update.php, and the same symptoms remain.
Comment #224
DamienMcKenna@mas0h: Please just try v7.x-1.8, and make sure you clear all caches after running the db updates.
Comment #225
mas0h CreditAttribution: mas0h commentedOK, I will get back to you with results soon.
Thank you for your hard work on this.
Comment #226
mas0h CreditAttribution: mas0h commentedAgain same result, I downloaded 1.8 version, cleaned all caches, and then db update, but there were no updates to do. Tokens are translated, but text strings are not.
Some background info about my case:
I was using version 1.6 and everything was OK, until I downloaded 1.7, then that started to happen, there were some database updates with 1.7.
I downloaded 1.6 again and replaced 1.7, and everything started to work normally again. so I reverted 1.6 module files only, not database version.
Comment #227
DamienMcKenna@mas0h: Please open a new issue to discuss this so we can start with a fresh look at your setup. Thanks.
Comment #228
mas0h CreditAttribution: mas0h commentedI opened another issue here https://www.drupal.org/node/2652120