Monday, August 08, 2011

Translate notifications and messages for organic groups

Ref: http://drupal.org/node/564734


1) Edit your settings.php and add the $conf['i18n_variables'] array as described here: Multilingual Variables.
2) Append to the list of variables the following list:

  // Organic Groups.
  'og_new_node_subject',
  'og_new_node_body',
  'og_admin_email_subject',
  'og_admin_email_body',
  'og_approve_user_subject',
  'og_approve_user_body',
  'og_deny_user_subject',
  'og_deny_user_body',
  'og_invite_user_subject',
  'og_invite_user_body',
  'og_request_user_subject',
  'og_request_user_body',
  'og_new_admin_subject',
  'og_new_admin_body',

3) Now, visit admin/og/og in any language to configure OG email templates for that language. ie. saving this page from es/admin/og/og will save your email templates in spanish version of OG variables. save from fr/admin/og/og to save them in french, and so on.

BTW, if you're looking for a way to translate mail templates in Notifications/Messaging, then take a look at #265680: Translation of email templates . Needs testing and feedback! :) However, currently, only 4.x messaging is supported, which does not work with og.

No comments: