1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

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_DOCS_URL', env('NINJA_DOCS_URL', 'https://invoice-ninja.readthedocs.io/en/latest'));
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('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()
{
// Not ready to show to hosted users
if (Utils::isNinjaProd()) {
return false;
}
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.
version = u'4.5'
# 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
# for a list of supported languages.

View File

@ -4271,7 +4271,17 @@ $LANG = array(
'activity_82' => ':user archived subscription :subscription',
'activity_83' => ':user deleted 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;

View File

@ -238,27 +238,29 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label for="modules" class="control-label col-lg-4 col-sm-4"></label>
<div class="col-lg-8 col-sm-8">
<div class="help-block">{{ trans('texts.migrate_intro_text')}}</div><br/>
@if(Auth::user()->eligibleForMigration())
<a class="btn btn-primary btn-lg"
href="{{ url('/migration/start') }}">{!! trans('texts.start_migration') !!}</a>
@else
{{ trans('texts.not_allowed') }}
@endif
<br/>
<a href="https://invoiceninja.github.io/docs/migration/" target="_blank">{{ trans('texts.learn_more') }}</a>
@if (Utils::isSelfHost() || request()->show_migration)
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label for="modules" class="control-label col-lg-4 col-sm-4"></label>
<div class="col-lg-8 col-sm-8">
<div class="help-block">{{ trans('texts.migrate_intro_text')}}</div><br/>
@if(Auth::user()->eligibleForMigration())
<a class="btn btn-primary btn-lg"
href="{{ url('/migration/start') }}">{!! trans('texts.start_migration') !!}</a>
@else
{{ trans('texts.not_allowed') }}
@endif
<br/>
<a href="https://invoiceninja.github.io/docs/migration/" target="_blank">{{ trans('texts.learn_more') }}</a>
</div>
</div>
</div>
</div>
</div>
@endif
{!! Former::close() !!}