From 59889b5af014ed25028b53dc81577d184b999a1d Mon Sep 17 00:00:00 2001 From: tony2001 Date: Thu, 17 Jun 2004 07:59:48 +0000 Subject: [PATCH] add texts, translated by silex [at] bk [dot] ru --- .../variable-autoload-filters.xml | 37 ++++++----- .../api-variables/variable-cache-dir.xml | 52 ++++++++-------- .../variable-cache-handler-func.xml | 20 +++--- .../api-variables/variable-cache-lifetime.xml | 62 ++++++++++--------- .../variable-cache-modified-check.xml | 24 +++---- .../api-variables/variable-caching.xml | 48 +++++++------- .../api-variables/variable-compile-check.xml | 42 +++++++------ .../api-variables/variable-compile-dir.xml | 43 ++++++------- .../api-variables/variable-compile-id.xml | 20 +++--- .../api-variables/variable-compiler-class.xml | 19 +++--- .../variable-config-booleanize.xml | 22 ++++--- .../api-variables/variable-config-dir.xml | 29 ++++----- .../variable-config-fix-newlines.xml | 18 +++--- .../variable-config-overwrite.xml | 21 ++++--- .../variable-config-read-hidden.xml | 24 +++---- .../api-variables/variable-debug-tpl.xml | 19 +++--- .../api-variables/variable-debugging-ctrl.xml | 24 +++---- .../api-variables/variable-debugging.xml | 22 +++---- .../variable-default-modifiers.xml | 24 +++---- ...variable-default-template-handler-func.xml | 17 ++--- .../api-variables/variable-force-compile.xml | 24 +++---- .../api-variables/variable-global-assign.xml | 45 +++++++------- .../api-variables/variable-left-delimiter.xml | 17 ++--- 23 files changed, 352 insertions(+), 321 deletions(-) diff --git a/docs/ru/programmers/api-variables/variable-autoload-filters.xml b/docs/ru/programmers/api-variables/variable-autoload-filters.xml index 99b898bd..2a395749 100644 --- a/docs/ru/programmers/api-variables/variable-autoload-filters.xml +++ b/docs/ru/programmers/api-variables/variable-autoload-filters.xml @@ -1,20 +1,23 @@ - + - - $autoload_filters - - If there are some filters that you wish to load on every template - invocation, you can specify them using this variable and Smarty will - automatically load them for you. The variable is an associative array - where keys are filter types and values are arrays of the filter - names. For example: - - -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); - - - + + + $autoload_filters + + При необходимости загрузки при каждом вызове шаблонов некоторого + количества фильтров, вы можете определить их, используя эту переменную, + и Smarty автоматически их загрузит. Переменная представляет из себя + ассоциативный массив, ключи в котором являются типами фильтров, а значения + - массивами имен фильтров. Например: + + +autoload_filters = array('pre' => array('trim', 'stamp'), + 'output' => array('convert')); +]]> + + + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-cache-dir.xml b/docs/ru/programmers/api-variables/variable-cache-dir.xml index 8796cf39..2058b8c1 100644 --- a/docs/ru/programmers/api-variables/variable-cache-dir.xml +++ b/docs/ru/programmers/api-variables/variable-cache-dir.xml @@ -1,29 +1,29 @@ - + - - $cache_dir - - This is the name of the directory where template caches are - stored. By default this is "./cache", meaning that it will look - for the cache directory in the same directory as the executing - php script. You can also use your own custom cache handler - function to control cache files, which will ignore this - setting. - - - Technical Note - - This setting must be either a relative or - absolute path. include_path is not used for writing files. - - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - + + + $cache_dir + + Имя каталога, в котором хранится кэш шаблонов. По умолчанию + установлено в "./cache". Это означает, что поиск каталога с кэшем + будет производиться в том же каталоге, в котором выполняется + скрипт. Вы также можете использовать собственную функцию-обработчик + для управления файлами кэша, которая будет игнорировать этот параметр. + + + Техническое замечание + + При установке этого параметра можно использовать как относительные, + так и абсолютные пути. Для создаваемых файлов include_path не используется. + + + + Техническое замечание + + Не рекомендуется помещать этот каталог внутри корневого каталога документов + веб-сервера. + + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-cache-handler-func.xml b/docs/ru/programmers/api-variables/variable-cache-handler-func.xml index 0cc80146..54d07df3 100644 --- a/docs/ru/programmers/api-variables/variable-cache-handler-func.xml +++ b/docs/ru/programmers/api-variables/variable-cache-handler-func.xml @@ -1,12 +1,14 @@ - + - - $cache_handler_func - - You can supply a custom function to handle cache files instead - of using the built-in method using the $cache_dir. See the - custom cache handler function section for details. - + + + $cache_handler_func + + Вы можете добавить собственную функцию для управления файлами кэша + вместо вызовов встроенного метода, используя $cache_dir. + Подробнее см. в разделе, описывающем функции для работы + с кэшем. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-cache-lifetime.xml b/docs/ru/programmers/api-variables/variable-cache-lifetime.xml index 489921a3..34b02ad3 100644 --- a/docs/ru/programmers/api-variables/variable-cache-lifetime.xml +++ b/docs/ru/programmers/api-variables/variable-cache-lifetime.xml @@ -1,33 +1,35 @@ - + - - $cache_lifetime - - This is the length of time in seconds that a template cache is valid. - Once this time has expired, the cache will be regenerated. $caching must - be set to "true" for $cache_lifetime to have any purpose. A value of -1 - will force the cache to never expire. A value of 0 will cause the cache - to always regenerate (good for testing only, to disable caching a more - efficient method is to set $caching = false.) - - - If $force_compile is - enabled, the cache files will be regenerated every time, effectively - disabling caching. You can clear all the cache files with the clear_all_cache() function, or - individual cache files (or groups) with the clear_cache() function. - - - Technical Note - - If you want to give certain templates their own cache lifetime, you could - do this by setting $caching = 2, - then set $cache_lifetime to a unique value just before calling display() - or fetch(). - - + + + $cache_lifetime + + Задает длительность времени в секундах, в течение которого кэш шаблона + будет актуальным. По истечении этого времени кэш будет регенерирован. + Переменная $caching должна быть установлена в "true" при использовании + $cache_lifetime. Значение переменной -1 задает неограниченное время + жизни кэша. Значение переменной 0 вызовет постоянную его регенерацию + (подходит только для тестирования, для отключения кэширования более + целесообразно устанавливать + $caching = false.) + + + Если $force_compile + активировано, файлы кэша будут каждый раз будут регенерироваться, + отключая таким образом кэширование. Вы можете очистить сразу все файлы кэша, + используя функцию clear_all_cache(), + или в случае с конкретными файлами (группами) кэша - при помощи функции + clear_cache(). + + + Техническое замечание + + Если вы хотите назначить конкретным шаблонам собственное время жизни их кэша, + вы можете сделать это путем установки $caching + = 2, затем установкой $cache_lifetime в нужное значение перед вызовом + display() или fetch(). + + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-cache-modified-check.xml b/docs/ru/programmers/api-variables/variable-cache-modified-check.xml index dd6687f1..c477b0c8 100644 --- a/docs/ru/programmers/api-variables/variable-cache-modified-check.xml +++ b/docs/ru/programmers/api-variables/variable-cache-modified-check.xml @@ -1,14 +1,16 @@ - + - - $cache_modified_check - - If set to true, Smarty will respect the If-Modified-Since - header sent from the client. If the cached file timestamp has - not changed since the last visit, then a "304 Not Modified" - header will be sent instead of the content. This works only on - cached content without insert tags. - + + + $cache_modified_check + + Если установлено в true, Smarty будет учитывать If-Modified-Since + заголовок, посланный клиентом. Если время создания кэшированного + файла не изменилось с момента последнего посещения, то взамен его + содержимого будет послан заголовок "304 Not Modified". Это работает + только в случае, если кэшированное содержимое не содержит тэгов + insert. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-caching.xml b/docs/ru/programmers/api-variables/variable-caching.xml index 0fb75fa2..1cc07759 100644 --- a/docs/ru/programmers/api-variables/variable-caching.xml +++ b/docs/ru/programmers/api-variables/variable-caching.xml @@ -1,26 +1,28 @@ - + - - $caching - - This tells Smarty whether or not to cache the output of the templates. - By default this is set to 0, or disabled. If your templates generate - redundant redundant content, it is advisable to turn on caching. This - will result in significant performance gains. You can also have multiple - caches for the same template. A value of 1 or 2 enables caching. 1 tells - Smarty to use the current $cache_lifetime variable to determine if the - cache has expired. A value of 2 tells Smarty to use the cache_lifetime - value at the time the cache was generated. This way you can set the - cache_lifetime just before fetching the template to have granular - control over when that particular cache expires. See also is_cached. - - - If $compile_check is enabled, the cached content will be regenerated if - any of the templates or config files that are part of this cache are - changed. If $force_compile is enabled, the cached content will always be - regenerated. - + + + $caching + + Сообщает Smarty, будет или нет кэшироваться вывод шаблонов. По умолчанию + этот параметр установлен в 0, т.е. не активирован. Если ваши шаблоны + генерируют большие объемы кода, рекомендуется активировать кэширование - это + даст ощутимый прирост в производительности. Вы также можете использовать + множественный кэш шаблонов. Значение 1 или 2 активирует кэширование. + При задании значения 1, для определения времени жизни кэша используется + текущее значение переменной $cache_lifetime. Значение 2 задает Smarty + использовать значение cache_lifetime во время окончания генерации кэша. В + этом случае вы можете устанавливать cache_lifetime непосредственно перед + обработкой шаблона для осуществления гибкого контроля за истечением времени + жизни конкретного экземпляра кэша. См. также + is_cached. + + + Если параметр $compile_check активирован, кэш будет обновляться в случае, + когда любой из шаблонов или конфигурационных файлов, являющихся частью + этого кэша, был изменен. Если активирован $force_compile, кэш будет + обновляться во всех случаях. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-compile-check.xml b/docs/ru/programmers/api-variables/variable-compile-check.xml index 23efbe78..eb380c80 100644 --- a/docs/ru/programmers/api-variables/variable-compile-check.xml +++ b/docs/ru/programmers/api-variables/variable-compile-check.xml @@ -1,23 +1,25 @@ - + - - $compile_check - - Upon each invocation of the PHP application, Smarty tests to see if the - current template has changed (different time stamp) since the last time - it was compiled. If it has changed, it recompiles that template. If the - template has not been compiled, it will compile regardless of this - setting. By default this variable is set to true. Once an application is - put into production (templates won't be changing), the compile_check - step is no longer needed. Be sure to set $compile_check to "false" for - maximal performance. Note that if you change this to "false" and a - template file is changed, you will *not* see the change since the - template will not get recompiled. If caching is enabled and - compile_check is enabled, then the cache files will get regenerated if - an involved template file or config file was updated. See $force_compile or clear_compiled_tpl. - + + + $compile_check + + При каждом вызове РНР-приложения Smarty проверяет, изменился или нет + текущий шаблон с момента последней компиляции. Если шаблон изменился, + он перекомпилируется. В случае, если шаблон еще не был скомпилирован, + его компиляция производится с игнорированием значения этого параметра. + По умолчанию эта переменная установлена в true. В момент, когда приложение + начнет работать в реальных условиях (шаблоны больше не будут изменяться), + этап проверки компиляции становится ненужным. В этом случае проверьте, чтобы + переменная $compile_check была установлена в "false" для достижения + максимальной производительности. Учтите, что если вы присвоите этой переменной + значение "false", и файл шаблона будет изменен, вы *НЕ* увидите изменений + в выводе шаблона до тех пор, пока шаблон не будет перекомпилирован. Если + caching и compile_check активированы, файлы кэша будут регенерированы при + обновлении связанных с ним шаблонов или конфигурационных файлов. См. + $force_compile или + clear_compiled_tpl. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-compile-dir.xml b/docs/ru/programmers/api-variables/variable-compile-dir.xml index 8503cc7e..6d3c136e 100644 --- a/docs/ru/programmers/api-variables/variable-compile-dir.xml +++ b/docs/ru/programmers/api-variables/variable-compile-dir.xml @@ -1,26 +1,27 @@ - + - - $compile_dir - - This is the name of the directory where compiled templates are - located. By default this is "./templates_c", meaning that it - will look for the compile directory in the same directory as - the executing php script. - - - Technical Note + + + $compile_dir + + Имя каталога, в котором хранятся компилированные шаблоны. По + умолчанию установлено в "./templates_c", т.е. поиск каталога с + компилированными шаблонами будет производиться в том же каталоге, + в котором выполняется скрипт. + + + Техническое замечание - This setting must be either a relative or - absolute path. include_path is not used for writing files. - - - - Technical Note + При установке этого параметра можно использовать как относительные, + так и абсолютные пути. Для создаваемых файлов include_path не используется. + + + + Техническое замечание - It is not recommended to put this directory under - the web server document root. - + Не рекомендуется помещать этот каталог внутри корневого каталога документов + веб-сервера. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-compile-id.xml b/docs/ru/programmers/api-variables/variable-compile-id.xml index 3b0b12ae..a8aa0e2c 100644 --- a/docs/ru/programmers/api-variables/variable-compile-id.xml +++ b/docs/ru/programmers/api-variables/variable-compile-id.xml @@ -1,12 +1,14 @@ - + - - $compile_id - - Persistant compile identifier. As an alternative to passing the same - compile_id to each and every function call, you can set this compile_id - and it will be used implicitly thereafter. - + + + $compile_id + + Постоянный идентификатор компиляции. Как альтернативу использованию одного + и того же compile_id при каждом вызове функции, вы можете самостоятельно + задавать этот идентификатор, и в этом случае будет использоваться именно + это значение. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-compiler-class.xml b/docs/ru/programmers/api-variables/variable-compiler-class.xml index 076822b4..c2f61ebd 100644 --- a/docs/ru/programmers/api-variables/variable-compiler-class.xml +++ b/docs/ru/programmers/api-variables/variable-compiler-class.xml @@ -1,12 +1,13 @@ - + - - $compiler_class - - Specifies the name of the compiler class that Smarty will use - to compile the templates. The default is 'Smarty_Compiler'. For - advanced users only. - + + + $compiler_class + + Задает имя класса-компилятора, который Smarty будет использовать + для компиляции шаблонов. По умолчанию это 'Smarty_Compiler'. Только + для продвинутых пользователей. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-config-booleanize.xml b/docs/ru/programmers/api-variables/variable-config-booleanize.xml index 966719f4..40204864 100644 --- a/docs/ru/programmers/api-variables/variable-config-booleanize.xml +++ b/docs/ru/programmers/api-variables/variable-config-booleanize.xml @@ -1,13 +1,15 @@ - + - - $config_booleanize - - If set to true, config file values of on/true/yes and off/false/no get - converted to boolean values automatically. This way you can use the - values in the template like so: {if #foobar#} ... {/if}. If foobar was - on, true or yes, the {if} statement will execute. true by default. - + + + $config_booleanize + + Если установлено в true, значения параметров конфигурационных файлов + on/true/yes и off/false/no будут конвертированы в булевы значения автоматически. + В этом случае вы можете использовать в шаблоне конструкции, подобные этой: + {if #foobar#} ... {/if}. Если foobar равно on, true или yes, будет осуществлен + переход по условию {if}. По умолчанию равно true. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-config-dir.xml b/docs/ru/programmers/api-variables/variable-config-dir.xml index 6c382925..e464d974 100644 --- a/docs/ru/programmers/api-variables/variable-config-dir.xml +++ b/docs/ru/programmers/api-variables/variable-config-dir.xml @@ -1,19 +1,20 @@ - + - - $config_dir - - This is the directory used to store config files used in the - templates. Default is "./configs", meaning that it will look - for the configs directory in the same directory as the - executing php script. - + + + $config_dir + + Каталог для хранения конфигурационных файлов, используемых + в шаблонах. По умолчанию установлено в "./configs", т.е. поиск + каталога с конфигурационными файлами будет производиться в том + же каталоге, в котором выполняется скрипт. + - Technical Note + Техническое замечание - It is not recommended to put this directory under - the web server document root. - + Не рекомендуется помещать этот каталог внутри корневого каталога документов + веб-сервера. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml b/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml index fd889472..8325826d 100644 --- a/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml +++ b/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml @@ -1,11 +1,13 @@ - + - - $config_fix_newlines - - If set to true, mac and dos newlines (\r and \r\n) in config files are - converted to \n when they are parsed. true by default. - + + + $config_fix_newlines + + Если установлено в true, переводы строк в стиле mac и dos (\r и \r\n) + в конфигурационных файлах будут конвертированы в \n при синтаксическом + разборе. По умолчанию равно true. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-config-overwrite.xml b/docs/ru/programmers/api-variables/variable-config-overwrite.xml index 882fcf8d..b1d0144e 100644 --- a/docs/ru/programmers/api-variables/variable-config-overwrite.xml +++ b/docs/ru/programmers/api-variables/variable-config-overwrite.xml @@ -1,13 +1,14 @@ - + - - $config_overwrite - - If set to true, variables read in from config files will overwrite each - other. Otherwise, the variables will be pushed onto an array. This is - helpful if you want to store arrays of data in config files, just list - each element multiple times. true by default. - + + + $config_overwrite + + Если установлено в true, переменные, полученные из конфигурационных файлов, + будут перекрывать все остальные. В лбом случае, перемнные будут помещены в + массив. Это удобно, когда вы хотите хранить массив данных в конфигурационном + файле - просто задавайте каждый элемент много раз. По умолчанию true. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-config-read-hidden.xml b/docs/ru/programmers/api-variables/variable-config-read-hidden.xml index cb42e91e..4a84dc66 100644 --- a/docs/ru/programmers/api-variables/variable-config-read-hidden.xml +++ b/docs/ru/programmers/api-variables/variable-config-read-hidden.xml @@ -1,14 +1,16 @@ - + - - $config_read_hidden - - If set to true, hidden sections (section names beginning with a period) - in config files can be read from templates. Typically you would leave - this false, that way you can store sensitive data in the config files - such as database parameters and not worry about the template loading - them. false by default. - + + + $config_read_hidden + + Если установлено в true, скрытые разделы (имеющие имя, начинающиеся с точки) + в конфигурационных файлах могут быть доступными из шаблонов. Как правило, + следует устанавливать значение этого параметра в false: в этом случае вы + можете хранить важные данные (например, параметры подключения к базе данных) + в конфигурационных файлах, не беспокоясь, что они будут загружены в шаблон. + По умолчанию false. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-debug-tpl.xml b/docs/ru/programmers/api-variables/variable-debug-tpl.xml index 53a67266..13ddab7f 100644 --- a/docs/ru/programmers/api-variables/variable-debug-tpl.xml +++ b/docs/ru/programmers/api-variables/variable-debug-tpl.xml @@ -1,12 +1,13 @@ - + - - $debug_tpl - - This is the name of the template file used for the debugging console. By - default, it is named debug.tpl and is located in the SMARTY_DIR. - + + + $debug_tpl + + Имя файла шаблона, используемого для панели отладки (debugging console). + По умолчанию это файл debug.tpl, расположенный в SMARTY_DIR. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml b/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml index 2bb08022..05f4beff 100644 --- a/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml +++ b/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml @@ -1,14 +1,16 @@ - + - - $debugging_ctrl - - This allows alternate ways to enable debugging. NONE means no - alternate methods are allowed. URL means when the keyword - SMARTY_DEBUG is found in the QUERY_STRING, debugging is enabled - for that invocation of the script. If $debugging is true, this - value is ignored. - + + + $debugging_ctrl + + Позволяет активировать режим отладки альтернативными путями. + Значение NONE запрещает использовать альтернативные методы. При + значении переменной URL, режим отладки будет активирован для данного + вызова скрипта в случае, если в QUERY_STRING будет обнаружено + ключевое слово SMARTY_DEBUG. Этот параметр игнорируется, если + $debugging установлено в true. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-debugging.xml b/docs/ru/programmers/api-variables/variable-debugging.xml index 0da2573c..74ec8fed 100644 --- a/docs/ru/programmers/api-variables/variable-debugging.xml +++ b/docs/ru/programmers/api-variables/variable-debugging.xml @@ -1,14 +1,14 @@ - + - - $debugging - - This enables the debugging console. - The console is a javascript window that informs you of the - included templates and assigned variables for the current - template page. - + + + $debugging + + Активирует debugging + console - порожденное при помощи javascript окно браузера, + содержащее информацию о подключенных шаблонах и загруженных + переменных для текущей страницы. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-default-modifiers.xml b/docs/ru/programmers/api-variables/variable-default-modifiers.xml index c068cd02..1fd0e4c4 100644 --- a/docs/ru/programmers/api-variables/variable-default-modifiers.xml +++ b/docs/ru/programmers/api-variables/variable-default-modifiers.xml @@ -1,15 +1,15 @@ - + - - $default_modifiers - - This is an array of modifiers to implicitly apply to every variable in a - template. For example, to HTML-escape every variable by default, use - array('escape:"htmlall"'); To make a variable exempt from default - modifiers, pass the special "smarty" modifier with a parameter value of - "nodefaults" modifier to it, such as - {$var|smarty:nodefaults}. - + + + $default_modifiers + + Массив модификаторов, неявно применяемых ко всем переменным шаблона. + Например, для HTML-экранирования каждой переменной по умолчанию, используется + конструкция array('escape:"htmlall"'); Для исключения действия таких + модификаторов на какую-либо переменную, применяйте специальный "smarty" + модификатор с параметром "nodefaults", например {$var|smarty:nodefaults}. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml b/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml index d508ac6b..921b3c7a 100644 --- a/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml +++ b/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml @@ -1,11 +1,12 @@ - + - - $default_template_handler_func - - This function is called when a template cannot be obtained from - its resource. - + + + $default_template_handler_func + + Функция, вызываемая в случае, если шаблон не был получен из + своего источника. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-force-compile.xml b/docs/ru/programmers/api-variables/variable-force-compile.xml index 51df1dd9..91307e0f 100644 --- a/docs/ru/programmers/api-variables/variable-force-compile.xml +++ b/docs/ru/programmers/api-variables/variable-force-compile.xml @@ -1,14 +1,16 @@ - + - - $force_compile - - This forces Smarty to (re)compile templates on every - invocation. This setting overrides $compile_check. By default - this is disabled. This is handy for development and debugging. - It should never be used in a production environment. If caching - is enabled, the cache file(s) will be regenerated every time. - + + + $force_compile + + Указывает Smarty (пере)компилировать шаблоны при каждом вызове. + Этот параметр перекрывает действие $compile_check и по умолчанию + не активирован. Действие параметра удобно использовать в процессе + разработки и отладки, однако никогда не используйте его в условиях + реальной эксплуатации: если кэширование активировано, файл(ы) кэша + будут каждый раз перезаписываться. + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-global-assign.xml b/docs/ru/programmers/api-variables/variable-global-assign.xml index 9d96def8..0f6a0566 100644 --- a/docs/ru/programmers/api-variables/variable-global-assign.xml +++ b/docs/ru/programmers/api-variables/variable-global-assign.xml @@ -1,27 +1,26 @@ - + - - $global_assign - - This is a list of variables that are always implicitly assigned - to the template engine. This is handy for making global - variables or server variables available to all templates - without having to manually assign them. Each element in the - $global_assign should be either a name of the global variable, - or a key/value pair, where the key is the name of the global - array and the value is the array of variables to be assigned - from that global array. $SCRIPT_NAME is globally assigned by - default from $HTTP_SERVER_VARS. - - - Technical Note + + + $global_assign + + Список переменных, которые всегда неявно загружены. + Это удобно для того, чтобы глобальные или серверные + переменные были доступны во всех шаблонах без их непосредственной + ручной загрузки. Каждый элемент $global_assign может быть именем + глобальной переменной или парой ключ/значение, в которой ключ является + именем глобального массива, а значение - массивом переменых, + загруженных из этого глобального массива. По умолчанию переменная + $SCRIPT_NAME имеет значение, загруженное из $HTTP_SERVER_VARS + + + Техническое замечание - Server variables can be accessed through the - $smarty variable, such as {$smarty.server.SCRIPT_NAME}. See the - section on the - $smarty variable. - - + Доступ к серверным переменным может быть осуществлен через переменную + $smarty, например, {$smarty.server.SCRIPT_NAME}. См. раздел о переменной + $smarty. + + \ No newline at end of file +--> diff --git a/docs/ru/programmers/api-variables/variable-left-delimiter.xml b/docs/ru/programmers/api-variables/variable-left-delimiter.xml index 3e2399ba..01f9c7c1 100644 --- a/docs/ru/programmers/api-variables/variable-left-delimiter.xml +++ b/docs/ru/programmers/api-variables/variable-left-delimiter.xml @@ -1,11 +1,12 @@ - + - - $left_delimiter - - This is the left delimiter used by the template language. - Default is "{". - + + + $left_delimiter + + Левый ограничитель, используемый в языке шаблонов. + По умолчанию равно "{". + \ No newline at end of file +-->