| @@ 468-476 (lines=9) @@ | ||
| 465 | ||
| 466 | $errors = []; |
|
| 467 | ||
| 468 | if (!in_array('label', $terms)) { |
|
| 469 | $errors[] = [ |
|
| 470 | 'prio' => 2, |
|
| 471 | 'name' => 'Wikidata', |
|
| 472 | 'notice' => "Label for language <em>$lang</em> is missing", // FIXME: i18n |
|
| 473 | 'explanation' => "See: <a target='_blank' " . |
|
| 474 | "href='//www.wikidata.org/wiki/Help:Label'>Help:Label</a>", |
|
| 475 | ]; |
|
| 476 | } |
|
| 477 | if (!in_array('description', $terms)) { |
|
| 478 | $errors[] = [ |
|
| 479 | 'prio' => 3, |
|
| @@ 477-485 (lines=9) @@ | ||
| 474 | "href='//www.wikidata.org/wiki/Help:Label'>Help:Label</a>", |
|
| 475 | ]; |
|
| 476 | } |
|
| 477 | if (!in_array('description', $terms)) { |
|
| 478 | $errors[] = [ |
|
| 479 | 'prio' => 3, |
|
| 480 | 'name' => 'Wikidata', |
|
| 481 | 'notice' => "Description for language <em>$lang</em> is missing", // FIXME: i18n |
|
| 482 | 'explanation' => "See: <a target='_blank' " . |
|
| 483 | "href='//www.wikidata.org/wiki/Help:Description'>Help:Description</a>", |
|
| 484 | ]; |
|
| 485 | } |
|
| 486 | ||
| 487 | return $errors; |
|
| 488 | } |
|