Hello,
I created a custom text format "views_custom" that is not allowed for translation in multilingual settings
admin/config/regional/i18n/strings
When I use view->add_item to add a text or another view using this format in the header/footer/empty region of a view; the string appears in the localised strings and in the locales_source table of the DB. Because there can be some variables (dom id for ajax request or total results) in this string , this can cause big issues and fill the database very rapidly....
i18nviews is also enabled
thanks for your suggestion
$header='mycustomtext'
$options = array(
'id' => 'result',
'table' => 'views',
'field' => 'result',
'empty' => 1,
'content' => $header,
'format' => 'views_custom',
'tokenize' => 1,
);
$view->add_item('events_np', 'header', 'views', 'result', $options);
I already posted the issue in views but I think this may be more related with i18nviews... so I will mark it as duplicate if this is confirmed here..
https://www.drupal.org/node/2483619
thank you