mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Rename many references from native to primary.
This commit is contained in:
@@ -128,11 +128,11 @@ abstract class Controller extends BaseController
|
||||
$this->defaultCurrency = null;
|
||||
// get shown-intro-preference:
|
||||
if (auth()->check()) {
|
||||
$this->defaultCurrency = Amount::getNativeCurrency();
|
||||
$this->defaultCurrency = Amount::getPrimaryCurrency();
|
||||
$language = Steam::getLanguage();
|
||||
$locale = Steam::getLocale();
|
||||
$darkMode = app('preferences')->get('darkMode', 'browser')->data;
|
||||
$this->convertToNative = Amount::convertToNative();
|
||||
$this->convertToNative = Amount::convertToPrimary();
|
||||
$page = $this->getPageName();
|
||||
$shownDemo = $this->hasSeenDemo();
|
||||
View::share('language', $language);
|
||||
|
@@ -285,8 +285,8 @@ class DebugController extends Controller
|
||||
'user_count' => User::count(),
|
||||
'user_flags' => $userFlags,
|
||||
'user_agent' => $userAgent,
|
||||
'native' => Amount::getNativeCurrency(),
|
||||
'convert_to_native' => Amount::convertToNative(),
|
||||
'native' => Amount::getPrimaryCurrency(),
|
||||
'convert_to_native' => Amount::convertToPrimary(),
|
||||
'locale_attempts' => $localeAttempts,
|
||||
'locale' => Steam::getLocale(),
|
||||
'language' => Steam::getLanguage(),
|
||||
|
@@ -45,8 +45,8 @@ class FrontpageController extends Controller
|
||||
{
|
||||
$set = $repository->getPiggyBanks();
|
||||
$info = [];
|
||||
$native = Amount::getNativeCurrency();
|
||||
$convertToNative = Amount::convertToNative();
|
||||
$native = Amount::getPrimaryCurrency();
|
||||
$convertToNative = Amount::convertToPrimary();
|
||||
|
||||
|
||||
/** @var PiggyBank $piggyBank */
|
||||
|
@@ -120,7 +120,7 @@ class Range
|
||||
// save some formats:
|
||||
$monthAndDayFormat = (string) trans('config.month_and_day_js', [], $locale);
|
||||
$dateTimeFormat = (string) trans('config.date_time_js', [], $locale);
|
||||
$defaultCurrency = Amount::getNativeCurrency();
|
||||
$defaultCurrency = Amount::getPrimaryCurrency();
|
||||
|
||||
// also format for moment JS:
|
||||
$madMomentJS = (string) trans('config.month_and_day_moment_js', [], $locale);
|
||||
|
@@ -126,7 +126,7 @@ class PiggyBankStoreRequest extends FormRequest
|
||||
$currencyId = (int) ($data['transaction_currency_id'] ?? 0);
|
||||
$currency = TransactionCurrency::find($currencyId);
|
||||
if (null === $currency) {
|
||||
return Amount::getNativeCurrency();
|
||||
return Amount::getPrimaryCurrency();
|
||||
}
|
||||
|
||||
return $currency;
|
||||
|
@@ -131,7 +131,7 @@ class PiggyBankUpdateRequest extends FormRequest
|
||||
$currencyId = (int) ($data['transaction_currency_id'] ?? 0);
|
||||
$currency = TransactionCurrency::find($currencyId);
|
||||
if (null === $currency) {
|
||||
return Amount::getNativeCurrency();
|
||||
return Amount::getPrimaryCurrency();
|
||||
}
|
||||
|
||||
return $currency;
|
||||
|
Reference in New Issue
Block a user