mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 22:45:44 +00:00
String resources
This commit is contained in:
parent
8987e446a8
commit
7b0ce8c54c
2 changed files with 64 additions and 27 deletions
|
|
@ -93,6 +93,15 @@ class AppLocalizations {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get originTitle {
|
||||||
|
return Intl.message(
|
||||||
|
'Origin',
|
||||||
|
name: 'originTitle',
|
||||||
|
desc: 'Title for the Origin page',
|
||||||
|
locale: localeName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
String get backgroundTitle {
|
String get backgroundTitle {
|
||||||
return Intl.message(
|
return Intl.message(
|
||||||
'Background',
|
'Background',
|
||||||
|
|
@ -192,6 +201,39 @@ class AppLocalizations {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get originRegionsOfOrigin {
|
||||||
|
return Intl.message(
|
||||||
|
'Regions of Origin',
|
||||||
|
name: 'originRegionsOfOrigin',
|
||||||
|
desc: '',
|
||||||
|
locale: localeName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
String get originMainLanguages {
|
||||||
|
return Intl.message(
|
||||||
|
'Main Languages',
|
||||||
|
name: 'originMainLanguages',
|
||||||
|
desc: '',
|
||||||
|
locale: localeName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
String get originAspirations {
|
||||||
|
return Intl.message(
|
||||||
|
'Aspirations',
|
||||||
|
name: 'originAspirations',
|
||||||
|
desc: '',
|
||||||
|
locale: localeName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
String get originAvailableSkills {
|
||||||
|
return Intl.message(
|
||||||
|
'Available Skills',
|
||||||
|
name: 'originAvailableSkills',
|
||||||
|
desc: '',
|
||||||
|
locale: localeName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
String get monstersTypes {
|
String get monstersTypes {
|
||||||
return Intl.message(
|
return Intl.message(
|
||||||
'Types',
|
'Types',
|
||||||
|
|
|
||||||
|
|
@ -156,38 +156,20 @@ class PCEditorPage extends StatelessWidget {
|
||||||
? Column(
|
? Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
_buildSubTitle(context, state,
|
_buildSubTitle(context, state, AppLocalizations.of(context).originRegionsOfOrigin),
|
||||||
"RegionsOfOrigin"),
|
|
||||||
//AppLocalizations.of(context).raceAbilityScoreIncrease),
|
|
||||||
_buildMarkdown(context, state, state.origin?.regionsOfOrigin),
|
_buildMarkdown(context, state, state.origin?.regionsOfOrigin),
|
||||||
Text(""),
|
Text(""),
|
||||||
_buildSubTitle(
|
_buildSubTitle(
|
||||||
context, state, "MainLanguages"), //AppLocalizations.of(context).raceAge),
|
context, state, AppLocalizations.of(context).originMainLanguages),
|
||||||
_buildMarkdown(context, state, state.origin?.mainLanguages),
|
_buildMarkdown(context, state, state.origin?.mainLanguages),
|
||||||
Text(""),
|
Text(""),
|
||||||
_buildSubTitle(
|
_buildSubTitle(
|
||||||
context, state, "Aspirations"), //AppLocalizations.of(context).raceAlignment),
|
context, state, AppLocalizations.of(context).originAspirations),
|
||||||
_buildMarkdown(context, state, state.origin?.aspirations),
|
_buildMarkdown(context, state, state.origin?.aspirations),
|
||||||
Text(""),
|
Text(""),
|
||||||
_buildSubTitle(
|
_buildSubTitle(
|
||||||
context, state, "AvailableSkills"), //AppLocalizations.of(context).raceSize),
|
context, state, AppLocalizations.of(context).originAvailableSkills),
|
||||||
_buildMarkdown(context, state, state.origin?.availableSkills),
|
_buildMarkdown(context, state, state.origin?.availableSkills),
|
||||||
//Text(""),
|
|
||||||
//_buildSubTitle(
|
|
||||||
// context, state, AppLocalizations.of(context).raceSpeed),
|
|
||||||
//_buildMarkdown(context, state, state.race?.speed),
|
|
||||||
//state.race?.darkvision != null ? Text("") : SizedBox.shrink(),
|
|
||||||
//state.race?.darkvision != null
|
|
||||||
// ? _buildSubTitle(context, state,
|
|
||||||
// AppLocalizations.of(context).raceDarkvision)
|
|
||||||
// : SizedBox.shrink(),
|
|
||||||
//state.race?.darkvision != null
|
|
||||||
// ? _buildMarkdown(context, state, state.race?.darkvision)
|
|
||||||
// : SizedBox.shrink(),
|
|
||||||
//Text(""),
|
|
||||||
//_buildSubTitle(
|
|
||||||
// context, state, AppLocalizations.of(context).raceLanguages),
|
|
||||||
//_buildMarkdown(context, state, state.race?.languages),
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: SizedBox.shrink();
|
: SizedBox.shrink();
|
||||||
|
|
@ -261,9 +243,15 @@ class PCEditorPage extends StatelessWidget {
|
||||||
// Colors.red,
|
// Colors.red,
|
||||||
indicatorSize: TabBarIndicatorSize.label,
|
indicatorSize: TabBarIndicatorSize.label,
|
||||||
tabs: <Widget>[
|
tabs: <Widget>[
|
||||||
|
// Text(
|
||||||
|
// AppLocalizations.of(context).raceTitle,
|
||||||
|
// style: TextStyle(
|
||||||
|
// fontSize: 25,
|
||||||
|
// fontFamily: "Cinzel",
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
Text(
|
Text(
|
||||||
"Origine",
|
AppLocalizations.of(context).originTitle,
|
||||||
//AppLocalizations.of(context).raceTitle,
|
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 25,
|
fontSize: 25,
|
||||||
fontFamily: "Cinzel",
|
fontFamily: "Cinzel",
|
||||||
|
|
@ -302,13 +290,20 @@ class PCEditorPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
body: TabBarView(
|
body: TabBarView(
|
||||||
children: [
|
children: [
|
||||||
|
// Container(
|
||||||
|
// margin: EdgeInsets.all(10.0),
|
||||||
|
// child: ListView(
|
||||||
|
// children: <Widget>[
|
||||||
|
// _buildRacesWidget(context, state),
|
||||||
|
// _buildSubRacesWidget(context, state),
|
||||||
|
// _buildRaceDetailsWidget(context, state),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.all(10.0),
|
margin: EdgeInsets.all(10.0),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
//_buildRacesWidget(context, state),
|
|
||||||
//_buildSubRacesWidget(context, state),
|
|
||||||
//_buildRaceDetailsWidget(context, state),
|
|
||||||
_buildOriginsWidget(context, state),
|
_buildOriginsWidget(context, state),
|
||||||
_buildOriginDetailsWidget(context, state),
|
_buildOriginDetailsWidget(context, state),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue