Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mostafatalebi on
I have developed a module. All the UI-texts of the module are produced using t() function. But I wonder if this is enough for the other to translate it easily? Or I should add something else? Because I see no place for translation files or similar operations. If t() is enough, then HOW one can translate it easily?
Thanks
Comments
When you have translation
When you have translation modules enabled, Drupal stores the strong as it needs translation at the first time it sees the t() call (Drupal does not scan your files).
Then, you can translate them from the translation UI module. For contribute modules, use the drupal.org localization site so other sites can download them from that server.
You can also provide translations for specific languages in .po files.
What's new and changing in PHP 8