Fixes for lang conflict

This commit is contained in:
David Bomba 2021-04-29 12:31:49 +10:00
commit 1d49f1fe21
5 changed files with 33 additions and 26 deletions

View File

@ -361,7 +361,7 @@ if (! defined('APP_NAME')) {
define('NINJA_APP_URL', env('NINJA_APP_URL', 'https://app.invoiceninja.com')); define('NINJA_APP_URL', env('NINJA_APP_URL', 'https://app.invoiceninja.com'));
define('NINJA_DOCS_URL', env('NINJA_DOCS_URL', 'https://invoice-ninja.readthedocs.io/en/latest')); define('NINJA_DOCS_URL', env('NINJA_DOCS_URL', 'https://invoice-ninja.readthedocs.io/en/latest'));
define('NINJA_DATE', '2000-01-01'); define('NINJA_DATE', '2000-01-01');
define('NINJA_VERSION', '4.5.37' . env('NINJA_VERSION_SUFFIX')); define('NINJA_VERSION', '4.5.38' . env('NINJA_VERSION_SUFFIX'));
define('NINJA_TERMS_VERSION', '1.0.1'); define('NINJA_TERMS_VERSION', '1.0.1');
define('SOCIAL_LINK_FACEBOOK', env('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja')); define('SOCIAL_LINK_FACEBOOK', env('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja'));

View File

@ -496,11 +496,6 @@ class User extends Authenticatable
public function eligibleForMigration() public function eligibleForMigration()
{ {
// Not ready to show to hosted users
if (Utils::isNinjaProd()) {
return false;
}
return is_null($this->public_id) || $this->public_id == 0; return is_null($this->public_id) || $this->public_id == 0;
} }
} }

View File

@ -59,7 +59,7 @@ author = u'Invoice Ninja'
# The short X.Y version. # The short X.Y version.
version = u'4.5' version = u'4.5'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = u'4.5.37' release = u'4.5.38'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@ -4271,7 +4271,17 @@ $LANG = array(
'activity_82' => ':user archived subscription :subscription', 'activity_82' => ':user archived subscription :subscription',
'activity_83' => ':user deleted subscription :subscription', 'activity_83' => ':user deleted subscription :subscription',
'activity_84' => ':user restored subscription :subscription', 'activity_84' => ':user restored subscription :subscription',
'lang_Russian' => 'Russian',
'amount_greater_than_balance_v5' => 'The amount is greater than the invoice balance. You cannot overpay an invoice.',
'click_to_continue' => 'Click to continue',
'notification_invoice_created_subject' => 'Invoice :invoice was created to :client',
'notification_invoice_created_subject' => 'Invoice :invoice was created for :client',
'notification_quote_created_subject' => 'Quote :invoice was created to :client',
'notification_quote_created_subject' => 'Quote :invoice was created for :client',
'notification_credit_created_subject' => 'Credit :invoice was created to :client',
'notification_credit_created_subject' => 'Credit :invoice was created for :client',
); );
return $LANG; return $LANG;

View File

@ -238,6 +238,7 @@
</div> </div>
</div> </div>
@if (Utils::isSelfHost() || request()->show_migration)
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3> <h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3>
@ -259,6 +260,7 @@
</div> </div>
</div> </div>
</div> </div>
@endif
{!! Former::close() !!} {!! Former::close() !!}