diff --git a/features.export.inc b/features.export.inc index cc11478..d56e6aa 100644 --- a/features.export.inc +++ b/features.export.inc @@ -178,8 +178,14 @@ function features_export_render_hooks($export, $module_name, $reset = FALSE) { * @return array of info file and module file contents. */ function features_export_render($export, $module_name, $reset = FALSE) { + global $language; $code = array(); + // Switch to English language to avoid exporting localized strings. + // @see t() + $old_language = $language->language; + $language->language = 'en'; + // Generate hook code $component_hooks = features_export_render_hooks($export, $module_name, $reset); $components = features_get_components(); @@ -251,6 +257,10 @@ function features_export_render($export, $module_name, $reset = FALSE) { else { $code['module'] = "language = $old_language; + return $code; }