Commit 79c30921 authored by Volker Krause's avatar Volker Krause
Browse files

Polish translated messages

Consistent casing, add contexts where needed.
parent d7f54cf1
Pipeline #62789 passed with stages
in 12 minutes and 37 seconds
...@@ -247,7 +247,7 @@ static void fillFlightReservation(const QVector<QVariant> &reservations, const K ...@@ -247,7 +247,7 @@ static void fillFlightReservation(const QVector<QVariant> &reservations, const K
desc.push_back(i18n("Boarding time: %1", QLocale().toString(boardingTime.time(), QLocale::ShortFormat))); desc.push_back(i18n("Boarding time: %1", QLocale().toString(boardingTime.time(), QLocale::ShortFormat)));
} }
if (!departureGate.isEmpty()) { if (!departureGate.isEmpty()) {
desc.push_back(i18n("Departure gate: %1", departureGate)); desc.push_back(i18nc("flight departure gate", "Departure gate: %1", departureGate));
} }
for (const auto &r : reservations) { for (const auto &r : reservations) {
...@@ -461,7 +461,7 @@ static void fillFoodReservation(const FoodEstablishmentReservation &reservation, ...@@ -461,7 +461,7 @@ static void fillFoodReservation(const FoodEstablishmentReservation &reservation,
QStringList desc; QStringList desc;
if (reservation.partySize() > 0) { if (reservation.partySize() > 0) {
desc.push_back(i18n("Number Of People: %1", reservation.partySize())); desc.push_back(i18n("Number of people: %1", reservation.partySize()));
} }
if (!reservation.reservationNumber().isEmpty()) { if (!reservation.reservationNumber().isEmpty()) {
desc.push_back(i18n("Reservation reference: %1", reservation.reservationNumber())); desc.push_back(i18n("Reservation reference: %1", reservation.reservationNumber()));
...@@ -478,7 +478,7 @@ static void fillRentalCarReservation(const RentalCarReservation &reservation, co ...@@ -478,7 +478,7 @@ static void fillRentalCarReservation(const RentalCarReservation &reservation, co
const auto rentalCalPickup = reservation.pickupLocation(); const auto rentalCalPickup = reservation.pickupLocation();
const auto addressPickUp = rentalCalPickup.address(); const auto addressPickUp = rentalCalPickup.address();
const auto rentalCar = reservation.reservationFor().value<RentalCar>(); const auto rentalCar = reservation.reservationFor().value<RentalCar>();
event->setSummary(i18n("Rental Car reservation: %1", rentalCar.name())); event->setSummary(i18n("Rental car reservation: %1", rentalCar.name()));
event->setLocation(formatAddressSingleLine(addressPickUp)); event->setLocation(formatAddressSingleLine(addressPickUp));
fillGeoPosition(rentalCalPickup, event); fillGeoPosition(rentalCalPickup, event);
...@@ -486,14 +486,13 @@ static void fillRentalCarReservation(const RentalCarReservation &reservation, co ...@@ -486,14 +486,13 @@ static void fillRentalCarReservation(const RentalCarReservation &reservation, co
event->setDtEnd(reservation.dropoffTime()); event->setDtEnd(reservation.dropoffTime());
event->setAllDay(false); event->setAllDay(false);
event->setTransparency(KCalendarCore::Event::Transparent); event->setTransparency(KCalendarCore::Event::Transparent);
event->setSummary(i18n("Rent car reservation: %1", rentalCar.name()));
const QString pickUpAddress = formatAddress(addressPickUp); const QString pickUpAddress = formatAddress(addressPickUp);
const auto rentalCalDropOff = reservation.dropoffLocation(); const auto rentalCalDropOff = reservation.dropoffLocation();
const auto addressDropOff = rentalCalDropOff.address(); const auto addressDropOff = rentalCalDropOff.address();
const QString dropAddress = formatAddress(addressDropOff); const QString dropAddress = formatAddress(addressDropOff);
const QString description = i18n("Reservation reference: %1\nUnder name: %2\n\nPickUp location: %3\n\nDropoff Location: %4", const QString description = i18n("Reservation reference: %1\nUnder name: %2\n\nPickup location: %3\n\nDropoff location: %4",
reservation.reservationNumber(), reservation.reservationNumber(),
reservation.underName().value<KItinerary::Person>().name(), reservation.underName().value<KItinerary::Person>().name(),
pickUpAddress, pickUpAddress,
...@@ -518,7 +517,7 @@ static void fillTaxiReservation(const TaxiReservation &reservation, const KCalen ...@@ -518,7 +517,7 @@ static void fillTaxiReservation(const TaxiReservation &reservation, const KCalen
//TODO event->setSummary(i18n("Rent car reservation: %1", rentalCar.name())); //TODO event->setSummary(i18n("Rent car reservation: %1", rentalCar.name()));
const QString pickUpAddress = formatAddress(addressPickUp); const QString pickUpAddress = formatAddress(addressPickUp);
const QString description = i18n("Reservation reference: %1\nUnder name: %2\nPickUp location: %3", const QString description = i18n("Reservation reference: %1\nUnder name: %2\nPickup location: %3",
reservation.reservationNumber(), reservation.reservationNumber(),
reservation.underName().value<KItinerary::Person>().name(), reservation.underName().value<KItinerary::Person>().name(),
pickUpAddress); pickUpAddress);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment