Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Jul 31, 2025

This replaces #8489 which was unintentionally closed automatically as a side effect of renaming its branch to enable builds in our brander.

  • Updated macOS integration project to use localized string resources instead of unlocalized string literals.
  • Three new resources must be created on Transifex before this can be integrated. Can @Rello do that due to required privileges? The updated Transifex configuration file provides more information on the expected identifiers.
  • Info.plist (manifests), of which there are one for each the file provider extension and the file provider UI extension, require a dedicated localization resource. This is a constraint imposed by the platform.
  • I translated German by myself for verification of the functionality.

@i2h3 i2h3 added this to the 3.17.0 milestone Jul 31, 2025
@i2h3 i2h3 self-assigned this Jul 31, 2025
@i2h3 i2h3 force-pushed the feature/file-provider-localization branch 5 times, most recently from 0287607 to d25a6cc Compare July 31, 2025 15:14
@camilasan
Copy link
Member

@i2h3 i2h3 force-pushed the feature/file-provider-localization branch from d25a6cc to 2001c77 Compare July 31, 2025 16:05
@i2h3 i2h3 requested a review from Copilot July 31, 2025 19:16

This comment was marked as outdated.

@i2h3 i2h3 force-pushed the feature/file-provider-localization branch from 2001c77 to 4802004 Compare August 1, 2025 06:49
@i2h3 i2h3 requested a review from Copilot August 1, 2025 06:50

This comment was marked as outdated.

@i2h3 i2h3 force-pushed the feature/file-provider-localization branch from a438cb9 to c78bd2f Compare August 1, 2025 07:03
@github-actions
Copy link

github-actions bot commented Aug 1, 2025

Artifact containing the AppImage: nextcloud-appimage-pr-8507.zip

SHA256 checksum: 89e6f8b63b2f83e6cd89b364e7090ffc9d1ec8afb9093c6afc72def7f70cb6ec

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@i2h3 i2h3 requested a review from Copilot August 1, 2025 07:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements localization for the macOS File Provider integration by replacing hardcoded string literals with localized string resources. The change enables internationalization support for the File Provider extension and UI components.

  • Replace hardcoded English strings with String(localized:) calls across Swift files
  • Add Localizable.xcstrings files for both FileProviderExt and FileProviderUIExt modules
  • Update Xcode project configuration to enable localization and add German translations

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
project.pbxproj Added localization resource files to build targets and enabled Swift localization strings
ShareViewController.swift Replaced hardcoded strings with localized equivalents for UI labels and error messages
ShareTableViewDataSource.swift Localized error messages and user-facing text
ShareTableItemView.swift Localized accessibility descriptions
ShareOptionsView.swift Localized UI element titles and placeholders
LockViewController.swift Localized lock/unlock status messages and button titles
Localizable.xcstrings (FileProviderUIExt) Added comprehensive localization dictionary with German translations
Localizable.xcstrings (FileProviderExt) Added basic localization dictionary for file provider strings
.tx/config Updated Transifex configuration to include new localization resources

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2025

@mgallien mgallien merged commit 52080b1 into master Aug 1, 2025
18 checks passed
@mgallien mgallien deleted the feature/file-provider-localization branch August 1, 2025 08:01
@nilsding
Copy link
Member

nilsding commented Aug 1, 2025

/backport to stable-3.17

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.

5 participants