Skip to content

Conversation

@majklvi
Copy link
Contributor

@majklvi majklvi commented Dec 24, 2023

No description provided.

@janrysavy janrysavy added the comments translation Translation of code comments from Czech to English label Dec 24, 2023
// SPDX-License-Identifier: GPL-2.0-or-later

// CommentsTranslationProject: TRANSLATED
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove //


#ifdef _MSC_VER
#pragma pack(push, enter_include_spl_arc) // aby byly struktury nezavisle na nastavenem zarovnavani
#pragma pack(push, enter_include_spl_arc) // so that the structures are independent of the alignment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// to make structures independent of the set alignment

// pouzit Cancel, mohl byt pouzit Skip) - zdroj operace v panelu je odznacen, jinak vraci
// FALSE (neprovede se odznaceni); 'salamander' je sada uzitecnych metod vyvezenych ze
// Salamandera
// function for "panel archiver view"; called during a request to unpack file/directory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file/directory -> files/directories

// vyvezenych ze Salamandera
// function for "panel archiver view"; called during a request for unpacking one file
// for view/edit from archive 'fileName' to directory 'targetDir'; filename in archive
// is 'nameInArchive'; 'pluginData' is interface for working with information about files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

files -> file

// pouzit Skip) - zdroj operace v panelu je odznacen, jinak vraci FALSE (neprovede se odznaceni),
// 'salamander' je sada uzitecnych metod vyvezenych ze Salamandera
// function for "panel archiver view" and "custom archiver pack"; called during a request
// for packing file/directory archive 'fileName' to path 'archiveRoot'; files/directories
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file/directory archive -> files/directories to archive

// vraci TRUE pokud je zavreni mozne, je-li 'force' TRUE, vraci TRUE vzdy; pokud probiha
// critical shutdown (vice viz CSalamanderGeneralAbstract::IsCriticalShutdown), nema
// smysl se usera na cokoliv ptat
// function for "panel archiver view/edit", called before closing panel with archive;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

archive; -> archive

// CAUTION: if opening new path fails, archive can remain in panel (independent on
// return value of CanCloseArchive); therefore this method cannot be used
// for destruction of context; it is intended e.g. for optimization of
// Delete operation from archive, when it can offer "shredding" of archive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, it can offer "shredding" of archive when it is leaved

// cache nebo pri zavreni archivu
// finds out required disk-cache settings (disk-cache is used for temporary copies
// of files opened from archive in viewers, editors and via system associations);
// normally (if it is possible to allocate 'tempPath' buffer) it is called only once
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(if it is possible to allocate 'tempPath' buffer) -> (if a copy of 'tempPath' can be allocated after calling)

// (pokud zpravu distribuuje message-loopa uvnitr pluginu), dalsi vstup do DeleteTmpCopy
// je vylouceny, protoze do ukonceni volani DeleteTmpCopy disk-cache zadne dalsi zpravy
// neposila
// CAUTION: it is called in main thread on the basis of message from disk-cache main window
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main window -> to main window

// - message about need to delete temporary copy (typically when viewer is closed
// or when archive is "edited" in panel), therefore it can lead to repeated entry to plugin
// (if message is distributed by message-loop inside plugin), another entry to DeleteTmpCopy
// is excluded until end of call of DeleteTmpCopy, disk-cache does not send any other
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because until the completion of the DeleteTmpCopy call, the disk-cache does not send any further messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments translation Translation of code comments from Czech to English

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants