giellalt / bugzilla-dummy

0 stars 0 forks source link

the follow-up screen for paradigm generation has one option too much (Bugzilla Bug 1920) #1631

Closed albbas closed 8 years ago

albbas commented 9 years ago

This issue was created automatically with bugzilla2github

Bugzilla Bug 1920

Date: 2014-11-18T20:42:46+01:00 From: Trond Trosterud <> To: Ciprian Gerstenberger <> CC: lene.antonsen, trond.trosterud

Last updated: 2016-01-20T14:57:42+01:00

albbas commented 9 years ago

Comment 9809

Date: 2014-11-18 20:42:46 +0100 From: Trond Trosterud <>

E.g. on the newly installed Russian paradigm generator:.g. http://giellatekno.uit.no/cgi/p-rus.nob.html

Note there is one option: Add a russian word, e.g. собака everything works fine, but on the next page there is a follow-up with an extra option

Full paradigm Full paradigm with dialectal variation

The text can be found in the xdoc/cgi folder, but I do not understand why it is invoked. We do not want it, we want the menus to be the same as for the previous page.

For sme, the first page gives

Gje minimalt paradigme Standardparadigme Fullt paradigme, med alle bøyningsformer

and the follow-up page gives

Give minimal paradigm

Standard

Full paradigm

Full paradigm with dialectal variation

(with space inbetween, in english and with 4 options.)

So, what goes on?

albbas commented 9 years ago

Comment 9810

Date: 2014-11-18 20:46:24 +0100 From: Trond Trosterud <>

Here is the text in cgi-eng.xml:

Note that when testing sme with nob or whatever as localisation page, this text in English always pops up. It thus seems we fail calling the proper page, and get this (to big) page.

The bug is solved when:

albbas commented 9 years ago

Comment 9811

Date: 2014-11-18 20:53:01 +0100 From: Trond Trosterud <>

Her er koden i conf.pl. Merk at vi ein stad berre har tre typar (minimal-standard-full), og dialekt manglar. Kan det vere det som er problemet?

# Files to generate paradigm
# Search first the language-specific paradigms, otherwise use
# the paradigmfiles for sme.
if ($action eq "paradigm") {
    %paradigmfiles = (
                      minimal => "$fstdir/paradigm_min.$lang.txt",
                      standard => "$fstdir/paradigm_standard.$lang.txt",
                      full => "$fstdir/paradigm_full.$lang.txt",
                      dialect => "$fstdir/paradigm_full.$lang.txt",
                      );
    if ($mode) { $paradigmfile = $paradigmfiles{$mode}; }
    if (! $mode || ! -f $paradigmfile) { $paradigmfile="$fstdir/paradigm.$lang.txt"; }
    if (! -f $paradigmfile) { $paradigmfile="$commondir/paradigm.txt"; }

if (-f $paradigmfiles{minimal}) { $lang_actions{minimal} = 1; }
if (-f $paradigmfiles{standard}) { $lang_actions{standard} = 1; }
if (-f $paradigmfiles{full} || -f $gen_norm_fst ) { $lang_actions{full} = 1; }
}
if (-f $gen_norm_fst) { $lang_actions{dialect} = 1; }
else { $gen_norm_fst = $gen_fst; }

if ($action eq "analyze" && ! -f $fst_without_semtags) { 
    http_die '--no-alert','404 Not Found',"analyser-gt-desc.xfst is not in the $lang/bin folder";
}
albbas commented 8 years ago

Comment 11107

Date: 2016-01-20 14:57:42 +0100 From: Ciprian Gerstenberger <>

I tested both with Russian and with North Saami. This bug is not existent anymore. case closed