Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
ryonakano opened this issue Jun 24, 2020 · 1 comment
Labels
Priority: Wishlist Not a priority, but something that might be nice

Comments

@ryonakano
Copy link
Contributor

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

@ryonakano ryonakano added the Priority: Wishlist Not a priority, but something that might be nice label Jun 24, 2020
@ryonakano
Copy link
Contributor Author

I'm still not able to work on this but left a regex to detect translatable strings like _("Hello world!") or ngettext ("%i item", "%i items", item_count).printf (item_count) in vala code:

((|Q|N|NC)\_|(d|dc|n|dn)gettext|dpgettext(2)?)\s?\("

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Wishlist Not a priority, but something that might be nice
Projects
None yet
Development

No branches or pull requests

1 participant