How do you implement custom multilingual functionality in a Drupal module?