Add RO locale in init configuration
This commit is contained in:
parent
21e75746a2
commit
ac876c5d25
|
@ -24,7 +24,7 @@ const APP_EMAIL_TEAM = 'team@' . APP_DOMAIN;
|
|||
const APP_EMAIL_SECURITY = 'security@' . APP_DOMAIN;
|
||||
const APP_USERAGENT = APP_NAME . '-Server/%s Please report abuse at ' . APP_EMAIL_SECURITY;
|
||||
const APP_MODE_ADMIN = 'admin';
|
||||
const APP_LOCALES = ['en', 'he'];
|
||||
const APP_LOCALES = ['en', 'he', 'ro'];
|
||||
const APP_PAGING_LIMIT = 15;
|
||||
|
||||
$register = new Registry();
|
||||
|
@ -115,7 +115,7 @@ $register->set('smtp', function() use ($request) {
|
|||
$mail->addReplyTo('team@appwrite.io', APP_NAME . ' Team');
|
||||
|
||||
$mail->isHTML(true);
|
||||
|
||||
|
||||
return $mail;
|
||||
});
|
||||
|
||||
|
@ -128,6 +128,8 @@ Locale::$exceptions = false;
|
|||
|
||||
Locale::setLanguage('en', include __DIR__ . '/config/locale/en.php');
|
||||
Locale::setLanguage('he', include __DIR__ . '/config/locale/he.php');
|
||||
Locale::setLanguage('ro', include __DIR__ . '/config/locale/ro.php');
|
||||
|
||||
|
||||
if(in_array($locale, APP_LOCALES)) {
|
||||
Locale::setDefault($locale);
|
||||
|
@ -204,4 +206,4 @@ if(APP_MODE_ADMIN === $mode) {
|
|||
}
|
||||
|
||||
// Set project mail
|
||||
$register->get('smtp')->setFrom(APP_EMAIL_TEAM, sprintf(Locale::getText('auth.emails.team'), $project->getAttribute('name')));
|
||||
$register->get('smtp')->setFrom(APP_EMAIL_TEAM, sprintf(Locale::getText('auth.emails.team'), $project->getAttribute('name')));
|
||||
|
|
Loading…
Reference in a new issue