#title=""
#tooltip="Sum",1033,"合計",1041,"Součet",1029,"Summe",1031,"Somme",1036,"Suma",3082,"Suma",2058,"Somma",1040,"합계",1042,"Som",1043,"Сумма",1049,"合计",2052,"加總",1028
#icon="sum.ico"
// Do not edit this file.  If you want to edit the file, please copy it into another folder.
// This file will be replaced with a newer version every time EmEditor is upgraded.

var sum = document.selection.Sum;

sText = "";
switch( editor.LangID )	{
case 1041:  // Japanese
	sText = '(OK をクリックしてコピー)';
	break;

case 1029:  // Czech
	sText = '(Kliknutím na OK zkopírujete)';
	break;

case 1031:  // German
	sText = '(Zum Kopieren klicken Sie OK)';
	break;

case 1036:  // French
	sText = '(OK pour copier)';
	break;

case 1049:  // Russian
	sText = '(Нажмите OK чтобы скопировать)';
	break;

case 3082:  // Spanish
case 2058:  // Spanish
	sText = '(Haga clic en Aceptar para copiar)';
	break;

case 1040:  // Italian
	sText = '(Seleziona OK per copiare)';
	break;

case 1042:  // Korean
	sText = '(OK를 클릭하여 복사)';
	break;

case 1043:  // Dutch
	sText = '(Klik op OK om te kopiëren)';
	break;

case 2052:  // Simplified Chinese
	sText = '（单击“确定”复制）';
	break;

case 1028:  // Traditional Chinese
	sText = '（單擊「確定」複製）';
	break;
}

if( sText.length == 0 ) {
	sText = '(Click OK to copy)';
}

if( confirm( sum, sText ) ) {
	clipboardData.setData("Text", sum);  // copy sum to the Clipboard if 'OK' is clicked
}
