Oh yeah, here's the PHP documentation page about sprintf(). The "%%" part is obscurely explained there as:
Each conversion specification consists of a percent sign (%), followed by one or more of these elements, in order: ... 6. A type specifier that says what type the argument data should be treated as. Possible types: % - a literal percent character. No argument is required. They do make it a bit clearer in one of the examples where there's a code comment that says "// notice the double %%, this prints a literal '%' character". -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1681282 Title: warning message when using japanese language pack Status in Mahara: In Progress Status in Mahara 17.10 series: Confirmed Bug description: Install japanese language pack go to admin/index.php refresh the page you will see a warning message: [WAR] b4 (lib/mahara.php:1470) sprintf(): Too few arguments This is happening because the function sprintf has a string parameter containing a '%' symbol that makes the function expect an extra string, but the symbol is in fact part of an URL. parameter string: <strong class="error text-danger">Cronが動作していません。</strong><br />cronのセットアップに関するインストラクションは<a href="https://wiki.mahara.org/wiki/System_Administrator%27s_Guide/Installing_Mahara">installation guide</a>をご覧ください。あなたがすでにcronをセットアップしている場合、直近の1つまたはそれ以上の処理が正しく実行されませんでした。 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1681282/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp