Skip to content

Commit

Permalink
fix: spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Dec 3, 2024
1 parent 8c127df commit 6098309
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 36 deletions.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"css/broken-link-detector.css": "css/broken-link-detector.024cd1a77a7b5c050e6a.css",
"css/broken-link-detector.css": "css/broken-link-detector.40888f073f7fe120bcae.css",
"js/context-detector.js": "js/context-detector.09d51a4f92bccb526918.js",
"js/editor-highlight.js": "js/editor-highlight.a7ccb59aeba3991ac935.js"
}
Binary file modified languages/broken-link-detector-sv_SE.mo
Binary file not shown.
44 changes: 22 additions & 22 deletions languages/broken-link-detector-sv_SE.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Broken Link Detector\n"
"POT-Creation-Date: 2024-12-03 11:30+0100\n"
"PO-Revision-Date: 2024-12-03 11:33+0100\n"
"POT-Creation-Date: 2024-12-03 12:37+0100\n"
"PO-Revision-Date: 2024-12-03 12:38+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: sv_SE\n"
Expand All @@ -23,15 +23,15 @@ msgstr ""
"X-Poedit-SearchPathExcluded-2: vendor\n"
"X-Poedit-SearchPathExcluded-3: node_modules\n"

#: source/fields/php/context-detection.php:6
#: source/fields/php/context-detection.php:8
msgid "Context Detect"
msgstr "Identifiering av användarkontext"

#: source/fields/php/context-detection.php:10
#: source/fields/php/context-detection.php:12
msgid "Enable detection of user context"
msgstr "Identifiera användarens kontext i nätverket"

#: source/fields/php/context-detection.php:14
#: source/fields/php/context-detection.php:16
msgid ""
"The user detection functionality will disable links that are internal only. "
"It also adds a tipbox to them explaining why the link is unreachable."
Expand All @@ -41,25 +41,25 @@ msgstr ""
"tillgängliga om denna resurs är otillgänglig, kommer markeras som icke "
"klickbara."

#: source/fields/php/context-detection.php:22
#: source/fields/php/context-detection.php:24
msgid "Detects user context by fetching a internal resource."
msgstr ""
"Identifierar användarens kontext i nätverket genom att försöka hämta en "
"intern resurs."

#: source/fields/php/context-detection.php:24
#: source/fields/php/context-detection.php:26
msgid "Enabled"
msgstr "Aktiverad"

#: source/fields/php/context-detection.php:25
#: source/fields/php/context-detection.php:27
msgid "Disabled"
msgstr "Avaktiverad"

#: source/fields/php/context-detection.php:30
#: source/fields/php/context-detection.php:32
msgid "Internal Context Detection Resource"
msgstr "Resurs som ska hämtas"

#: source/fields/php/context-detection.php:34
#: source/fields/php/context-detection.php:36
msgid ""
"The internal context checker require you to publish a image on a server "
"without public access. The image should be as small as possible, if your "
Expand All @@ -70,39 +70,39 @@ msgstr ""
"vara tillgänglig via http eller https (om din webbplats använder ssl-"
"certifikat)."

#: source/fields/php/context-detection.php:51
#: source/fields/php/context-detection.php:53
msgid "https://internal.resource.admin-network.local/image-1x1.jpg"
msgstr ""

#: source/fields/php/context-detection.php:55
#: source/fields/php/context-detection.php:57
msgid "Inform user by the following methods"
msgstr "Informera användaren genom"

#: source/fields/php/context-detection.php:76
#: source/fields/php/context-detection.php:78
msgid "Tooltip"
msgstr "Text på tooltip"

#: source/fields/php/context-detection.php:77
#: source/fields/php/context-detection.php:79
msgid "Modal"
msgstr "Modalfönster"

#: source/fields/php/context-detection.php:90
#: source/fields/php/context-detection.php:92
msgid "Tooltip Text"
msgstr "Text på tooltip"

#: source/fields/php/context-detection.php:94
msgid "The text that displays in the tooltip, whenever a link is unavabile."
#: source/fields/php/context-detection.php:96
msgid "The text that displays in the tooltip, whenever a link is unavailable."
msgstr "Den text som ska visas när en länk inte är tillgänglig."

#: source/fields/php/context-detection.php:112 source/php/Config/Config.php:360
msgid "Link unavabile"
#: source/fields/php/context-detection.php:114 source/php/Config/Config.php:360
msgid "Link unavailable"
msgstr "Otillgänglig"

#: source/fields/php/context-detection.php:118
#: source/fields/php/context-detection.php:120
msgid "Modal Title"
msgstr "Titel i modalfönster"

#: source/fields/php/context-detection.php:146
#: source/fields/php/context-detection.php:148
msgid "Modal Content"
msgstr "Innehåll i modalfönster"

Expand Down Expand Up @@ -198,7 +198,7 @@ msgid "Filter"
msgstr "Filter"

#: source/php/Config/Config.php:396
msgid "Content unavabile"
msgid "Content unavailable"
msgstr "Länk otillgänglig"

#: source/php/Config/Config.php:414
Expand Down
6 changes: 3 additions & 3 deletions source/fields/json/context-detection.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"name": "broken_links_context_tooltip",
"aria-label": "",
"type": "text",
"instructions": "The text that displays in the tooltip, whenever a link is unavabile.",
"instructions": "The text that displays in the tooltip, whenever a link is unavailable.",
"required": 0,
"conditional_logic": [
[
Expand All @@ -105,7 +105,7 @@
},
"default_value": "",
"maxlength": "",
"placeholder": "Link unavabile",
"placeholder": "Link unavailable",
"prepend": "",
"append": ""
},
Expand Down Expand Up @@ -193,4 +193,4 @@
"acfe_meta": "",
"acfe_note": ""
}]


15 changes: 9 additions & 6 deletions source/fields/php/context-detection.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

if (function_exists('acf_add_local_field_group')) {
acf_add_local_field_group(array(


if (function_exists('acf_add_local_field_group')) {

acf_add_local_field_group(array(
'key' => 'group_6718e9e8554ca',
'title' => __('Context Detect', 'api-event-manager'),
'fields' => array(
Expand Down Expand Up @@ -91,7 +93,7 @@
'name' => 'broken_links_context_tooltip',
'aria-label' => '',
'type' => 'text',
'instructions' => __('The text that displays in the tooltip, whenever a link is unavabile.', 'api-event-manager'),
'instructions' => __('The text that displays in the tooltip, whenever a link is unavailable.', 'api-event-manager'),
'required' => 0,
'conditional_logic' => array(
0 => array(
Expand All @@ -109,7 +111,7 @@
),
'default_value' => '',
'maxlength' => '',
'placeholder' => __('Link unavabile', 'api-event-manager'),
'placeholder' => __('Link unavailable', 'api-event-manager'),
'prepend' => '',
'append' => '',
),
Expand Down Expand Up @@ -197,4 +199,5 @@
'acfe_meta' => '',
'acfe_note' => '',
));
}

}
6 changes: 3 additions & 3 deletions source/php/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function getContextCheckSuccessClass() : string {
public function getContextCheckFailedClass() : string {
return $this->wpService->applyFilters(
$this->createFilterKey(__FUNCTION__),
'context-check-unavabile'
'context-check-unavailable'
);
}

Expand Down Expand Up @@ -357,7 +357,7 @@ public function getContextCheckTooltipText(): string
return $this->wpService->applyFilters(
$this->createFilterKey(__FUNCTION__),
$dbLabel ?: $this->wpService->__(
'Link unavabile',
'Link unavailable',
'broken-link-detector'
)
);
Expand Down Expand Up @@ -393,7 +393,7 @@ public function getContextCheckModalTitle(): string
$title = $this->acfService->getField(
'broken_links_context_modal_title',
'option'
) ?: $this->wpService->__('Content unavabile', 'broken-link-detector');
) ?: $this->wpService->__('Content unavailable', 'broken-link-detector');

return $this->wpService->applyFilters(
$this->createFilterKey(__FUNCTION__),
Expand Down
2 changes: 1 addition & 1 deletion source/sass/broken-link-detector.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.broken-link-detector-link-is-unavabile {
.broken-link-detector-link-is-unavailable {
cursor: not-allowed !important;
}

0 comments on commit 6098309

Please sign in to comment.