Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ease Translation part 1 #5

Merged
merged 9 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/Ease/Anonym.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ class Anonym extends Brick implements Person
{

/**
* Druh uživatele.
* User type.
*
* @var string
*/
public $type = 'anonymous';
public $type = 'Anonymous';

/**
* Anonymní uživatel má vždy ID null.
* An Anonymous user ID is always null
*
* @var null
*/
public $userID = null;

/**
* Indikátor přihlášení.
* Login indicator.
*
* @var bool
*/
Expand All @@ -52,9 +52,9 @@ class Anonym extends Brick implements Person
public $settings = [];

/**
* Nastavení jména objektu uživatele.
* User object name setting.
*
* @param string $objectName vynucené jméno objektu
* @param string $objectName forced object name
*
* @return string
*/
Expand Down Expand Up @@ -84,7 +84,7 @@ public static function remoteToIdentity()
}

/**
* Anonym má level.
* Anonymous has a level
*
* @return int
*/
Expand All @@ -94,23 +94,23 @@ public function getUserLevel()
}

/**
* Anonym nema ID.
* Anonymous has no ID.
*/
public function getUserID()
{
return;
}

/**
* Anonym nemá login.
* Anonymous has no login.
*/
public function getUserLogin()
{
return;
}

/**
* Anonym nemůže být přihlášený.
* Anonymous cannot be logged.
*
* @return bool FALSE
*/
Expand All @@ -120,28 +120,28 @@ public function isLogged()
}

/**
* Anonym nemá nastavení.
* Anonymous has no settings.
*
* @param string $settingName jméno klíče nastavení
* @param string $settingName settings-key name
*/
public function getSettingValue(/** @scrutinizer ignore-unused */ $settingName = null)
{
return;
}

/**
* Nastaví položku nastavení.
* Sets to: has no settings.
*
* @param string $settingName klíčové slovo pro nastavení
* @param mixed $settingValue hodnota nastavení
* @param string $settingName settings keyword (name)
* @param mixed $settingValue setting value
*/
public function setSettingValue($settingName, $settingValue)
{
$this->settings[$settingName] = $settingValue;
}

/**
* Anonym nemá mail.
* Anonymous has no mail.
*/
public function getUserEmail()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Ease/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class Atom
public static $frameworkVersion = '0.5';

/**
* Flag debugovacího režimu.
* Debug mode flag.
*
* @var bool
*/
public $debug = false;

/**
* Vrací jméno objektu.
* Returns object name
*
* @return string
*/
Expand All @@ -49,7 +49,7 @@ public function getObjectName()
}

/**
* Magická funkce pro všechny potomky.
* Magical function for all descendants (childern).
*
* @return string
*/
Expand All @@ -59,7 +59,7 @@ public function __toString()
}

/**
* Default Draw method.
* Default draw method.
*
* @return string
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/Brick.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Brick extends Sand
use RecordKey;

/**
* Nastavuje jméno objektu
* Je li známý, doplní jméno objektu hodnotu klíče např User#vitex
* nebo ProductInCart#4542.
* Sets the object name.
* If it is known, the name of the object completes the value of the key, e.g. User#vitex
* or ProductInCart#4542.
*
* @param string $objectName
*
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Ease Exeption
* Ease Exception
*
* @author Vitex <vitex@hippy.cz>
* @copyright 2009-2018 Vitex@hippy.cz (G)
Expand All @@ -14,7 +14,7 @@
namespace Ease;

/**
* Exeption use EaseLogger to keep message
* Exceptional use of EaseLogger to keep the message
*
* @author vitex
*/
Expand All @@ -24,7 +24,7 @@ class Exception extends \Exception
/**
* Ease Framework Exception
*
* @param string $message of exeption
* @param string $message of exception
* @param int $code error code
* @param \Ease\Exception $previous
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ class Locale
];

/**
* Prepare use of localization
* Use of the localization preparation.
*
* @param string $setLocale en_US|cs_CZ|..
* @param string $i18n directory ( /usr/lib/locale/ in Debian )
Expand Down Expand Up @@ -563,7 +563,7 @@ public static function sessionLocale()
}

/**
* Locale code by browser default language
* Locale code by browser's default language
*
* @return string locale code
*/
Expand Down Expand Up @@ -627,7 +627,7 @@ public static function initializeGetText($appname, $defaultLocale = 'en_US',
}

/**
* Find Locale Code for browser language
* Locale Code language from browser language
*
* @param string $lang browser lan en|cs|..
*
Expand Down
46 changes: 23 additions & 23 deletions src/Ease/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Třídy pro odesílání Mailu ✉.
* Classes for sending Mail ✉.
*
* @author Vitex <vitex@hippy.cz>
* @copyright 2009-2012 Vitex@hippy.cz (G)
Expand All @@ -15,15 +15,15 @@

/**
* Build & Send email
* Sestaví a odešle mail.
* Builds and sends the email.
*
* @author Vitex <vitex@hippy.cz>
*/
class Mailer extends Sand
{

/**
* Objekt pro odesílání pošty.
* Object for mail sending.
*
* @var \Mail
*/
Expand Down Expand Up @@ -76,7 +76,7 @@ class Mailer extends Sand
public $finalized = false;

/**
* Adresa odesilatele zprávy.
* The sender's address.
*
* @var string
*/
Expand All @@ -90,39 +90,39 @@ class Mailer extends Sand
public $emailSubject = null;

/**
* Emailová adresa odesilatele.
* The sender's email address.
*
* @var string
*/
public $fromEmailAddress = null;

/**
* Zobrazovat uživateli informaci o odeslání zprávy ?
* Show information about sending the message to the user?
*
* @var bool
*/
public $notify = true;

/**
* Byla již zpráva odeslána ?
* Has the message already been sent?
*
* @var bool
*/
public $sendResult = false;

/**
* Parametry odchozí pošty.
* Outgoing mail parameters.
*
* @var array
*/
public $parameters = [];

/**
* Ease Mail - sestaví a odešle.
* Ease Mail - builds and sends.
*
* @param string $emailAddress adresa
* @param string $mailSubject předmět
* @param mixed $emailContents tělo - libovolný mix textu a EaseObjektů
* @param string $emailAddress address
* @param string $mailSubject subject
* @param mixed $emailContents body - any text mix and EaseObjects
*/
public function __construct(string $emailAddress, string $mailSubject,
$emailContents = null
Expand Down Expand Up @@ -156,7 +156,7 @@ public function __construct(string $emailAddress, string $mailSubject,
}

/**
* Set mail text body
* Sets mail's text body
*
* @param string $text
*
Expand All @@ -168,7 +168,7 @@ public function setMailBody($text)
}

/**
* Obtain mail header content
* Obtains mail header's content
*
* @param string $headername requested header name
*
Expand All @@ -180,11 +180,11 @@ public function getMailHeader($headername)
}

/**
* Nastaví hlavičky mailu.
* Sets mail headers.
*
* @param mixed $mailHeaders asociativní pole hlaviček
* @param mixed $mailHeaders associative header array
*
* @return bool true pokud byly hlavičky nastaveny
* @return bool true if the headers have been set
*/
public function setMailHeaders(array $mailHeaders)
{
Expand All @@ -207,10 +207,10 @@ public function setMailHeaders(array $mailHeaders)
}

/**
* Attach file to mail
* Attaches file to mail
*
* @param string $filename cesta/název souboru k přiložení
* @param string $mimeType MIME typ přílohy
* @param string $filename path / file name to attach
* @param string $mimeType MIME attachment type
*
* @return boolean|\PEAR_Error
*/
Expand All @@ -220,7 +220,7 @@ public function addFile(string $filename, $mimeType = 'text/plain')
}

/**
* Send mail.
* Sends mail.
*/
public function send()
{
Expand Down Expand Up @@ -260,9 +260,9 @@ public function send()
}

/**
* Nastaví návěští uživatelské notifikace.
* Sets the user notification label.
*
* @param bool $notify požadovaný stav notifikace
* @param bool $notify required notification status
*/
public function setUserNotification(bool $notify)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Ease/Molecule.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Molecule extends Atom
{

/**
* Object name place
* Object name
*
* @var string
*/
Expand All @@ -36,7 +36,7 @@ class Molecule extends Atom
*
* @param string $objectName
*
* @return string Jméno objektu
* @return string Object name
*/
public function setObjectName($objectName = null)
{
Expand All @@ -50,7 +50,7 @@ public function setObjectName($objectName = null)
}

/**
* Vrací jméno objektu.
* Returns the name of the object.
*
* @return string
*/
Expand All @@ -60,7 +60,7 @@ public function getObjectName()
}

/**
* Set up one of properties by 1) array 2) ENV 3) Constant
* Set up one of the properties by 1) array 2) ENV 3) Constant
*
* @param array $options array of given availble properties
* @param string $name name of property to set up
Expand Down