mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
1254e8d618
. added translation functionality by -- adding loadPhrases-method in Controllers -- replacing hardcoded html-text with $this->p->t(...)
21 lines
468 B
PHP
21 lines
468 B
PHP
<?php
|
|
|
|
class Nation_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Nation
|
|
$this->load->model('codex/nation_model', 'NationModel');
|
|
$this->NationModel->addOrder('nation_code');
|
|
|
|
$this->addSelectToModel($this->NationModel, 'nation_code', 'kurztext');
|
|
|
|
$this->setElementsArray(
|
|
$this->NationModel->load(),
|
|
true,
|
|
$this->p->t('ui', 'bitteEintragWaehlen')
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |