Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
reason
2022-01-03 13:51:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab8481691d8308ac2227c3e80b4a25a274d6a7d9
ab848169
1 parent
b760ee55
i18n页面修改
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
229 additions
and
2 deletions
lib/account/page/account_edit_page.dart
lib/generated/intl/messages_en.dart
lib/generated/intl/messages_zh.dart
lib/generated/l10n.dart
lib/l10n/intl_en.arb
lib/l10n/intl_zh.arb
lib/setting/page/locale_page.dart
lib/account/page/account_edit_page.dart
View file @
ab84816
This diff is collapsed. Click to expand it.
lib/generated/intl/messages_en.dart
View file @
ab84816
...
...
@@ -22,6 +22,28 @@ class MessageLookup extends MessageLookupByLibrary {
final
messages
=
_notInlinedMessages
(
_notInlinedMessages
);
static
Map
<
String
,
Function
>
_notInlinedMessages
(
_
)
=>
<
String
,
Function
>{
"accountEditPageUserBirthday"
:
MessageLookupByLibrary
.
simpleMessage
(
"Birthday"
),
"accountEditPageUserBirthdayPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"Please input birthday"
),
"accountEditPageUserEmail"
:
MessageLookupByLibrary
.
simpleMessage
(
"Email"
),
"accountEditPageUserEmailPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"Please input Email"
),
"accountEditPageUserGender"
:
MessageLookupByLibrary
.
simpleMessage
(
"Gender"
),
"accountEditPageUserGenderPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"Please choose gender"
),
"accountEditPageUserInfo"
:
MessageLookupByLibrary
.
simpleMessage
(
"User Info"
),
"accountEditPageUserName"
:
MessageLookupByLibrary
.
simpleMessage
(
"User Name"
),
"accountEditPageUserNamePlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"Please input User Name"
),
"accountEditPageUserPhone"
:
MessageLookupByLibrary
.
simpleMessage
(
"Phone"
),
"accountEditPageUserPhonePlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"Please input Phone"
),
"categoryBottomNavigationBarItemTitle"
:
MessageLookupByLibrary
.
simpleMessage
(
"category"
),
"confirm"
:
MessageLookupByLibrary
.
simpleMessage
(
"Confirm"
),
...
...
lib/generated/intl/messages_zh.dart
View file @
ab84816
...
...
@@ -22,6 +22,23 @@ class MessageLookup extends MessageLookupByLibrary {
final
messages
=
_notInlinedMessages
(
_notInlinedMessages
);
static
Map
<
String
,
Function
>
_notInlinedMessages
(
_
)
=>
<
String
,
Function
>{
"accountEditPageUserBirthday"
:
MessageLookupByLibrary
.
simpleMessage
(
"出生日期"
),
"accountEditPageUserBirthdayPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"请输入出生日期"
),
"accountEditPageUserEmail"
:
MessageLookupByLibrary
.
simpleMessage
(
"邮箱"
),
"accountEditPageUserEmailPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"请输入您的邮箱"
),
"accountEditPageUserGender"
:
MessageLookupByLibrary
.
simpleMessage
(
"性别"
),
"accountEditPageUserGenderPlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"请选择性别"
),
"accountEditPageUserInfo"
:
MessageLookupByLibrary
.
simpleMessage
(
"个人信息"
),
"accountEditPageUserName"
:
MessageLookupByLibrary
.
simpleMessage
(
"姓名"
),
"accountEditPageUserNamePlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"请输入您的名称"
),
"accountEditPageUserPhone"
:
MessageLookupByLibrary
.
simpleMessage
(
"手机号"
),
"accountEditPageUserPhonePlaceholder"
:
MessageLookupByLibrary
.
simpleMessage
(
"请输入您的手机号"
),
"categoryBottomNavigationBarItemTitle"
:
MessageLookupByLibrary
.
simpleMessage
(
"众妙"
),
"confirm"
:
MessageLookupByLibrary
.
simpleMessage
(
"确认"
),
...
...
lib/generated/l10n.dart
View file @
ab84816
...
...
@@ -269,6 +269,116 @@ class S {
args:
[],
);
}
/// `User Info`
String
get
accountEditPageUserInfo
{
return
Intl
.
message
(
'User Info'
,
name:
'accountEditPageUserInfo'
,
desc:
''
,
args:
[],
);
}
/// `User Name`
String
get
accountEditPageUserName
{
return
Intl
.
message
(
'User Name'
,
name:
'accountEditPageUserName'
,
desc:
'User Name'
,
args:
[],
);
}
/// `Please input User Name`
String
get
accountEditPageUserNamePlaceholder
{
return
Intl
.
message
(
'Please input User Name'
,
name:
'accountEditPageUserNamePlaceholder'
,
desc:
'User Name'
,
args:
[],
);
}
/// `Email`
String
get
accountEditPageUserEmail
{
return
Intl
.
message
(
'Email'
,
name:
'accountEditPageUserEmail'
,
desc:
'User Name'
,
args:
[],
);
}
/// `Please input Email`
String
get
accountEditPageUserEmailPlaceholder
{
return
Intl
.
message
(
'Please input Email'
,
name:
'accountEditPageUserEmailPlaceholder'
,
desc:
'Email'
,
args:
[],
);
}
/// `Phone`
String
get
accountEditPageUserPhone
{
return
Intl
.
message
(
'Phone'
,
name:
'accountEditPageUserPhone'
,
desc:
'Phone'
,
args:
[],
);
}
/// `Please input Phone`
String
get
accountEditPageUserPhonePlaceholder
{
return
Intl
.
message
(
'Please input Phone'
,
name:
'accountEditPageUserPhonePlaceholder'
,
desc:
'Phone'
,
args:
[],
);
}
/// `Gender`
String
get
accountEditPageUserGender
{
return
Intl
.
message
(
'Gender'
,
name:
'accountEditPageUserGender'
,
desc:
'Gender'
,
args:
[],
);
}
/// `Please choose gender`
String
get
accountEditPageUserGenderPlaceholder
{
return
Intl
.
message
(
'Please choose gender'
,
name:
'accountEditPageUserGenderPlaceholder'
,
desc:
'Gender'
,
args:
[],
);
}
/// `Birthday`
String
get
accountEditPageUserBirthday
{
return
Intl
.
message
(
'Birthday'
,
name:
'accountEditPageUserBirthday'
,
desc:
'Birthday'
,
args:
[],
);
}
/// `Please input birthday`
String
get
accountEditPageUserBirthdayPlaceholder
{
return
Intl
.
message
(
'Please input birthday'
,
name:
'accountEditPageUserBirthdayPlaceholder'
,
desc:
'Birthday'
,
args:
[],
);
}
}
class
AppLocalizationDelegate
extends
LocalizationsDelegate
<
S
>
{
...
...
lib/l10n/intl_en.arb
View file @
ab84816
...
...
@@ -130,5 +130,72 @@
"description"
:
"One Poem"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserInfo"
:
"User Info"
,
"@accountEditPageTitle"
:
{
"description"
:
"User Info"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserName"
:
"User Name"
,
"@accountEditPageUserName"
:
{
"description"
:
"User Name"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserNamePlaceholder"
:
"Please input User Name"
,
"@accountEditPageUserNamePlaceholder"
:
{
"description"
:
"User Name"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserEmail"
:
"Email"
,
"@accountEditPageUserEmail"
:
{
"description"
:
"User Name"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserEmailPlaceholder"
:
"Please input Email"
,
"@accountEditPageUserEmailPlaceholder"
:
{
"description"
:
"Email"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserPhone"
:
"Phone"
,
"@accountEditPageUserPhone"
:
{
"description"
:
"Phone"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserPhonePlaceholder"
:
"Please input Phone"
,
"@accountEditPageUserPhonePlaceholder"
:
{
"description"
:
"Phone"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserGender"
:
"Gender"
,
"@accountEditPageUserGender"
:
{
"description"
:
"Gender"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserGenderPlaceholder"
:
"Please choose gender"
,
"@accountEditPageUserGenderPlaceholder"
:
{
"description"
:
"Gender"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserBirthday"
:
"Birthday"
,
"@accountEditPageUserBirthday"
:
{
"description"
:
"Birthday"
,
"type"
:
"text"
,
"placeholders"
:
{}
},
"accountEditPageUserBirthdayPlaceholder"
:
"Please input birthday"
,
"@accountEditPageUserBirthdayPlaceholder"
:
{
"description"
:
"Birthday"
,
"type"
:
"text"
,
"placeholders"
:
{}
}
}
\ No newline at end of file
...
...
lib/l10n/intl_zh.arb
View file @
ab84816
...
...
@@ -20,5 +20,17 @@
"onePoemBottomNavigationBarItemTitle"
:
"一言"
,
"timelineBottomNavigationBarItemTitle"
:
"临境"
,
"categoryBottomNavigationBarItemTitle"
:
"众妙"
,
"profileBottomNavigationBarItemTitle"
:
"我在"
"profileBottomNavigationBarItemTitle"
:
"我在"
,
"accountEditPageUserInfo"
:
"个人信息"
,
"accountEditPageUserName"
:
"姓名"
,
"accountEditPageUserNamePlaceholder"
:
"请输入您的名称"
,
"accountEditPageUserEmail"
:
"邮箱"
,
"accountEditPageUserEmailPlaceholder"
:
"请输入您的邮箱"
,
"accountEditPageUserPhone"
:
"手机号"
,
"accountEditPageUserPhonePlaceholder"
:
"请输入您的手机号"
,
"accountEditPageUserGender"
:
"性别"
,
"accountEditPageUserGenderPlaceholder"
:
"请选择性别"
,
"accountEditPageUserBirthday"
:
"出生日期"
,
"accountEditPageUserBirthdayPlaceholder"
:
"请输入出生日期"
}
\ No newline at end of file
...
...
lib/setting/page/locale_page.dart
View file @
ab84816
...
...
@@ -52,7 +52,6 @@ class _LocalePageState extends State<LocalePage> {
final
String
locale
=
index
==
0
?
''
:
(
index
==
1
?
'zh'
:
'en'
);
context
.
read
<
LocaleProvider
>().
setLocale
(
locale
);
Toast
.
show
(
'当前功能仅登录模块有效'
);
setState
(()
{});
},
child:
Container
(
...
...
Please
register
or
login
to post a comment