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 j.b on
hello,
I am facing a problem of translation in a project.
codes and blocks of custom modules of the project contains text in French.
ex. t ('My text in French')
The default language of the site is in French. I need to translate these texts into English.
The problem is that the function t () assumes that the text to be translated in English.
Hence the problem as it assumes the french text to be translated is in english.
Even my taxonomies are in french by default.
Someone has an idea about how to proceed?