Translating region names (part 1)

Damien Tournoud - January 1, 2008 - 18:23
Project:Drupal
Version:6.x-dev
Component:block.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

In the current implementation, region names are not translatable (originally reported by kkaefer in http://groups.drupal.org/node/7843). To change this, we need three things:

  1. Pass region names from system_region_list() to t() in block_admin_display_form() and template_preprocess_block_admin_display_form(). It seems that's the only two places where region names are displayed to the user.
  2. Add the parsing of region[] tags in themes .info files to potx_find_info_file_strings() in potx.inc.
  3. Manually add default region names to potx.

The following patch address the first concern.

AttachmentSize
d6-locale-region-names.patch1.06 KB

#1

Gábor Hojtsy - January 2, 2008 - 14:46
Status:active» patch (code needs work)

Hm, system_region_list() already does array_map('t', ...) on the region list, so it should already work? What is going wrong?

#2

Damien Tournoud - January 2, 2008 - 14:54
Status:patch (code needs work)» won't fix

Hum, ok. So this is not needed, silly me.

We still need #2 and #3, which are covered by http://drupal.org/node/205360

 
 

Drupal is a registered trademark of Dries Buytaert.