Skip to content

Conversation

@SebastianKrupinski
Copy link
Contributor

@SebastianKrupinski SebastianKrupinski commented Oct 1, 2025

Summary

  • Added logic to set the imip email language on a per attendee basis

Checklist

}
// fallback to attendee LANGUAGE parameter if language not set
if ($language === null && isset($attendee['LANGUAGE']) && $attendee['LANGUAGE'] instanceof Parameter) {
$language = $attendee['LANGUAGE']->getValue();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that LANGUAGE parameters are RFC5646 language tags (e.g de-DE), while our language system seems to be using ISO 15897 (e.g de_DE). We should do best effort to try to convert those.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, We will address this in a separate PR, the L10n should automatically determine the format and pick the correct language

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a ticket/PR for that @SebastianKrupinski?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ticket: #56624

@SebastianKrupinski
Copy link
Contributor Author

/backport to stable32

@SebastianKrupinski
Copy link
Contributor Author

/backport to stable31

@SebastianKrupinski SebastianKrupinski force-pushed the fix/imip-set-language-by-user branch 4 times, most recently from 8c36b9b to b74aecb Compare October 1, 2025 19:39
@SebastianKrupinski SebastianKrupinski changed the title fix: imip set language per user fix(CalDAV): imip set language per user Oct 1, 2025
@SebastianKrupinski SebastianKrupinski marked this pull request as ready for review October 2, 2025 06:08
$locale = $this->config->getUserValue($user->getUID(), 'core', 'locale', null);
}
// fallback to attendee LANGUAGE parameter if language not set
if ($language === null && isset($attendee['LANGUAGE']) && $attendee['LANGUAGE'] instanceof Parameter) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDE is giving me some warnings about $attendee might be null. Could we maybe wrap every code that depends on $attendee != null in a if block? That would make it easier to understand the whole flow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that we are initializing $this->l10n in the constructor with the defaults. Could we change setL10n to setL10nByAttendeed and make $attendeed not nullable and check if not null one level above?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've made the attendee property a required one.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at the two open conversations

Looks good otherwise

Signed-off-by: SebastianKrupinski <[email protected]>
@SebastianKrupinski SebastianKrupinski force-pushed the fix/imip-set-language-by-user branch from fe7b057 to 345140a Compare November 25, 2025 13:47
@SebastianKrupinski SebastianKrupinski merged commit 5806dfb into master Nov 25, 2025
192 of 194 checks passed
@SebastianKrupinski SebastianKrupinski deleted the fix/imip-set-language-by-user branch November 25, 2025 14:55
@backportbot
Copy link

backportbot bot commented Nov 25, 2025

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/55473/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 345140ac

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/55473/stable31

Error: Failed to check for changes with origin/stable31: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants