mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
PurchaseScreen: Make all strings translatable
This commit is contained in:
@ -252,8 +252,14 @@ feature_timeline:
|
|||||||
|
|
||||||
purchase_screen:
|
purchase_screen:
|
||||||
title: Pro Version
|
title: Pro Version
|
||||||
desc: 'GitJournal is completely free software/open source and is the result of significant development work. It has no venture capital or corporation backing and it never will. Your support directly sustains development and make GitJournal possible.
|
desc: 'GitJournal is completely free software/open source and is the result of significant development work. It has no venture capital or corporation backing and it never will. Your support directly sustains development.
|
||||||
|
|
||||||
|
|
||||||
GitJournal operates on a "pay what you want model (with a minimum)".'
|
GitJournal operates on a "pay what you want model (with a minimum)".'
|
||||||
restore: Restore Purchase
|
restore: Restore Purchase
|
||||||
|
oneTime:
|
||||||
|
title: One Time Purchase
|
||||||
|
desc: Permanently enables all Pro features currently in GitJournal and new features added in the following 12 months.
|
||||||
|
monthly:
|
||||||
|
title: Monthly Subscription
|
||||||
|
desc: Enables all Pro Features. After 12 months or after paying {minYearlyPurchase}, you will get all the benefits of the 'One Time Purchase'
|
||||||
|
@ -110,8 +110,7 @@ class MonthlyRentalWidget extends StatelessWidget {
|
|||||||
return PurchaseCard(
|
return PurchaseCard(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
// TODO: Translate this
|
Text(tr('purchase_screen.monthly.title'), style: textTheme.headline5),
|
||||||
Text("Monthly Subscription", style: textTheme.headline5),
|
|
||||||
const SizedBox(height: 32.0),
|
const SizedBox(height: 32.0),
|
||||||
PurchaseWidget(
|
PurchaseWidget(
|
||||||
skus: _generateSkus(),
|
skus: _generateSkus(),
|
||||||
@ -120,8 +119,10 @@ class MonthlyRentalWidget extends StatelessWidget {
|
|||||||
isSubscription: true,
|
isSubscription: true,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 32.0),
|
const SizedBox(height: 32.0),
|
||||||
Text(
|
Text(tr(
|
||||||
"Enables all Pro Features. After 12 months or after paying $minYearlyPurchase, you will get all the benefits of the 'One Time Purchase'"),
|
"purchase_screen.monthly.desc",
|
||||||
|
namedArgs: {'minYearlyPurchase': minYearlyPurchase},
|
||||||
|
)),
|
||||||
],
|
],
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
),
|
),
|
||||||
@ -152,18 +153,16 @@ class YearlyPurchaseWidget extends StatelessWidget {
|
|||||||
return PurchaseCard(
|
return PurchaseCard(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text("One Time Purchase", style: textTheme.headline5),
|
Text(tr('purchase_screen.oneTime.title'), style: textTheme.headline5),
|
||||||
const SizedBox(height: 32.0),
|
const SizedBox(height: 32.0),
|
||||||
PurchaseWidget(
|
PurchaseWidget(
|
||||||
skus: _generateSkus(),
|
skus: _generateSkus(),
|
||||||
defaultSku: "sku_yearly_1",
|
defaultSku: "sku_yearly_1",
|
||||||
timePeriod: "Year",
|
|
||||||
isSubscription: false,
|
isSubscription: false,
|
||||||
minPurchaseOptionCallback: minPurchaseOptionCallback,
|
minPurchaseOptionCallback: minPurchaseOptionCallback,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 32.0),
|
const SizedBox(height: 32.0),
|
||||||
const Text(
|
Text(tr('purchase_screen.oneTime.desc')),
|
||||||
"Permanently enable all Pro features currently in GitJournal and new features added in the following 12 months."),
|
|
||||||
],
|
],
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
),
|
),
|
||||||
|
@ -60,7 +60,7 @@ class PurchaseWidget extends StatefulWidget {
|
|||||||
PurchaseWidget({
|
PurchaseWidget({
|
||||||
@required this.skus,
|
@required this.skus,
|
||||||
@required this.defaultSku,
|
@required this.defaultSku,
|
||||||
@required this.timePeriod,
|
this.timePeriod = "",
|
||||||
@required this.isSubscription,
|
@required this.isSubscription,
|
||||||
this.minPurchaseOptionCallback,
|
this.minPurchaseOptionCallback,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user