<%  use ui::cmn;    my ($lfn_info,$type) = @_;
    my $info = $lfn_info->{0};
#limits:
# installer: 260 chars for full path. Fails if there are longer full paths.
# zip: 260 chars, files with longer FULL names are skipped from the archive, process does NOT fail.
# iso: 260 chars for full path. Process fails if files with longer full paths exist..

    my $willfail = 'n/a';
    $willfail = 'yes' if ($type eq 'iso' || $type eq 'installer');
    $willfail = 'skip' if $type eq 'zip';

    my $str =  __('There are files with too long absolute file names in your Prototype Output directory!') . ' ' .	
	( 
	    $willfail eq 'yes' ? __('The process will abort with error!')  :
	    $willfail eq 'skip' ? __('Those files will be omitted from the output file!')  :
	    $willfail eq 'n/a' ?  __('This will result in inability to produce ZIP, ISO, DMG or installer for Windows.') : '' );

    my $details_str = __('Windows limits path to 260 characters.');
    if ($willfail ne 'n/a') {
	if (!$info}->{rel_length_exceed_count}) {
	    $details_str .= ' ' . sprintf( __('The path for Prototype Output Directory (%s) is too long, but if you relocate it to very short one (like %s) the problem will be resolved, as current length of Project Output Directory takes so many characters (%d).'),
		$info->{outdir}, $info->{replacement_dir}, length($info->{outdir})
		) . ' ' . 
		__('Do not forget to change output directory in Project &rArr; "Meta options" after relocating it.');
	} else {
	    $details_str .= ' ' . sprintf(__('Even after relocating Output Directory  (%s) to a directory with very short path, like %s, will not be enough.'), 
		$info->{outdir}, $info->{replacement_dir});
	}	
    };
    $details_str .= ' ' . $info->{hint_str_remove_on_build};
%>

<% if ($info->{total_logged_count}) { %>

<div class="warning-long-file-names "><p>
    <span class="build-result-prefix warning-prefix">&#9888;</span>
    <%$ 
    ui::cmn::msg_expandable($str,
	$details_str . 
	$lfn_info->{0}->{filelist_html}); %>

</div>

<% } %>
