wordpress-mobile / wordpress-mobile/release-toolkit

`update_metadata_source` doesn't add new entries

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement
Dominant language
Ruby
Stars
31
Forks
10
Avg merge
5h 45m
Merged PRs (30d)
2

Description

The android_update_metadata_source and ios_update_metadata_source can only update existing entries, but they don't add new entries to the file even if the entries are correctly defined in the parameters.

In order to add a new string, the user shall manually add it to the .po file. After that, release-toolkit is able to update them automatically.

We should fix the above actions so that they add new entries automatically when they are added to the parameters.

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 locating the android_update_metadata_source and ios_update_metadata_source actions in release-toolkit and inspect how they read and write .po files. Verify the behavior with existing update cases, then confirm that entries supplied through the parameters are added automatically while existing entries continue to update.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
localization, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.