fix: always use english name for recently contacted category#54736
fix: always use english name for recently contacted category#54736
Conversation
|
Possible performance regression detected Show Output |
e948659 to
9ccae2f
Compare
|
Possible performance regression detected Show Output |
1 similar comment
|
Possible performance regression detected Show Output |
|
Possible performance regression detected Show Output |
ChristophWurst
left a comment
There was a problem hiding this comment.
👏 for a live migration without downtime
👏 for using a transaction for fast throughput
|
/backport to stable32 |
|
/backport to stable31 |
| 'URI' => UUIDUtil::getUUID(), | ||
| 'FN' => $this->getDisplayName($contact->getUid()) ?? $contact->getEmail() ?? $contact->getFederatedCloudId(), | ||
| 'CATEGORIES' => $this->l10n->t('Recently contacted'), | ||
| 'CATEGORIES' => 'Recently contacted', |
There was a problem hiding this comment.
Maybe add a comment here that this should not be translated. Otherwise someone finds it in the future and makes it translated again.
SebastianKrupinski
left a comment
There was a problem hiding this comment.
Tested. Works.
My only comment was going to be that if this is a one time thing, we could just do a regex, string replacement, as the structure is generated by us and is very predicable.
UPDATE vcards
SET vcard_data = REGEXP_REPLACE(
vcard_data,
'CATEGORIES:[^\r\n]*',
'CATEGORIES:Recent Contact'
)
WHERE vcard_data REGEXP 'CATEGORIES:';
But Sqlite does not support regex_replace, so that ideas is out
Signed-off-by: Daniel Kesselberg <[email protected]>
d531867 to
247861d
Compare
|
The backport to # Switch to the target branch and update it
git checkout stable31
git pull origin stable31
# Create the new backport branch
git checkout -b backport/54736/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 247861d2
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/54736/stable31Error: Failed to push branch backport/54736/stable31: remote: Invalid username or token. Password authentication is not supported for Git operations. Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
/backport to stable31 |
Summary
Grouping in contacts is done by the categories property and therefore it's not ideal to translate it.
See nextcloud/contacts#4663 for additional context and steps to reproduce.
TODO
Helper script to generate recent contacts
Checklist