Skip to content
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

Make input template strings translatable #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make input template strings translatable
  • Loading branch information
Benjamin Grössing authored Jun 14, 2017
commit 08afaf7dfca183b69ed8905e3099f075041dfe0f
10 changes: 5 additions & 5 deletions fruitlinkit/templates/_fieldtype/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
id: name~'Email',
class: name~'Email',
name: name~'[email]',
placeholder: 'Email Address',
placeholder: 'Email Address'|t,
value: type == 'email' ? value.value
}) }}
</div>
Expand All @@ -45,7 +45,7 @@
id: name~'Tel',
class: name~'Tel',
name: name~'[tel]',
placeholder: 'Telephone Number',
placeholder: 'Telephone Number'|t,
value: type == 'tel' ? value.value
}) }}
</div>
Expand All @@ -57,7 +57,7 @@
id: name~'Custom',
class: name~'Custom',
name: name~'[custom]',
placeholder: 'Custom URL',
placeholder: 'Custom URL'|t,
value: type == 'custom' ? value.value
}) }}
</div>
Expand Down Expand Up @@ -128,7 +128,7 @@
id: name~'CustomText',
class: name~'CustomText',
name: name~'[customText]',
placeholder: settings.defaultText == '' ? 'Custom Link Text' : settings.defaultText,
placeholder: settings.defaultText == '' ? 'Custom Link Text'|t : settings.defaultText,
value: value.customText is defined and value.customText ? value.customText
}) }}
</div>
Expand All @@ -143,7 +143,7 @@
class: name~'Target',
name: name~'[target]',
value: '_blank',
label: 'Open link in new window?',
label: 'Open link in new window?'|t,
checked: value.target is defined and value.target == '_blank' ? true : null
}) }}
</div>
Expand Down