Skip to content

Commit

Permalink
fix(firewall): translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Axolotle committed Jan 20, 2025
1 parent 01bd3ff commit 81f9bac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@
"confirm_app_install": "Are you sure you want to install this application?",
"confirm_change_maindomain": "Are you sure you want to change the main domain?",
"confirm_delete": "Are you sure you want to delete {name}?",
"confirm_firewall_allow": "Are you sure you want to open port {port}? (protocol: {protocol}, connection: {connection})",
"confirm_firewall_disallow": "Are you sure you want to close port {port}? (protocol: {protocol}, connection: {connection})",
"confirm_firewall_open": "Are you sure you want to open port {port} for protocol {protocol}?",
"confirm_firewall_close": "Are you sure you want to close port {port} for protocol {protocol}?",
"confirm_group_add_access_permission": "Are you sure you want to grant {perm} access to {name}? Such access significantly increases the attack surface if {name} happens to be a malicious person. You should only do so if you TRUST this person/group.",
"confirm_install_app_broken": "WARNING! This application is broken according to YunoHost's automatic tests and it is likely to break your system! You should probably NOT install it unless you know what you are doing. Are you willing to take that risk?",
"confirm_install_app_inprogress": "WARNING! This application is still experimental (if not explicitly not working) and it is likely to break your system! You should probably NOT install it unless you know what you are doing. Are you willing to take that risk?",
Expand Down Expand Up @@ -636,6 +636,7 @@
"words": {
"browse": "Browse",
"collapse": "Collapse",
"comment": "Comment",
"default": "Default",
"edit": "Edit",
"link": "Link",
Expand Down
7 changes: 3 additions & 4 deletions app/src/views/tool/ToolFirewall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const tableFields = [
{ key: 'port', label: t('port') },
{ key: 'open', label: t('open') },
{ key: 'upnp', label: t('upnp') },
{ key: 'comment', label: t('comment') },
{ key: 'comment', label: t('words.comment') },
]
type Form = {
Expand Down Expand Up @@ -99,8 +99,7 @@ const fields = {
comment: {
component: 'InputItem',
// label: t('comment'),
label: 'Comment FIXME translate',
label: t('words.comment'),
rules: { string: required },
cProps: { id: 'comment', placeholder: '', type: 'text' },
} satisfies FieldProps<'InputItem', Form['upnp']>,
Expand Down Expand Up @@ -300,7 +299,7 @@ function getFieldClass(field: TableField) {

<style lang="scss" scoped>
:deep() {
.form-switch {
.table .form-switch {
.form-check-input {
&:checked {
border-color: $success;
Expand Down

0 comments on commit 81f9bac

Please sign in to comment.