[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Marking incompletely translated pages



2020년 3월 18일 (수) 오후 6:46, Holger Wansing <hwansing@mailbox.org>님이 작성:
>
> Hi,
>
> Changwoo Ryu <cwryu@debian.org> wrote:
> > Hello,
> >
> > Is there a way to mark translated pages as
> > "incomplete"(partially-translated) or (at least) "outdated"
> > explicitly?
> >
> > I recently found that most of the Korean-translated security advisory
> > pages were incomplete. Most of those pages have only their titles, a
> > typical line of "We recommend that you upgrade..." and line of
> > "...refer to its security tracker page at" translated. Other
> > descriptive texts were not translated but the whole pages were
> > committed as "up-to-date" pages. For example:
> > https://www.debian.org/security/2020/dsa-4641.ko.html
> >
> > It is not healthful way of translation but here I don't want to blame
> > the translator. I just want to show these incomplete pages as
> > incomplete in the translated pages and the translation statistics
> > page, not to hide them as up-to-date. Then other people could notice
> > that and do the unfinished job if they wish.
> >
> > This is why I want to mark some translated pages as incomplete. I
> > skimmed english/template/debian/translation-check.wml template but I
> > couldn't find a way. If there's no such way, let's make one please.
>
> The framework for this is already there, it is based on the header lines
> like
>
> #use wml::debian::translation-check translation="6f3adf6374f35194686f89dec2ba66b1ecf3bb5f"
>
> which point to the commit hash of the corresponding english version of
> that page. If that hash is too old, a hint is inserted into the outdated
> translated version of the page, saying "This page is outdated, use the
> original one".
> See for example here:
> https://www.debian.org/intro/organization.ko.html
>
> If the translation-check header is set to the "wrong" hash value (means:
> pointing to the latest commit hash for english, which is seens as "This
> translation is up-to-date"), the mechanism cannot work, though.
>
> To fix the situation for you, I assume you can set the header to something
> like
> #use wml::debian::translation-check translation="xxxyyyzzz"
> (along with a comment in the next line saying why you changed the hash).
> That should result in the above warning being displayed for that page.

I already tried it. When I tried to change the hash to wrong
"INCOMPLETE-<hash>" then it failed to build the .ko.html page, with
this error:


make[3]: Entering directory '/home/changwoo/debian/webwml/korean/security/2020'
wml -q -D CUR_YEAR=2020 -o UNDEFuKO:dsa-4641.ko.html@g+w   dsa-4641.wml
ePerl:Error: Perl runtime error (interpreter rc=0)

---- Contents of STDERR channel: ---------
count_changes() ERROR: commit rev1
INCOMPLETE-75999c5f7196426835c0846f81f2dc4fd1805869 not found in
revisions of ../../..//english/security/2020/dsa-4641.wml
------------------------------------------
** WML:Break: Error in Pass 3 (rc=1).
Died at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 403.
    TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55f68a5e6650),
3, SCALAR(0x55f68ab65f50), SCALAR(0x55f68ab65f20),
SCALAR(0x55f68ab65f38)) called at
/usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
    TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55f68a5e6650))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
    TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55f68a5e6650))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
    TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55f68a5e6650),
HASH(0x55f68a677f78)) called at /usr/bin/wml line 47
make[3]: *** [/home/changwoo/debian/webwml/english/security/2020/Makefile:39:
dsa-4641.ko.html] Error 2
make[3]: Leaving directory '/home/changwoo/debian/webwml/korean/security/2020'


Reply to: