Skip to content

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

Description

@ryonakano

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

Activity

  1. ryonakano commented on Oct 7, 2020

    @ryonakano
    MemberAuthor

    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|C)\_|(d|dc|n|dn)gettext|dpgettext(2)?)\s?\("
    
  2. added theissue type on May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: WishlistNot a priority, but something that might be nice

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions