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.
Hi,
I couldn't find the answer by searchin d.o or google but maybe there is an easy answer that anyone knows of here. My features contain t strings and I would like to include in my features several translation files for those strings.
How can I include .po files in my features?
Thanks in advance!
Comments
Comment #1
pvanerk CreditAttribution: pvanerk commentedHi,
Did you already figure out how to do it? Would like to know how you fixed it.
The following post says how to include translations for modules but couldn't get it working for features though.
http://drupal.org/node/220341
Comment #2
pmunch CreditAttribution: pmunch commentedAccording to this post : http://drupal.org/node/782286#comment-3529126, basic pb seems to be that Features does not invoke locale update hook.
As patching Features module was not an option for me, I had the following workaround :
Create a my_feature_i18n submodule, containing :
Then just activate module to have po files imported (didn't try, but it should work even without the install file).
@Maintainers: It would be much appreciated if the patch mentionned above (or any other solution that fixes the issue) should be applied to the next release (afaik not in the current dev version yet). Thanks !