Änderung: Verbesserung des NewDirectorDialog.vue und der Übersetzungen

Änderungen:
- Anpassung des Dialogtitels in NewDirectorDialog.vue zur Verwendung der korrekten Übersetzung.
- Hinzufügung einer Anzeige für den Fall, dass keine Vorschläge für Direktor-Kandidaten verfügbar sind.
- Erweiterung der deutschen und englischen Übersetzungen um den neuen Schlüssel "noProposals" für die Anzeige entsprechender Nachrichten.

Diese Anpassungen verbessern die Benutzererfahrung durch klare Rückmeldungen im Dialog und korrekte Übersetzungen.
This commit is contained in:
Torsten Schulz (local)
2025-09-15 10:50:45 +02:00
parent 7ad79bdbc9
commit f2db16cd0f
11 changed files with 586 additions and 9 deletions

View File

@@ -1,9 +1,12 @@
<template> <template>
<DialogWidget ref="dialog" :title="$t('factset.newdirector.title')" :show-close="true" :buttons="buttons" <DialogWidget ref="dialog" :title="$t('falukant.newdirector.title')" :show-close="true" :buttons="buttons"
@close="closeDialog" name="FalukantNewDirector" :modal="true" :isTitleTranslated="true"> @close="closeDialog" name="FalukantNewDirector" :modal="true" :isTitleTranslated="true">
<div class="director-dialog"> <div class="director-dialog">
<div class="proposal-list"> <div class="proposal-list">
<ul> <div v-if="proposals.length === 0" class="no-proposals">
{{ $t('falukant.newdirector.noProposals') }}
</div>
<ul v-else>
<li v-for="proposal in proposals" :key="proposal.id" @click="selectProposal(proposal)" <li v-for="proposal in proposals" :key="proposal.id" @click="selectProposal(proposal)"
:class="{ selected: selectedProposal && selectedProposal.id === proposal.id }"> :class="{ selected: selectedProposal && selectedProposal.id === proposal.id }">
{{ $t('falukant.titles.' + proposal.character.gender + '.' + proposal.character.title) }} {{ proposal.character.name }} ({{ proposal.character.age }} Jahre) {{ $t('falukant.titles.' + proposal.character.gender + '.' + proposal.character.title) }} {{ proposal.character.name }} ({{ proposal.character.age }} Jahre)
@@ -144,6 +147,13 @@ export default {
background-color: #fdf1db; background-color: #fdf1db;
} }
.no-proposals {
padding: 20px;
text-align: center;
color: #666;
font-style: italic;
}
.proposal-details { .proposal-details {
width: 60%; width: 60%;
} }

View File

@@ -342,7 +342,8 @@
"skills": "Wissen", "skills": "Wissen",
"product": "Produkt", "product": "Produkt",
"knowledge": "Produktwissen", "knowledge": "Produktwissen",
"hire": "Einstellen" "hire": "Einstellen",
"noProposals": "Keine Direktor-Kandidaten verfügbar."
}, },
"skillKnowledges": { "skillKnowledges": {
"excelent": "Exzellent", "excelent": "Exzellent",

View File

@@ -1,3 +1,9 @@
{ {
"activate": {
"title": "Activate Access",
"message": "Hello {username}. Please enter the code we sent you via email.",
"token": "Token:",
"submit": "Submit",
"failure": "Activation was not successful."
}
} }

View File

@@ -1,5 +1,28 @@
{ {
"admin": { "admin": {
"interests": {
"title": "[Admin] - Manage Interests",
"newinterests": {
"name": "Interest Name",
"status": "Approved",
"adultonly": "Adults Only",
"translations": "Translations",
"isactive": "Active",
"isadult": "Adults Only",
"delete": "Delete"
}
},
"contacts": {
"title": "[Admin] - Contact Requests",
"date": "Date",
"from": "From",
"actions": "Actions",
"open": "Edit",
"finished": "Complete"
},
"editcontactrequest": {
"title": "[Admin] - Edit Contact Request"
},
"user": { "user": {
"name": "Username", "name": "Username",
"active": "Active", "active": "Active",
@@ -12,6 +35,26 @@
"select": "Please select", "select": "Please select",
"current": "Current rights" "current": "Current rights"
}, },
"forum": {
"title": "[Admin] - Forum",
"currentForums": "Existing Forums",
"edit": "Edit",
"delete": "Delete",
"createForum": "Create",
"forumName": "Title",
"create": "Create",
"permissions": {
"label": "Permissions",
"all": "Everyone",
"admin": "Admins Only",
"teammember": "Team Members Only",
"user": "Specific Users Only",
"age": "Age 14+ Only"
},
"selectPermissions": "Please select",
"confirmDeleteMessage": "Do you really want to delete this forum?",
"confirmDeleteTitle": "Delete Forum"
},
"match3": { "match3": {
"title": "Manage Match3 Levels", "title": "Manage Match3 Levels",
"newLevel": "Create New Level", "newLevel": "Create New Level",
@@ -99,6 +142,51 @@
"invalidStockData": "Please enter valid warehouse type and quantity." "invalidStockData": "Please enter valid warehouse type and quantity."
} }
}, },
"chatrooms": {
"title": "[Admin] - Manage Chat Rooms",
"roomName": "Room Name",
"create": "Create Chat Room",
"edit": "Edit Chat Room",
"type": "Type",
"isPublic": "Publicly Visible",
"actions": "Actions",
"genderRestriction": {
"show": "Enable Gender Restriction",
"label": "Gender Restriction"
},
"minAge": {
"show": "Specify Minimum Age",
"label": "Minimum Age"
},
"maxAge": {
"show": "Specify Maximum Age",
"label": "Maximum Age"
},
"password": {
"show": "Enable Password Protection",
"label": "Password"
},
"friendsOfOwnerOnly": "Friends of Owner Only",
"requiredUserRight": {
"show": "Specify Required User Right",
"label": "Required User Right"
},
"roomtype": {
"chat": "Chat",
"dice": "Dice",
"poker": "Poker",
"hangman": "Hangman"
},
"rights": {
"talk": "Talk",
"scream": "Scream",
"whisper": "Whisper",
"start game": "Start Game",
"open room": "Open Room",
"systemmessage": "System Message"
},
"confirmDelete": "Do you really want to delete this chat room?"
},
"userStatistics": { "userStatistics": {
"title": "[Admin] - User Statistics", "title": "[Admin] - User Statistics",
"totalUsers": "Total Users", "totalUsers": "Total Users",

View File

@@ -1,5 +1,7 @@
{ {
"error": { "error": {
"title": "An Error Occurred",
"close": "Close",
"credentialsinvalid": "The credentials are not correct."
} }
} }

View File

@@ -20,6 +20,16 @@
"normal": "Normal", "normal": "Normal",
"bad": "Bad", "bad": "Bad",
"very_bad": "Very bad" "very_bad": "Very bad"
},
"newdirector": {
"title": "New Director",
"age": "Age",
"salary": "Salary",
"skills": "Skills",
"product": "Product",
"knowledge": "Knowledge",
"hire": "Hire",
"noProposals": "No director candidates available."
} }
} }
} }

View File

@@ -1,3 +1,23 @@
{ {
"friends": {
"title": "Friends",
"tabs": {
"existing": "Existing",
"rejected": "Rejected",
"pending": "Pending",
"requested": "Requested"
},
"actions": {
"end": "End",
"accept": "Accept",
"reject": "Reject",
"withdraw": "Withdraw"
},
"headers": {
"name": "Name",
"age": "Age",
"gender": "Gender",
"actions": "Actions"
}
}
} }

View File

@@ -29,6 +29,9 @@
"videos": "Videos" "videos": "Videos"
} }
}, },
"m-minigames": {
"match3": "Match 3 - Jewels"
},
"m-settings": { "m-settings": {
"homepage": "Homepage", "homepage": "Homepage",
"account": "Account", "account": "Account",

View File

@@ -1,3 +1,21 @@
{ {
"register": {
"title": "Register at yourPart",
"email": "Email address",
"username": "Username",
"password": "Password",
"repeatPassword": "Repeat password",
"language": "Language",
"languages": {
"en": "English",
"de": "German"
},
"register": "Register",
"close": "Close",
"failure": "An error occurred.",
"success": "You have been successfully registered. Please check your email to activate your account.",
"passwordMismatch": "The passwords do not match.",
"emailinuse": "The email address is already in use.",
"usernameinuse": "The username is not available."
}
} }

View File

@@ -1,3 +1,172 @@
{ {
"settings": {
"personal": {
"title": "Personal Data",
"label": {
"language": "Language",
"birthdate": "Birthdate",
"gender": "Gender",
"town": "City",
"zip": "ZIP",
"eyecolor": "Eye Color",
"haircolor": "Hair Color",
"hairlength": "Hair Length",
"skincolor": "Skin Color",
"freckles": "Freckles",
"weight": "Weight",
"bodyheight": "Height",
"piercings": "Piercings",
"tattoos": "Tattoos",
"sexualpreference": "Orientation",
"pubichair": "Pubic Hair",
"penislength": "Penis Length",
"brasize": "Bra Size",
"willChildren": "I want children",
"smokes": "Smoking",
"drinks": "I drink alcohol",
"hasChildren": "I have children",
"interestedInGender": "Interested in"
},
"tooltip": {
"language": "Language",
"birthdate": "Birthdate",
"gender": "Gender",
"town": "City",
"zip": "ZIP",
"eyecolor": "Eye Color",
"haircolor": "Hair Color",
"hairlength": "Hair Length",
"skincolor": "Skin Color",
"freckles": "Freckles",
"weight": "Weight",
"bodyheight": "Height",
"piercings": "Piercings",
"tattoos": "Tattoos",
"sexualpreference": "Orientation",
"pubichair": "Pubic Hair",
"penislength": "Penis Length",
"brasize": "Bra Size"
},
"gender": {
"male": "Male",
"female": "Female",
"transmale": "Trans-Female",
"transfemale": "Trans-Male",
"nonbinary": "Non-binary"
},
"language": {
"de": "German",
"en": "English"
},
"eyecolor": {
"blue": "Blue",
"green": "Green",
"brown": "Brown",
"black": "Black",
"grey": "Grey",
"hazel": "Hazel",
"amber": "Amber",
"red": "Red",
"other": "Other"
},
"haircolor": {
"black": "Black",
"brown": "Brown",
"blonde": "Blonde",
"red": "Red",
"grey": "Grey",
"white": "White",
"other": "Other"
},
"hairlength": {
"short": "Short",
"medium": "Medium",
"long": "Long",
"bald": "Bald",
"other": "Other"
},
"skincolor": {
"light": "Light",
"medium": "Medium",
"dark": "Dark",
"other": "Other"
},
"freckles": {
"much": "Many",
"medium": "Medium",
"less": "Few",
"none": "None"
},
"sexualpreference": {
"straight": "Heterosexual",
"gay": "Homosexual",
"bi": "Bisexual",
"asexual": "Asexual",
"pan": "Pansexual"
},
"pubichair": {
"none": "None",
"short": "Short",
"medium": "Medium",
"long": "Long",
"hairy": "Natural",
"waxed": "Waxed",
"landingstrip": "Landing Strip",
"bikinizone": "Bikini Zone Only",
"other": "Other"
},
"interestedInGender": {
"male": "Men",
"female": "Women"
},
"smokes": {
"often": "Often",
"socially": "Socially",
"daily": "Daily",
"never": "Never"
},
"drinks": {
"often": "Often",
"socially": "Socially",
"daily": "Daily",
"never": "Never"
}
},
"view": {
"title": "Appearance"
},
"sexuality": {
"title": "Sexuality"
},
"account": {
"title": "Account",
"username": "Username",
"email": "Email Address",
"newpassword": "Password",
"newpasswordretype": "Repeat Password",
"deleteAccount": "Delete Account",
"language": "Language",
"showinsearch": "Show in User Search",
"changeaction": "Change User Data",
"oldpassword": "Old Password (required)"
},
"interests": {
"title": "Interests",
"new": "New Interest",
"add": "Add",
"added": "The new interest has been added and is being processed. Until completion, it is not visible in the list of interests.",
"adderror": "An error occurred while adding the interest.",
"errorsetinterest": "The interest could not be booked for you."
},
"visibility": {
"Invisible": "Don't show",
"OnlyFriends": "Show only to friends",
"FriendsAndAdults": "Show to friends and adults",
"AdultsOnly": "Show only to adults",
"All": "Show to everyone"
},
"flirt": {
"title": "Flirt"
}
}
} }

View File

@@ -1,3 +1,253 @@
{ {
"socialnetwork": {
"usersearch": {
"title": "User Search",
"username": "Username",
"age_from": "Age from",
"age_to": "to",
"gender": "Gender",
"search_button": "Search",
"no_results": "No results found",
"results_title": "Search Results:",
"result": {
"nick": "Nickname",
"gender": "Gender",
"age": "Age"
}
},
"profile": {
"pretitle": "Loading data. Please wait...",
"error_title": "User not found",
"title": "Profile of <username>",
"tab": {
"general": "General",
"sexuality": "Sexuality",
"images": "Gallery",
"guestbook": "Guestbook"
},
"values": {
"bool": {
"true": "Yes",
"false": "No"
},
"smokes": {
"never": "Never",
"socially": "Socially",
"often": "Often",
"daily": "Daily"
},
"drinks": {
"never": "Never",
"socially": "Socially",
"often": "Often",
"daily": "Daily"
},
"interestedInGender": {
"male": "Men",
"female": "Women"
},
"sexualpreference": {
"straight": "Heterosexual",
"gay": "Homosexual",
"bi": "Bisexual",
"pan": "Pansexual",
"asexual": "Asexual"
},
"pubichair": {
"none": "None",
"short": "Short",
"medium": "Medium",
"long": "Long",
"hairy": "Unshaven",
"waxed": "Waxed",
"landingstrip": "Landing Strip",
"other": "Other",
"bikinizone": "Bikini Zone"
},
"gender": {
"male": "Male",
"female": "Female",
"transmale": "Trans-Female",
"transfemale": "Trans-Male",
"nonbinary": "Non-binary"
},
"language": {
"de": "German",
"en": "English"
},
"eyecolor": {
"blue": "Blue",
"green": "Green",
"brown": "Brown",
"black": "Black",
"grey": "Grey",
"hazel": "Hazel",
"amber": "Amber",
"red": "Red",
"other": "Other"
},
"haircolor": {
"black": "Black",
"brown": "Brown",
"blonde": "Blonde",
"red": "Red",
"grey": "Grey",
"white": "White",
"other": "Other"
},
"hairlength": {
"short": "Short",
"medium": "Medium",
"long": "Long",
"bald": "Bald",
"other": "Other"
},
"skincolor": {
"light": "Light",
"medium": "Medium",
"dark": "Dark",
"other": "Other"
},
"freckles": {
"much": "Many",
"medium": "Medium",
"less": "Few",
"none": "None"
}
},
"guestbook": {
"showInput": "Show new entry",
"hideInput": "Hide new entry",
"imageUpload": "Image",
"submit": "Submit entry",
"noEntries": "No entries found"
},
"interestedInGender": "Interested in",
"hasChildren": "Has children",
"smokes": "Smoking",
"drinks": "Alcohol",
"willChildren": "Wants children",
"sexualpreference": "Sexual orientation",
"pubichair": "Pubic hair",
"penislength": "Penis length",
"brasize": "Bra size",
"piercings": "Piercings",
"tattoos": "Tattoos",
"language": "Language",
"gender": "Gender",
"eyecolor": "Eye color",
"haircolor": "Hair color",
"hairlength": "Hair length",
"freckles": "Freckles",
"skincolor": "Skin color",
"birthdate": "Birthdate",
"age": "Age",
"town": "City",
"bodyheight": "Height",
"weight": "Weight"
},
"gallery": {
"title": "Gallery",
"folders": "Folders",
"create_folder": "Create folder",
"upload": {
"title": "Upload image",
"image_title": "Title",
"image_file": "File",
"visibility": "Visible to",
"upload_button": "Upload",
"selectvisibility": "Please select"
},
"images": "Images",
"visibility": {
"everyone": "Everyone",
"friends": "Friends",
"adults": "Adults",
"friends-and-adults": "Friends and adults",
"selected-users": "Selected users",
"none": "Nobody"
},
"create_folder_dialog": {
"title": "Create folder",
"parent_folder": "Will be created in",
"folder_title": "Folder name",
"visibility": "Visible to",
"select_visibility": "Please select"
},
"noimages": "There are currently no images in this folder",
"imagedialog": {
"image_title": "Title",
"edit_visibility": "Visible to",
"save_changes": "Save changes",
"close": "Close",
"edit_visibility_placeholder": "Please select"
},
"delete_folder_confirmation_title": "Delete folder",
"delete_folder_confirmation_message": "Do you really want to delete the folder '%%folderName%%'?",
"edit_image_dialog": {
"title": "Edit image data"
},
"show_image_dialog": {
"title": "Image"
}
},
"guestbook": {
"title": "Guestbook",
"prevPage": "Back",
"nextPage": "Next",
"page": "Page"
},
"diary": {
"title": "Diary",
"noEntries": "You haven't made any diary entries yet.",
"newEntry": "New diary entry",
"editEntry": "Edit diary entry",
"save": "Save",
"update": "Update",
"cancel": "Cancel",
"edit": "Edit",
"delete": "Delete",
"confirmDelete": "Do you really want to delete the entry?",
"prevPage": "Back",
"nextPage": "Next",
"page": "Page"
},
"forum": {
"title": "Forum",
"showNewTopic": "Create new topic",
"hideNewTopic": "Cancel creation",
"noTitles": "No topics available",
"topic": "Topic",
"createNewTopic": "Create topic",
"createdBy": "Created by",
"createdAt": "Created at",
"reactions": "Reaction",
"lastReaction": "Last reaction by",
"pagination": {
"first": "First page",
"previous": "Previous page",
"next": "Next page",
"last": "Last page",
"page": "Page <<page>> of <<of>>"
},
"createNewMesssage": "Send reply"
},
"friendship": {
"error": {
"alreadyexists": "The friendship request already exists"
},
"state": {
"none": "Not friends",
"waiting": "Friendship request sent but not answered",
"open": "Friendship was requested",
"denied": "Friendship request denied",
"withdrawn": "Friendship request withdrawn",
"accepted": "Friends"
},
"added": "You have sent a friendship request.",
"withdrawn": "You have withdrawn your friendship request.",
"denied": "You have denied the friendship request.",
"accepted": "The friendship has been established."
}
}
} }