[campsite-support] dates in chinese
  • There is something wrong in the templates for dates in chinese.

    The template looks like this:

    {{ $campsite->article->publish_date|camp_date_format:"%W, %e %M %Y." }}



    On the english articles, the result is:
    Monday, 6 April 2009.

    but on the chinese articles, it is:
    星期一day, 6 4月il 2009.

    when it should be:
    星期一, 6 4月 2009.


    Why does this happen? How can I fix it?
    There were other errors when converting the templates from version 2.6.7 to 3.2.1, but I managed to fix those. I don't know what to do about this one.

    /Sebastian
  • 1 Comment sorted by
  • Dear Sebastian,

    I tested this and it worked ok for me; here is the template code I used:

    {{ $campsite->article->publish_date|camp_date_format:"%W, %e %M %Y." }}

    Did you make sure your article was translated to Chinese and the translation
    was published.

    You could also try to clear the campsite cache (menu->Actions->Clear system
    cache).

    In case you still have this problem please send me a backup of your site to
    investigate.

    Mugur

    On Wed, Apr 8, 2009 at 8:58 PM, wrote:

    > There is something wrong in the templates for dates in chinese.
    >
    > The template looks like this:
    >

    {{ $campsite->article->publish_date|camp_date_format:"%W,
    > %e %M %Y." }}


    >
    > On the english articles, the result is:
    > Monday, 6 April 2009.
    >
    > but on the chinese articles, it is:
    > 星期一day, 6 4月il 2009.
    >
    > when it should be:
    > 星期一, 6 4月 2009.
    >
    >
    > Why does this happen? How can I fix it?
    > There were other errors when converting the templates from version 2.6.7 to
    > 3.2.1, but I managed to fix those. I don't know what to do about this one.
    >
    > /Sebastian
    >