-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multilingual Emails #8044
base: main
Are you sure you want to change the base?
Multilingual Emails #8044
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and works as expected.
I'm not sure if some of the new files are in the preferred location - I will let others comment on if some of the new files should be placed in different location.
LGTM. |
Tested with the default configuration (no languages configured), I get a It fails internally in It happens also when configuring the languages in the settings. |
…lingual-emails # Conflicts: # core/src/main/java/org/fao/geonet/kernel/search/EsSearchManager.java # core/src/main/java/org/fao/geonet/util/XslUtil.java # index/src/main/java/org/fao/geonet/index/es/EsRestClient.java
Reproduced the first issue and it seems to be fixed after merging the changes from #8042.
I am however unable to reproduce the issue while configuring the languages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, the error is solved.
Please wait to merge it until 4.4.5
is released.
} catch (MissingResourceException e) { | ||
failedToFindASpecificTextTemplate = true; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
if ((failedToFindASpecificSubjectTemplate) && (failedToFindASpecificTextTemplate)) break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added loop breaking logic in latest push
Emails are currently sent in the UI language of the sender regardless of the preferences of the receiver.
This PR implements a framework for generating multilingual emails including:
Email messages for all specified languages will be concatenated with a separator.
If the settings fields are left empty, default back to the UI language.
Related feature request: #7966
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentation