Skip to content

Code Quality: Replace string.GetLocalizedResource() with Strings.object.GetLocalizedResource() #16718

@Lamparter

Description

@Lamparter

Description

Using "StringName".GetLocalizedResource() can cause issues when strings are renamed or removed as it makes it harder to see where strings are to replace them.
This should be replaced with Strings.StringName.GetLocalizedResource() across multiple PRs.

Concerned code

  • src/Files.App

This should probably be split up into multiple PRs e.g. for views/viewmodels, Actions, and the rest of the codebase, to make it easier to review.

Gains

  • Easier to tell where strings are
  • Can fix issues with string display if they are removed

Requirements

  • Replace "{0}".GetLocalizedResource with Strings.{0}.GetLocalizedResource across multiple PRs

Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions