Skip to content

Commit

Permalink
Opinion, DeleteModal translation update, wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0z committed Nov 13, 2023
1 parent 0496856 commit a56478d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"advert2": "Ta aplikacja pomoże Ci z planowaniem Twoich wakacji, lub podróży biznesowych.",
"Edit": "Edytuj",
"Delete": "Usuń",
"Cancel": "Anuluj",
"Add": "Dodaj",
"Create city": "Utwórz miasto",
"Create country": "Utwórz kraj",
Expand Down Expand Up @@ -126,7 +127,6 @@
"Cities with no country assigned": "Miasta bez przypisanego kraju",
"Cities with no coordinates assigned": "Miasta bez przypisanych współrzędnych",
"Delete all cities with no country assigned": "Usuń wszystkie miasta bez przypisanego kraju",

"Opinion added successfully.": "Opinia dodana pomyślnie.",
"There was an error adding your opinion.": "Wystąpił błąd podczas dodawania opinii.",
"Opinion edited successfully.": "Opinia zaktualizowana pomyślnie.",
Expand All @@ -136,6 +136,9 @@
"Edit opinion": "Edytuj opinię",
"Send": "Wyślij",
"Users' opinions": "Opinie użytkowników",
"Delete that opinion?": "Usunąć tę opinię?",
"Delete city?": "Usunąć miasto?",
"That opinion will be permanently deleted.": "Ta opinia zostanie trwale usunięta.",

"You have logged in successfully.": "Zalogowano pomyślnie.",
"You have logged out successfully.": "Wylogowano pomyślnie.",
Expand Down
1 change: 1 addition & 0 deletions lang/pl/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,6 @@
"password" => "hasło",
"latitude" => "szerokość geograficzna",
"longitude" => "długość geograficzna",
"content" => "treść",
],
];
8 changes: 6 additions & 2 deletions resources/js/Shared/Components/DeleteModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const open = ref(true)
const props = defineProps({
name: {
type: String,
required: true,
required: false,
},
type: {
type: String,
Expand All @@ -37,7 +37,11 @@ const renderText = () => {
let translationKey = ''
translationKey = ':type :name will be permanently deleted.'
return __(translationKey, { type: __(props.type), name: props.name })
if (props.type == 'That opinion') {
translationKey = ':type will be permanently deleted.'
}
return __(translationKey, { type: __(props.type), name: __(props.name) })
}
const dialogRef = ref(null)
Expand Down

0 comments on commit a56478d

Please sign in to comment.