Skip to content

Commit

Permalink
Translate the Vue compiler message
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jan 30, 2025
1 parent cca774e commit 0a33dc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion config/areas/system/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
if ($debugMode === true && $kirby->option('panel.vue.compiler', true) === true) {
$security[] = [
'id' => 'compiler',
'text' => 'The Vue compiler is enabled',
'text' => I18n::translate('system.issues.vue.compiler'),
'link' => 'https://getkirby.com/security/vue-compiler'
];
}
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@
"system.issues.https": "We recommend HTTPS for all your sites",
"system.issues.kirby": "The kirby folder seems to be exposed",
"system.issues.site": "The site folder seems to be exposed",
"system.issues.vue.compiler": "The Vue template compiler is enabled",
"system.issues.vulnerability.kirby": "Your installation might be affected by the following vulnerability ({ severity } severity): { description }",
"system.issues.vulnerability.plugin": "Your installation might be affected by the following vulnerability in the { plugin } plugin ({ severity } severity): { description }",
"system.updateStatus": "Update status",
Expand Down
20 changes: 2 additions & 18 deletions tests/Panel/Areas/SystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ public function testView(): void
'text' => 'This is a very important announcement!',
'kirby' => '*',
'php' => '*'
],
[
'id' => 'compiler',
'text' => 'The Vue compiler is enabled',
'link' => 'https://getkirby.com/security/vue-compiler'
]
], $props['security']);
$this->assertSame([
Expand Down Expand Up @@ -146,7 +141,7 @@ public function testViewDebug(): void
],
[
'id' => 'compiler',
'text' => 'The Vue compiler is enabled',
'text' => 'The Vue template compiler is enabled',
'link' => 'https://getkirby.com/security/vue-compiler'
]
], $props['security']);
Expand Down Expand Up @@ -175,11 +170,6 @@ public function testViewHttps(): void
'id' => 'https',
'text' => 'We recommend HTTPS for all your sites',
'link' => 'https://getkirby.com/security/https'
],
[
'id' => 'compiler',
'text' => 'The Vue compiler is enabled',
'link' => 'https://getkirby.com/security/vue-compiler'
]
], $props['security']);
}
Expand Down Expand Up @@ -432,13 +422,7 @@ public function testViewWithoutUpdateCheck(): void
],
], $props['environment']);

$this->assertSame([
[
'id' => 'compiler',
'text' => 'The Vue compiler is enabled',
'link' => 'https://getkirby.com/security/vue-compiler'
]
], $props['security']);
$this->assertSame([], $props['security']);

$this->assertSame([
[
Expand Down

0 comments on commit 0a33dc7

Please sign in to comment.