Repository navigation
E-Mail Templates - #3683
E-Mail Templates#3683stephanarts wants to merge 23 commits into
Conversation
|
Can one of the admins verify this patch? |
|
good idea. But don't have time to test it currently. |
|
@owncloud-bot this is ok to test |
|
@stephanarts Changes to the core repo require a signed contributors agreement: http://owncloud.org/about/contributor-agreement/ - THX a lot for your contribution |
|
Two issues remain:
|
|
The signed contributors agreement is in frank's mailbox.
|
THX @karlitschek please confirm |
I don't see an issue with this by now as for the master branch we get translations via transifex.
No - it's embedded via relative url as I've written above: |
|
@owncloud-bot retest this please |
|
I see .. I expected the image_path function to expand to an absolute URL... Fixed now. |
ok - thanks a lot! |
|
O wait... you are talking about the anchor tag. |
|
Hold on. Will do that now. |
|
Sorry for the troubles, I overlooked it, it was indeed not working. Now it is. |
|
@DeepDiver1975 confirmed. I got it. |
THX |
|
I'll retest this PR and we can merge. @LukasReschke any sec relevant comments on this? THX |
There was a problem hiding this comment.
missing . after the closing anchor tag
|
I think the logo would look a bit better with a bit more space around @jancborchardt |
Doesn't improve much... It is better to modify the image. This reverts commit bac38f5.
|
@stephanarts THX |
There was a problem hiding this comment.
due to p() »%s« will be html escaped
There was a problem hiding this comment.
@stephanarts still cut the »here« after the »View it«. And also no dot after the link :)
There was a problem hiding this comment.
Sorry, one more. ;) only the »web services under your control« really needs to be translated here. And that string is already done. The rest should be hardcoded outside the translation call.
|
@stephanarts from my side just that string fix (see comments above) otherwise it’s great! And good call on displaying the link directly! :) |
|
Ok, squashed these commits in the email_template branch. :-) |
Awesome! Thanks a lot! Let's close this pull request then and you submit the email_template branch again - okay? |
|
@stephanarts the »ownCloud – « should also not be in the translation string. :) |
|
We have the slogan already somewhere in the translations that way. Let's keep it. In addition it's easier for translators to have the full string. |
|
@DeepDiver1975 then we should fix that occurence as well. »ownCloud« should be nowhere in the translation files, at least not when it’s not even part of a sentence like here. |
|
As stated above translators have an easier job if we keep it. Review process will ensure the typing is not changed. |
|
It’s already changed anyway. And it’s better in the long term if the slogan is separately translated. It already is in the translations as well. |
E-mail templates (#3683)
|
There is an issue with the email template, only the text template gets fully translated. The main sentence in the HTML email is always displayed in English despite the sentence in the template and in the translation file being identical. This is in the template: $l->t('Hey there,
This is in the translation file 'Hey there, EDIT: Replace with "%s" in all translations files and in mail.php and HTML text will get translated. |
|
I'm currently experiencing the problem described by @stephanarts a while ago about translations in international environments:
Forcing all users to use a specific (foreign) language just to get notifications in the right language defeats the purpose of translation. Furthermore I can only overwrite the template generating the body of the email to not use translations, but as far as I understand there's no way to change the subject of the email without modifying owncloud core files directly (as it's located in .../owncloud/core/ajax/share.php). I'd really like to see an admin option to disable translation for emails, or at least an easy option to override everything in templates. |
|
@ssams right, interesting problem. Can you open a separate issue about this please? Thanks! :) |

I did not like the e-mails sent by ownCloud, they were a bit 'clunky'.
So, I implemented two templates, one 'mail' and one 'altmail' for the HTML and ASCII e-mails. The 'built-in' templates use the original translations, and should be backwards-compatible with the old code in 5.0.
A logo-mail.gif is added, which is a modification of logo-wide.png because several mail-clients (including Outlook 2007 and several versions of Lotus notes) do not support .png images.
It is a drop-in replacement for the existing mail feature without breaking any translations and allows users to theme their e-mails.
Regards,
Stephan