Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
locale.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2013 at 19:23 UTC
Updated:
12 Dec 2014 at 13:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joelpittetTaking a crack, one of these will go through
Comment #2
joelpittetGot nowhere slowly... going to give up on this one, first thought though was doesn't need #type=>table because it doesn't need tableselect or tabledrag... but that seems to take it out of the form_api and none of the textarea's get #value properties.
Comment #3
duellj commentedThis patch should pass, let's see what testbot says
Comment #4
duellj commented#3: 1938916-3-locale-tables.patch queued for re-testing.
Comment #5
joelpittet#3: 1938916-3-locale-tables.patch queued for re-testing.
Comment #6
jibranTagging.
Comment #7
steinmb commentedProfiling data
admin/config/regional/translate
Comment #8
joelpittetThe profiling looks great. Though there is a markup issue that needs to be addressed.
Comment #9
joelpittetAlso missing pager
Comment #10
internetdevels commentedRerolled patch with added pager attached.
Comment #12
internetdevels commented10: drupal-convert_locale_theme_table-1938916-10.patch queued for re-testing.
Comment #14
joelpittetTests pass locally, retesting. Also needs another round of markup and performance testing because the theme function was removed though not used.
Comment #15
f5.andrii commented10: drupal-convert_locale_theme_table-1938916-10.patch queued for re-testing.
Comment #16
akalata commentedComment #17
akalata commentedRerolled
Comment #18
a-fro commented@akalata, here's a code review.
Per Joel's previous suggestions, please use the updated array [] syntax and injected $this->t() in the #header array.
Regarding manually testing, I had to add a language at /admin/config/regional/language/add, then I could see the table at /admin/config/regional/translate.
I've attached an image of where it breaks. I think it's the removed lines 65 and 70, which include
and tags that need to be fixed. @joelpittet may have suggestions if you have questions.
Comment #19
a-fro commentedComment #20
akalata commentedThanks @a-fro!
Attached an update after working with @joelpittet. We also noticed that the $string->context isn't being saved into the database -- maybe that part is blocked by #1035716: [policy, no patch] Decide and document guidelines for using string context?
Comment #21
akalata commented@joelpittet and @a-fro saw that I'd commented a conditional to test $string->comment; adding that back!
Comment #23
joelpittetThis doesn't need profiling it's admin facing theme function conversions. I believe manual testing on this patch is all that is needed as everything seems to look good for me.
This patch is just minor nitpicky formatting that I hope is not too much but tried to minimize the patch diff by not changing everything.
Comment #24
a-fro commentedManual testing results were that the id on the table is still removed (expected and desired), xhtml br tags are now html5 (without closing slash) and the strings id's of the singular/plural have been replaced with indexes. @joelpittet said that is not a problem because they are not being targeted by css or js. Marking as rtbc.
Comment #25
akalata commentedFollowing up on my $string->context question from #20, I've found that a small number of imported translations have context data. I'm assuming they all should, but confirming that this is a different issue than this one.
Comment #26
alexpottThe br should not have a closing slash.
Comment #27
joelpittetThanks for catching that, saves me from doing that again in the self-closing #1388926: Remove all references to "self-closing" void elements in core
Comment #28
lauriiiTested this manually and didn't find any visual changes. Code looks also good to me so lets go.
Comment #29
alexpottThis issue is a normal task so we need to outline how it fits within the allowable Drupal 8 beta criteria. Can someone add Drupal 8 beta phase evaluation template to the issue summary.
Comment #30
lauriiiEverything looks still good and patch applies. I also added the beta evaluation.
Locale tables after patch:

Comment #31
alexpottCommitted d4e8abd and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation for to the issue summary.