RE: from kernel/common/i18n.php
ezi18n() was deprecated in 4.3, and is not automatically included in versions after 4.4.
If your code is supposed to work on all 4.x versions, make sure you include it where used using
include_once( 'kernel/common/i18n.php' );
Or use the 4.3+ syntax instead if extension is only meant for 4.3+ and future versions:
ezpI18n::tr( $context, $source, $comment = null, $arguments = null );