Aion-Env
view release on metacpan or search on metacpan
i18n/Aion/Env/Etc.ru-en.po view on Meta::CPAN
msgid "РнÑм Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÐºÐ»ÑÑ `includes` c вклÑÑением дÑÑгиÑ
конÑигÑÑаÑионнÑÑ
Ñайлов, а Ñ ÑеÑ
â дÑÑгиÑ
.\n"
"ÐÐ»Ñ Ð¿ÑоÑÑоÑÑ `includes` ÑÑабаÑÑваÑÑ Ð¾Ñ ÑекÑÑего каÑалога, коÑоÑÑй должен ÑооÑвеÑÑÑвоваÑÑ ÐºÐ¾ÑÐ½Ñ Ð¿ÑоекÑа (Ñаково ÑоглаÑение)."
msgstr "It may contain the `includes` key with the inclusion of other configuration files, and those with other ones.\n"
"For simplicity, `includes` are triggered from the current directory, which should correspond to the project root (this is the convention)."
msgid "ÐлÑÑи вида `when@ID` бÑдÑÑ Ð¿ÐµÑекÑÑваÑÑ Ñвоими клÑÑами клÑÑи конÑигÑÑаÑионного Ñайла, еÑли `ID` из ниÑ
ÑооÑвеÑÑÑвÑÐµÑ `APP_ENV`."
msgstr "Keys of the form `when@ID` will overlap with their keys the keys of the configuration file if the `ID` of them matches `APP_ENV`."
msgid "ХеÑи в клÑÑаÑ
, пÑи Ñовпадении клÑÑей в ÑазнÑÑ
ÑайлаÑ
, обÑединÑÑÑÑÑ ÑекÑÑÑивно. Ðднако еÑли в одном из клÑÑей не Ñ
еÑ, Ñо бÑÐ´ÐµÑ Ð²ÑбÑоÑен...
msgstr "Hashes in keys, if the keys match in different files, are combined recursively. However, if one of the keys does not have a hash, an exception will be thrown."
msgid "СоздаÑÑ ÐºÐ¾Ð½ÑÑанÑÑ Ð² пакеÑе из коÑоÑого бÑл вÑзван."
msgstr "Creates a constant in the package from which it was called."
msgid "ÐопÑÑÑимÑе опÑии:"
msgstr "Valid options:"
msgid ""
"* `isa` â подпÑогÑамма-ÑеÑÑÐµÑ Ð¸Ð»Ð¸ обÑÐµÐºÑ `Aion::Type` Ð´Ð»Ñ Ð¿ÑовеÑки Ñипа.\n"
"* `default` â знаÑение по ÑмолÑаниÑ.\n"
"* `key` â клÑÑ Ð¸Ð· конÑигÑÑаÑионнÑÑ
Ñайлов. Ðо ÑмолÑÐ°Ð½Ð¸Ñ Ðº Ð½ÐµÐ¼Ñ Ð¿ÑеобÑазÑеÑÑÑ Ð¸Ð¼Ñ ÐºÐ¾Ð½ÑÑанÑÑ (пеÑеводиÑÑÑ Ð² нижний ÑегиÑÑÑ Ð¸ подÑÑÑки заменÑ...
msgstr ""
"* `isa` â tester routine or `Aion::Type` object for type checking.\n"
"* `default` â default value.\n"
"* `key` â key from configuration files. By default, the name of the constant is converted to it (translated to lower case and underscores are replaced with dots)."
msgid "СÑиÑÑÐ²Ð°ÐµÑ Ð¸ паÑÑÐ¸Ñ ÐºÐ¾Ð½ÑигÑÑаÑионнÑй Ñайл в ÑоÑмаÑе `yaml`. `${ID}` заменÑÑÑÑÑ Ð½Ð° знаÑÐµÐ½Ð¸Ñ Ð¸Ð· `%ENV`, а еÑли Ñам неÑ, Ñо из Ñайла `.env`. ÐаÑÑÐ¸Ñ ÑайÐ...
msgstr "Reads and parses a configuration file in `yaml` format. `${ID}` are replaced with values from `%ENV`, and if not there, then from the `.env` file. Parses files in `include` recursively."
msgid "ÐбединÑÐµÑ Ð´Ð²Ð° Ñ
еÑа ÑекÑÑÑивно. ÐÑли в ÑовпадаÑÑиÑ
клÑÑаÑ
не Ñ
еÑи, Ñо вÑбÑаÑÑÐ²Ð°ÐµÑ Ð¾ÑÐ¸Ð±ÐºÑ Ñ `$file` и `$path`, где `$file` â подклÑÑаÑÑийÑÑ Ñайл, Ð...
msgstr "Concatenates two hashes recursively. If the matching keys do not have hashes, then it throws an error with `$file` and `$path`, where `$file` is the connecting file, and `$path` is the path from the keys through the dot."
msgid "ÐобавлÑÐµÑ Ð±ÑкÑлеÑи. ÐÑполÑзÑеÑÑÑ Ð´Ð»Ñ ÑÑкейпинга ÑнвиÑонменÑов."
msgstr "Adds backslashes. Used for escaping environments."
msgid "ÐолÑÑиÑÑ Ð·Ð½Ð°Ñение по клÑÑÑ Ð¸Ð· Ñ
еÑа."
msgstr "Get the value by key from the hash."
msgid "â **Perl5**"
msgstr "â **Perl5**"
lib/Aion/Env/Etc.pm view on Meta::CPAN
=head1 DESCRIPTION
Parses the configuration file. The path to it is specified by the environment variable C<AION_ENV_ETC_PATH>.
It may contain the C<includes> key with the inclusion of other configuration files, and those with other ones.
For simplicity, C<includes> are triggered from the current directory, which should correspond to the project root (this is the convention).
Keys of the form C<when@ID> will overlap with their keys the keys of the configuration file if the C<ID> of them matches C<APP_ENV>.
Hashes in keys, if the keys match in different files, are combined recursively. However, if one of the keys does not have a hash, an exception will be thrown.
=head1 SUBROUTINES
=head2 import ($name, %kw)
Creates a constant in the package from which it was called.
Valid options:
=over
lib/Aion/Env/Etc.pm view on Meta::CPAN
=item * C<key> â key from configuration files. By default, the name of the constant is converted to it (translated to lower case and underscores are replaced with dots).
=back
=head2 parse ($path)
Reads and parses a configuration file in C<yaml> format. C<${ID}> are replaced with values from C<%ENV>, and if not there, then from the C<.env> file. Parses files in C<include> recursively.
=head2 merge_hashes ($file, $path, $x, $y)
Concatenates two hashes recursively. If the matching keys do not have hashes, then it throws an error with C<$file> and C<$path>, where C<$file> is the connecting file, and C<$path> is the path from the keys through the dot.
=head2 val ($s)
Adds backslashes. Used for escaping environments.
my $escape_string = "\\\"\\'\\\\\\t\\r\\n";
Aion::Env::Etc::val("\"'\\\t\r\n") # -> $escape_string
=head2 by_key ($hash, $path)
( run in 0.793 second using v1.01-cache-2.11-cpan-6aa56a78535 )