ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

define multiple different %s when setting error messages?

April 13, 2013 9:31am

Subscribe [1]
  • #1 / Apr 13, 2013 9:31am

    edidiway

    21 posts

    hello every body, can I know how to use %s multiple times in setting error message ?
    I have tried googling and no solution found. Please help.

    I want to show 2 language at the same time like this :

    柱 %s 是必需的 | The %s field is required.

    but I get this error message

    Message: sprintf() [function.sprintf]: Too few arguments
    Filename: libraries/Form_validation.php


    I have tried this too :

    柱 %1$s 是必需的 | The %1$s field is required.

    but I get this error message

    Message: Undefined variable: s
    Filename: mandarin/form_validation_lang.php
  • #2 / Apr 15, 2013 3:25am

    edidiway

    21 posts

    anyone have solution for this problem ?
    please help.
    thank you..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases