Translation missing/error log lines after passman enabled
Error PHP Method OC_L10N_String::__toString() must return a string value at /usr/pbi/owncloud-amd64/www/owncloud/lib/private/L10N/L10N.php#84 2017-02-10T11:46:57+00:00
Error PHP vsprintf(): Too few arguments at /usr/pbi/owncloud-amd64/www/owncloud/lib/private/legacy/l10n/string.php#71 2017-02-10T11:46:57+00:00
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
See #209
Hmm... don't get any of these log lines from other apps. If really being a core problem assuming all apps had this same issue?
You've got a stack trace?
Have to study how to get it
Related: https://help.nextcloud.com/t/php-errors-and-ramdisk/8028 https://github.com/nextcloud/server/issues/3309
@icewind1991 do you know what might cause this?
@brantje i get the same error and i think its due to the language strings. For example iam using german language and i get the error log when iam opening the passman app. On this first page, the "Create a new vault" didnt get translated at all, but the rest on this page is correctly translated.
Seen in 12.0.2 when activating the Mail app. If I activate the Mail app when language is set to "Swedish" I get this error. If language is set to "English (US)" there is no error. Same with Passman.
We're following the docs (Example), if it causes errors then Nextcloud should update their docs.
@BernhardPosselt do you know why this is happening?
No idea
Found it:
Fix:
$this->trans->t('Generating sharing keys ( %s / 2)', '%step');
As brantje commented,
Change line 44 on 'controller/translationcontroller.php' to:
'generating.sharing.keys' => $this->trans->t('Generating sharing keys ( %s / 2)','%step'),