PowerShell / PowerShell/PSResourceGet

Localize errors by storing them in a resx file

Open
#1,088 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-ErrorHandling Issue-Enhancement
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.
Steps to reproduce

Code clean up issue: Store errors used in Find, Install in resx file for localization, per this comment: https://github.com/PowerShell/PowerShellGet/pull/1065#discussion_r1175663651

Expected behavior
Errors are stored in resx file
Actual behavior
Currently errors are in each .cs file.
Error details

No response

Environment data
platform agnostic
Visuals

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Find and Install implementations and the linked discussion in PowerShell/PowerShellGet#1065. Inventory the errors currently defined in their .cs files, then determine the relevant resx resource structure; done means those errors are stored in the resx file and remain available for localization.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
localization
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.