I discovered this a while ago as part of #226587: Default sidebar region labels are confusing (wrong) for RTL languages, and now confirmed that it is a bug.
Theme region names in Drupal 7 are not being translated. In Drupal 6, they were translated in system_region_list(), but that code appears to have been removed (inadvertently) in #511284: Add html_top and move the admin toolbar into html_top.
This patch restores the translation. I confirmed that with a Spanish translation of D7 downloaded from localize.drupal.org, applying this patch makes the region names on admin/structure/block switch from English to Spanish, so it's all working :)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | regionsFrenchLanguageBefore.png | 37.04 KB | Tor Arne Thune |
| #2 | regionsFrenchLanguageAfter.png | 39.74 KB | Tor Arne Thune |
| translate-theme-regions.patch | 731 bytes | David_Rothstein |
Comments
Comment #1
JulienD commentedI can also reproduce the problem.
I started my installation of Drupal in English and I added an other language (French). Regions names of the admin block interface were still in English.
I tried your patch and it's solved the problem
Comment #2
Tor Arne Thune commentedTested the patch and had the same results as JulienD in #1. See attached screenshots for before and after patch.
Good catch and great improvement!
+1 to RTBC.
Comment #3
dawehnerComment #4
dries commentedCommitted to 7.x and 8.x. Thanks!
Comment #5
bfroehle commentedUntagging since it's been committed to 7.x