Спасибо вам. Мне помогло))). А почему интересно ${m} нельзя использовать? Потому что не такой строки?
30.03.09, 04:51, "Michael Krishtopa" <
[hidden email]>:
> Юрий Поляков wrote:
> \Products\PloneTranslations\i18n\plone-ru.po :
> #. The variables used here are the same as used in the strftime formating.
> #. Supported are ${A}, ${a}, ${B}, ${b}, ${H}, ${I}, ${m}, ${d}, ${M}, ${p},
> #. ${S}, ${Y}, ${y}, ${Z}, each used as variable in the msgstr.
> #. For example: "${A} ${d}. ${B} ${Y}, ${H}:${M} ${Z}"
> #. In english speaking countries default is:
> #. ${Y}-${m}-${d} ${H}:${M}
> #: ./TranslationServiceTool.py
> msgid "date_format_long"
> msgstr "${d}-${m}-${Y} ${H}:${M}"
>
> #. The variables used here are the same as used in the strftime formating.
> #. Supported are ${A}, ${a}, ${B}, ${b}, ${H}, ${I}, ${m}, ${d}, ${M}, ${p},
> #. ${S}, ${Y}, ${y}, ${Z}, each used as variable in the msgstr.
> #. For example: "${A} ${d}. ${B} ${Y}, ${H}:${M} ${Z}"
> #. In english speaking countries default is:
> #. ${Y}-${m}-${d}
> #: ./TranslationServiceTool.py
> msgid "date_format_short"
> msgstr "${d}-${m}-${Y}"
>
Вот только что столкнулся с этой бедой.
eggs/plone.app.locales-3.2.0-py2.4.egg/plone/app/locales/locales/ru/LC_MESSAGES/plonelocales.po
#. The variables used here are the same as used in the strftime formating.
#. Supported are ${A}, ${a}, ${B}, ${b}, ${H}, ${I}, ${m}, ${d}, ${M}, ${p},
#. ${S}, ${Y}, ${y}, ${Z}, each used as variable in the msgstr.
#. For example: "${A} ${d}. ${B} ${Y}, ${H}:${M} ${Z}"
#. In english speaking countries default is:
#. ${Y}-${m}-${d}
#. ${b} ${d}, ${Y}
#: ./TranslationServiceTool.py
msgid "date_format_short"
msgstr "${d} ${b} ${Y}"
Правка этого файла помогла, правда везде в настройках до этого поставил
русский язык, и поставил LinguaPlone, тоже его настроив. Уж не знаю,
обязательны ли эти процедуры, но помогло.
В версии 2.х Плона нужна была правка локали в конфиге, сейчас оттуда (из
конфига) практически всё убрали.
msgid "date_format_short"
msgstr "${d}-${m}-${Y}"
поменял на
msgid "date_format_short"
msgstr "${d}-${b}-${Y}"
и сейчас показывает дату в формате 30-Мар-2009
А вот что не нравится - так это что прийдётся с каждым выходом продукта править строки. Да и повлияет на все сайты инстанса. Как можно сделать это цивилизованно?
--~--~---------~--~----~------------~-------~--~----~
Russian Plone Group
http://plone.org.ru/Для отправки сообщений
[hidden email]
Новые участники контролируются
Архив и настройки подписки
http://groups.google.com/group/plone-ru-~----------~----~----~----~------~----~------~--~---