elementary / elementary/actions

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
Priority: Wishlist
Dominant language
Shell
Stars
39
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## Prerequisites
- [x] 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](https://user-images.githubusercontent.com/26003928/85540569-1d196b00-b652-11ea-8f5c-188f094b1845.png)
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.