gettext-template: Update POTFILES if there are removed or added files that includes translatable strings

Open
#45 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, shell

Research direction

Start by tracing the existing Gettext Actions workflow and how POTFILES is consumed. Define how added and removed files are detected and how translatable calls such as _(), ngettext(), and dgettext() are recognized; done means POTFILES is synchronized automatically without causing Gettext Actions to fail.

Written by the indexing model from the issue text.

Description

Priority: Wishlist

Prerequisites

  • I have searched open and closed issues for duplicates.

Feature

Is your feature request related to a problem? Please describe.
スクリーンショット 2020-06-24 19 36 46
Editing POTFILES is not automated at the moment, so if we forget to update POTFILES when adding/removing files that include translatable strings, Gettext Actions will fail.

Describe the solution you'd like
It would be useful if the Gettext Actions can detect added/removed files from a project, check if they include translatable strings (_(), ngettext (), dgettext (), etc.), and if so remove/add the path to them from POTFILES automatically.

Existing work
N/A

Describe alternatives you've considered
N/A

Additional context
N/A

Dominant language
Shell
Stars
39
Forks
9
PR merge metrics
No merged PRs in 30d

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.

More from elementary/actions

All issues in elementary/actions

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.