[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: D17356: Add missing X-Qt-Contexts to header of *_qt.po files
From: Burkhard_Lück <noreply () phabricator ! kde ! org>
Date: 2018-12-04 18:53:38
Message-ID: 2df0c45463e9ce952c0ee105d1faae79 () localhost ! localdomain
[Download RAW message or body]
[Attachment #2 (text/plain)]
lueck created this revision.
lueck added a reviewer: Localization.
lueck requested review of this revision.
REVISION SUMMARY
we need the line
"X-Qt-Contexts: true\n"
in the header of *_qt.po files
so far scripty only checks for files without this line in a *_qt file
and reports this issue in the log, e. g.
https://logs.l10n.kde.org/181204.trunk_l10n-kf5
with 74 translation catalogs without a header entry "X-Qt-Contexts: true\n"
this patch adds the missing entry
TEST PLAN
in Konsole:
cd l10n
sed -i 's/\"Plural-Forms/\"X-Qt-Contexts: true\\n\"\n\"Plural-Forms/g' $(find `cat \
subdirs` -type f -name \*_qt.po -print | xargs grep -L "X-Qt-Contexts: true") svn \
diff
executing the command line a second time the
output reads:
sed: no input files
REPOSITORY
R883 Subversion
REVISION DETAIL
https://phabricator.kde.org/D17356
AFFECTED FILES
l10n-kf5/scripts/check_po_files
To: lueck, #localization
[Attachment #3 (text/html)]
<table><tr><td style="">lueck created this revision.<br />lueck added a reviewer: \
Localization.<br />lueck requested review of this revision. </td><a \
style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; \
color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; \
background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; \
border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17356">View \
Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>we need \
the line <br /> "X-Qt-Contexts: true\n"<br />
in the header of *_qt.po files<br />
so far scripty only checks for files without this line in a *_qt file<br />
and reports this issue in the log, e. g.<br />
<a href="https://logs.l10n.kde.org/181204.trunk_l10n-kf5" class="remarkup-link" \
target="_blank" rel="noreferrer">https://logs.l10n.kde.org/181204.trunk_l10n-kf5</a><br \
/> with 74 translation catalogs without a header entry "X-Qt-Contexts: \
true\n"<br /> this patch adds the missing entry</p></div></div><br \
/><div><strong>TEST PLAN</strong><div><p>in Konsole:<br /> cd l10n<br />
sed -i 's/\"Plural-Forms/\"X-Qt-Contexts: \
true\\n\"\n\"Plural-Forms/g' $(find <tt style="background: #ebebeb; \
font-size: 13px;">cat subdirs</tt> -type f -name \*_qt.po -print | xargs grep -L \
"X-Qt-Contexts: true")<br /> svn diff</p>
<p>executing the command line a second time the <br />
output reads:<br />
sed: no input files</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R883 Subversion</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D17356">https://phabricator.kde.org/D17356</a></div></div><br \
/><div><strong>AFFECTED \
FILES</strong><div><div>l10n-kf5/scripts/check_po_files</div></div></div><br \
/><div><strong>To: </strong>lueck, Localization<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic