-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Add localisation support #119
ENH Add localisation support #119
Conversation
ce6d032
to
f47ae60
Compare
f00a449
to
76f6880
Compare
lang/en.yml
Outdated
@@ -0,0 +1,34 @@ | |||
en: | |||
LinkField: | |||
UPDATELINK: 'Update link' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't a clear standard around translation keys. While uppercase without underscores is the most common, is also hard to read
Could you please put underscores in the keys e.g. UPDATE_LINK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
src/Models/ExternalLink.php
Outdated
@@ -15,6 +17,15 @@ class ExternalLink extends Link | |||
'ExternalUrl' => 'Varchar', | |||
]; | |||
|
|||
public function getCMSFields(): FieldList | |||
{ | |||
$this->beforeUpdateCMSFields(static function (FieldList $fields) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change static function
to just function
for all of the anonymous methods in the getCMSFields for all of the subclasses on Link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
76f6880
to
e129b28
Compare
Description
Added localisation support. All available messages, field names, etc. are updated and have the value set in the localisation file
Parent issue