Format code

This commit is contained in:
brantje 2016-12-20 00:47:32 +01:00
parent 6df14d6cba
commit 5e119ff7ed
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -18,10 +18,11 @@ use OCP\IL10N;
class TranslationController extends ApiController { class TranslationController extends ApiController {
private $trans; private $trans;
public function __construct($AppName, public function __construct($AppName,
IRequest $request, IRequest $request,
IL10N $trans IL10N $trans
){ ) {
parent::__construct($AppName, $request); parent::__construct($AppName, $request);
$this->trans = $trans; $this->trans = $trans;
} }
@ -31,7 +32,7 @@ class TranslationController extends ApiController {
* @NoAdminRequired * @NoAdminRequired
* @NoCSRFRequired * @NoCSRFRequired
*/ */
public function getLanguageStrings($lang){ public function getLanguageStrings($lang) {
$translations = array( $translations = array(
// templates/views/partials/edit_credential/basics.html // templates/views/partials/edit_credential/basics.html
'username' => $this->trans->t('Username'), 'username' => $this->trans->t('Username'),
@ -201,7 +202,6 @@ class TranslationController extends ApiController {
'unshare' => $this->trans->t('Unshare'), 'unshare' => $this->trans->t('Unshare'),
// templates/views/show_vault.html // templates/views/show_vault.html
'deleted.since' => $this->trans->t('Showing deleted since'), 'deleted.since' => $this->trans->t('Showing deleted since'),
'alltime' => $this->trans->t('All time'), 'alltime' => $this->trans->t('All time'),