# HG changeset patch # User Vladimir Homutov # Date 1347628052 0 # Node ID 67826df692ccf76fa4f474c328af9033d0ae629a # Parent c0e05d052196b081fb9357ca41fcb202ee4702a1 Translated 'syntax' article into English and gave it a better name. diff --git a/xml/en/GNUmakefile b/xml/en/GNUmakefile --- a/xml/en/GNUmakefile +++ b/xml/en/GNUmakefile @@ -5,6 +5,7 @@ DOCS = \ install \ windows \ events \ + syntax \ control \ hash \ dirindex \ diff --git a/xml/en/docs/index.xml b/xml/en/docs/index.xml --- a/xml/en/docs/index.xml +++ b/xml/en/docs/index.xml @@ -46,6 +46,10 @@ + + + + diff --git a/xml/en/docs/syntax.xml b/xml/en/docs/syntax.xml new file mode 100644 --- /dev/null +++ b/xml/en/docs/syntax.xml @@ -0,0 +1,45 @@ + + + + +
+ +
+ + +Sizes can be specified in kilobytes (k, +K) and megabytes (m, +M), for example “8k”, +“1m”. +If the suffix is not specified, the value is bytes. + + + +Time can be specified in minutes, hours, days and so on: + + + + + + + + +
sseconds
mminutes
hhours
ddays
wweeks
Mmonths, 30 days
yyears, 365 days
+
+ + +for example “1h 30m”, “1y 6M”. +Additionally, it is possible to specify time with millisecond +precision (ms) in some directives. +If the suffix is not specified, the value is seconds. + + +
+ +
diff --git a/xml/ru/docs/syntax.xml b/xml/ru/docs/syntax.xml --- a/xml/ru/docs/syntax.xml +++ b/xml/ru/docs/syntax.xml @@ -5,36 +5,24 @@ -
+ rev="2">
- - -Размеры можно указывать в килобайтах и мегабайтах: - - - -
k,Kкилобайты
m,Mмегабайты
-например, "8k", "1m". По умолчанию размер в байтах. +Размеры можно указывать в килобайтах (k, +K) и мегабайтах (m, +M), например, “8k”, +“1m”. +Если суффикс не указан, то значение задано в байтах.
Время можно указывать в минутах, часах, днях и так далее: - @@ -43,7 +31,13 @@
msмиллисекунды
sсекунды
mминуты
hчасы
Mмесяцы, 30 дней
yгоды, 365 дней
-например, "1h 30m", "1y 6M". По умолчанию время в секундах. +
+ + +например, “1h 30m”, “1y 6M”. +Также в некоторых директивах возможно указать время +с точностью до миллисекунд (ms). +Если суффикс не указан, то значение задано в секундах.