You can do the opposite, define a tt function if the module doesn't exist, it keeps your code cleaner
Met vriendelijke groeten, Peter Droogmans Attiks Ketsstraat 94 2140 Borgerhout [email protected] 03-288 61 17 0497-44 44 77 -----Original Message----- From: mark burdett <[email protected]> Sent: woensdag 23 september 2009 18:40 To: [email protected] <[email protected]> Cc: [email protected] <[email protected]> Subject: Re: [development] Translating database fields On Wed, Sep 23, 2009 at 7:42 AM, Jennifer Hodgdon <[email protected]> wrote: > There's a whole section in the Handbook on how to do this: > http://drupal.org/node/303984 This is the specific page I used recently, http://drupal.org/node/304002 "Making your custom data translatable" Littering your module with if (module_exists('i18nstrings')) isn't so nice, so I'm hoping that a future version of core will provide a real API for string translation.. (where's the issue for this? :) --mark
