I am now looking at the issue 1132, and got stuck there.
Thanks very much in advance
$criteria = new Criteria;
$criteria->add(QubitRelation::SUBJECT_ID, $this->resource->id);
$criteria->add(QubitRelation::TYPE_ID, QubitTerm::NAME_ACCESS_POINT_ID);
$value = $choices = array();
foreach (QubitRelation::get($criteria) as $item)
{
$choices[$value[] = $this->context->routing->generate(null, array($item->object, 'module' => 'actor'))] = $item->object;
}
That code looks fine for internationalization. The __('Subject of') is
a function call that will automatically replace the content with the
translated message for the current culture. The "render_title()"
function should also return a translated string.
Are you having a specific problem with translating one of the strings?
David
--
David Juhasz,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | P: +1.604.527.2056 | F: +1.604.521.2059
$ cd /var/www/ica-atom-install
$ sudo ./symfony i18n:extract --plugins --auto-save fr
This will generate the strings for French. To extract strings for all
languages currently supported by ICA-AtoM:
$ cd /var/www/ica-atom-install/apps/qubit/i18n
$ for i in *; do ../../../symfony i18n:extract --plugins --auto-save $i;
done
Cheers,
--
David Juhasz,
Software Engineer
Artefactual Systems Inc.
www.artefactual.com