New account notification message does not translate 10.0.10


#1

We are starting rolling out users on a new 10.0.10 instance.

We have both English and French speaking users (and probably other languages in the pipe).

When sending the new account welcome notifications, we noticed that the email received by French ones does not translate well… Only works for Subject and Salutations

English message below:
Your ownCloud account was created
Hey there,

just letting you know that you now have an ownCloud account.

Your username:
Please set the password by accessing it: Here

Cheers !

French message below:
Votre compte ownCloud a été créé
Hey there,

just letting you know that you now have an ownCloud account.

Your username:
Please set the password by accessing it: Here

À bientôt !

We tried with italian, same thing, the notification is all in English except for Subject and Salutations.

We looked at the files in l10n, but we found two occurrences of that folder in core and settings. The notification in English does not appear in any of the fr.js or fr.json files in those two folders. A slightly different one exists though.

We tried to add both folders and js/json files into a theme and add a translation for that notification with no luck.

Any hint appreciated.

BTW, we need to change language before creating new users depending on which language we want the user to receive the notification. Could be nice to have a language drop down list instead in the Users page so the user is immediately in the correct language at first login.


#2

Hey,

from what i know such strings are maintained via https://www.transifex.com/owncloud-org/owncloud/ . I think the translation there is just missing or am i wrong?


#3

Thanks,

Went to transifex and created an account. But we cannot really figure out where to add the missing translation for that new account email message, in which resource should it go?

If we can finally get this done, how do the new translations get to our system, next owncloud update?


#4

As the transifex seems a long update process, we tried to update l10n language files by adding the missing entry and translation.

We added the line in both core/l10n/fr.js and settings/l10n/fr.js, restarted nginx and php-fpm with no luck. We still get the English message when creating a new user…

We found out that this sentence is used in settings/templates/email.new_user.php

Here is the line we added to these fr.js files:

‘Hey there,

just letting you know that you now have an %s account.

Your username: %s
Please set the password by accessing it: Here

’ : ‘Bonjour,

Un compte %s a été créé pour vous.

Votre nom d’utilisateur est : %s
Vous devez créer votre mot de passe : Ici

Is there another place to do this that would temporarily work before the transifex update takes place?