[GH-ISSUE #182] add language to user profile, use it to translate email content #169

Open
opened 2026-02-26 09:36:16 +03:00 by kerem · 5 comments
Owner

Originally created by @ThomasWaldmann on GitHub (Nov 23, 2014).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/182

to send translated messages to users (e.g. by email), we need their language in the user profile.

after this, we can do it like shown there for all places where send_mail is invoked:

http://stackoverflow.com/questions/8683676/django-sending-localized-emails-depending-on-userprofile-language-field-data

Originally created by @ThomasWaldmann on GitHub (Nov 23, 2014). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/182 to send translated messages to users (e.g. by email), we need their language in the user profile. after this, we can do it like shown there for all places where send_mail is invoked: http://stackoverflow.com/questions/8683676/django-sending-localized-emails-depending-on-userprofile-language-field-data
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 25, 2014):

userprofiles implemented by cs aa425c3402

<!-- gh-comment-id:64397240 --> @ThomasWaldmann commented on GitHub (Nov 25, 2014): userprofiles implemented by cs aa425c34026b14eb4988430580e0de484477e941
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 27, 2014):

translatable messages: ae61712fbc and 58aae90b0a

<!-- gh-comment-id:64837820 --> @ThomasWaldmann commented on GitHub (Nov 27, 2014): translatable messages: ae61712fbcf73effae682ced27c21332ab042ea9 and 58aae90b0ae6bf4d4d874b197974ac94b4890cfe
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 27, 2014):

todo: unify/move translatable strings to some common location (at least for management commands), update .po files / transifex.

<!-- gh-comment-id:64837874 --> @ThomasWaldmann commented on GitHub (Nov 27, 2014): todo: unify/move translatable strings to some common location (at least for management commands), update .po files / transifex.
Author
Owner

@ThomasWaldmann commented on GitHub (Jan 9, 2015):

wanted to use templates, blocked by: https://code.djangoproject.com/ticket/24111

bug already closed as wontfix and the option i tried to use will go away again in django again.
in django 1.8 there will be a solution for email templating.

<!-- gh-comment-id:69416657 --> @ThomasWaldmann commented on GitHub (Jan 9, 2015): wanted to use templates, blocked by: https://code.djangoproject.com/ticket/24111 bug already closed as wontfix and the option i tried to use will go away again in django again. in django 1.8 there will be a solution for email templating.
Author
Owner

@ThomasWaldmann commented on GitHub (Jan 10, 2015):

keep this on hold until we have a minimum requirement of django 1.8, so we can use its email templating.

<!-- gh-comment-id:69468437 --> @ThomasWaldmann commented on GitHub (Jan 10, 2015): keep this on hold until we have a minimum requirement of django 1.8, so we can use its email templating.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#169
No description provided.