helpGNU gettext - Support: sr #109125, Detecting missing files in POTFILES

 
 

sr #109125: Detecting missing files in POTFILES

Submitted by:  Piotr Drąg <piotrdrag>
Submitted on:  Wed 24 Aug 2016 10:56:36 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 27 Oct 2018 05:14:48 PM UTC, comment #3:

I would suggest looking into how intltool-update does it (https://bazaar.launchpad.net/~intltool/intltool/trunk/files). From my translator point-of-view, it scan the sources for files with keywords (_, ngettext, etc.) and writes a po/missing file listing the results. If a file is not in po/POTFILES.in intentionally, then I can add it to po/POTFILES.skip, and intltool-update -m ignores it.

> Detecting non-existent files is probably already present: xgettext will produce an error message when it accesses a non-existent file.


You’re right, I forgot about it.

Piotr Drąg <piotrdrag>
Sat 27 Oct 2018 04:45:18 PM UTC, comment #2:

Note: The Autoconf project has a Makefile.maint that contains this target:

And the gnulib/top/maint.mk contains the target sc_po_check, that does similar things:

Bruno Haible <haible>
Project Administrator
Sat 27 Oct 2018 11:58:31 AM UTC, comment #1:

Detecting non-existent files is probably already present: xgettext will produce an error message when it accesses a non-existent file.

Detecting missing files is a problem that I see more on the side of the build system (Automake) than in the Gettext package, because this missing file detection would need to know many things that are specific to the project:
- Which files are source files, vs. which files are just random files created by the developer and not checked into version control?
- Which directories contain tests and therefore should be ignored?
- Which directories contain rapidly evolving (prototype-like) source, that is not yet ready for translation?
- Which file suffixes are used for which programming language?

However, I would agree that a recommendation for how to deal with this problem could well be stated in the Gettext manual.

Do you have an idea how this recommendation should look like? Collect the list of files through some 'find' command or 'git' command? When: at 'make dist' time?

Bruno Haible <haible>
Project Administrator
Wed 24 Aug 2016 10:56:36 AM UTC, original submission:

The last big missing feature from intltool is detecting missing and non-existing files in POTFILES.in/.skip (intltool-update -m). It would be great if a similar feature could be implemented in gettext.

Piotr Drąg <piotrdrag>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by piotrdrag (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-27 haible StatusNone => Need Info

    Back to the top


    Powered by Savane 3.3