| @@ 438-446 (lines=9) @@ | ||
| 435 | ||
| 436 | $lang = $this->getLang(); |
|
| 437 | ||
| 438 | if (!in_array('label', $terms)) { |
|
| 439 | $errors[] = [ |
|
| 440 | 'prio' => 2, |
|
| 441 | 'name' => 'Wikidata', |
|
| 442 | 'notice' => "Label for language <em>$lang</em> is missing", // FIXME: i18n |
|
| 443 | 'explanation' => "See: <a target='_blank' " . |
|
| 444 | "href='//www.wikidata.org/wiki/Help:Label'>Help:Label</a>", |
|
| 445 | ]; |
|
| 446 | } |
|
| 447 | ||
| 448 | if (!in_array('description', $terms)) { |
|
| 449 | $errors[] = [ |
|
| @@ 448-456 (lines=9) @@ | ||
| 445 | ]; |
|
| 446 | } |
|
| 447 | ||
| 448 | if (!in_array('description', $terms)) { |
|
| 449 | $errors[] = [ |
|
| 450 | 'prio' => 3, |
|
| 451 | 'name' => 'Wikidata', |
|
| 452 | 'notice' => "Description for language <em>$lang</em> is missing", // FIXME: i18n |
|
| 453 | 'explanation' => "See: <a target='_blank' " . |
|
| 454 | "href='//www.wikidata.org/wiki/Help:Description'>Help:Description</a>", |
|
| 455 | ]; |
|
| 456 | } |
|
| 457 | ||
| 458 | return $errors; |
|
| 459 | } |
|