passman icon indicating copy to clipboard operation
passman copied to clipboard

Translation missing/error log lines after passman enabled

Open manfred-mp opened this issue 9 years ago • 12 comments

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.

manfred-mp avatar Feb 10 '17 12:02 manfred-mp

See #209

brantje avatar Feb 10 '17 12:02 brantje

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?

manfred-mp avatar Feb 10 '17 12:02 manfred-mp

You've got a stack trace?

brantje avatar Feb 10 '17 12:02 brantje

Have to study how to get it

manfred-mp avatar Feb 10 '17 12:02 manfred-mp

Related: https://help.nextcloud.com/t/php-errors-and-ramdisk/8028 https://github.com/nextcloud/server/issues/3309

brantje avatar Feb 17 '17 13:02 brantje

@icewind1991 do you know what might cause this?

brantje avatar Feb 19 '17 21:02 brantje

@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.

mind22 avatar May 18 '17 12:05 mind22

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.

simmarn avatar Aug 21 '17 09:08 simmarn

We're following the docs (Example), if it causes errors then Nextcloud should update their docs.

@BernhardPosselt do you know why this is happening?

brantje avatar Aug 21 '17 09:08 brantje

No idea

BernhardPosselt avatar Aug 21 '17 09:08 BernhardPosselt

Found it: image Fix: $this->trans->t('Generating sharing keys ( %s / 2)', '%step');

brantje avatar Aug 21 '17 09:08 brantje

As brantje commented,

Change line 44 on 'controller/translationcontroller.php' to: 'generating.sharing.keys' => $this->trans->t('Generating sharing keys ( %s / 2)','%step'),

OS3DrNick avatar Oct 16 '17 19:10 OS3DrNick