Bug 1115911 - RFE: empty source files should be excluded by default
Summary: RFE: empty source files should be excluded by default
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Zanata
Classification: Retired
Component: Component-zanata-client
Version: 3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Michelle Kim
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-03 10:21 UTC by Akira TAGOH
Modified: 2015-07-31 01:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-31 01:19:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Akira TAGOH 2014-07-03 10:21:50 UTC
Description of problem:
po4a generates POT files even though containing no documents, when it just refers other man pages with .so say. so that would be nice if there are any way to prevent pushing such POT files into the server.

Version-Release number of selected component (if applicable):
zanata-client-3.1.1-1.fc20.noarch

Comment 1 Akira TAGOH 2014-07-10 08:39:34 UTC
Considering fixing this on po4a isn't an option, because man command doesn't try to find out the localized man pages without the man pages containing .so command in the localized directory. e.g.

setgroups(2) points to getgroups(2) though, if missing /usr/share/man/<lang>/man2/setgroups.2(.gz), man picks up /usr/share/man/man2/setgroups.2.gz and show /usr/share/man/man2/getgroups.2.gz instead of localized one, even if it is available.

Thus, POT files are required to generate for all of languages, but uploading the no-document POT files to the web might be annoyed for translators.

Comment 2 Ding-Yi Chen 2014-07-28 01:55:43 UTC
Akira,

Do you mean:
1) Zanata should skip the POT file without name. (i.e. ".pot"), or
2) Zanata should skip the POT file without content (i.e. empty file)?

Comment 3 Akira TAGOH 2014-07-28 03:48:00 UTC
(In reply to Ding-Yi Chen from comment #2)
> Akira,
> 
> Do you mean:
> 1) Zanata should skip the POT file without name. (i.e. ".pot"), or
> 2) Zanata should skip the POT file without content (i.e. empty file)?

Eventually both. but 1 is another issue I've separately filed as Bug#1121058, which looks more like a bug rather than RFE.

Comment 4 Ding-Yi Chen 2014-07-28 04:27:45 UTC
I suppose it would make more sense to exclude empty source documents (like empty POT) by default.

Comment 5 Damian Jansen 2014-07-29 02:48:10 UTC
Is there any sort of empty file "placeholder" use case for a document upload?

Comment 6 Akira TAGOH 2014-07-29 08:42:00 UTC
(In reply to Damian Jansen from comment #5)
> Is there any sort of empty file "placeholder" use case for a document upload?

there are so many empty documents in man-pages-l10n project.

Comment 8 Damian Jansen 2015-07-14 00:20:52 UTC
Reassigned to PM

Comment 9 Zanata Migrator 2015-07-31 01:19:00 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-424


Note You need to log in before you can comment on or make changes to this bug.