I'm trying to create a seperate textgroup for a group of modules to be able to manage translations better.

I've created hook_locale as follows:

function <module_name>_locale($op = 'groups') {
  switch ($op) {
    case 'groups':
      return array('textgroupName' => t('TextgroupName'));
    default:
      return array();
  }
}

And this works. I can import po files into this textgroup, at least according to the interface. If I look in table locale_source, the textgroup is still "default". And when I try exporting all strings from the new textgroup in a .po or .pot file, I get a file with only the po header, and no strings.

I suspect this has something to do with the English strings being labeled as textgroup 'default' in table locales_source.

How do I get the strings in my module (all the t(...)) in the new textgroup?

Thanks, F.J.

Comments

Gábor Hojtsy’s picture

Wow, you just identified a bug. (I looked at the code and I can confirm that the group is not taken over properly to imported strings). Please open a bug report at http://drupal.org/node/add/project-issue/drupal

karna’s picture

Hi Gábor,

I've created the issue here: http://drupal.org/node/192406

Thanks for looking into this, as it is a very good feature.

--------
F.J. Jungen
www.boria.nl