Skip to content

Commit

Permalink
Merge pull request #15 from motopress/feature/l10n
Browse files Browse the repository at this point in the history
Feature/l10n
  • Loading branch information
mototeam authored Jul 14, 2023
2 parents 72dba1d + f05cbc2 commit c17d3cd
Show file tree
Hide file tree
Showing 45 changed files with 1,142 additions and 504 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ _Note: You will need a WordPress website and the Hotel Booking plugin from MotoP

### Prepare
1. Update version name and build number in `pubspec.yaml`.
1. Update l10n `flutter gen-l10n`.

### Build and Release for iOS

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
compileSdkVersion 30
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -51,7 +51,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.motopress.mphb_app"
minSdkVersion 20
targetSdkVersion 30
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
Expand Down
6 changes: 4 additions & 2 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -76,7 +76,6 @@
E66942F8A137BA1B63A2B2FA /* Pods-Runner.release.xcconfig */,
73D896FD74FEC34E6FDA785F /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -359,6 +358,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -488,6 +488,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -511,6 +512,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
3 changes: 3 additions & 0 deletions lib/l10n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
103 changes: 103 additions & 0 deletions lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"@@locale": "de",
"textInstructions": "Navigieren Sie zu Unterkunft → Einstellungen → Erweitert um API-Schlüssel zu generieren und QR-Code zu scannen oder geben Sie Ihre Daten in das untenstehende Formular ein.",
"scanQRCodeButtonText": "Scan QR code",
"invalidQRCodeMessage": "QR-Code ist nicht gültig.",
"domainLabelText": "Domäne",
"domainValidatorMessage": "Bitte Domain eingeben",
"keyLabelText": "Schlüssel",
"keyValidatorMessage": "Bitte geben Sie den Schlüssel ein",
"secretLabelText": "Geheimnis",
"secretValidatorMessage": "Bitte Geheimnis eingeben",
"submitButtonText": "Übermitteln",
"calendarLabelText": "Kalender",
"bookingsLabelText": "Buchungen",
"paymentsLabelText": "Zahlungen",
"settingsLabelText": "Einstellungen",
"refreshTootlipText": "Aktualisieren",
"filterTootlipText": "Filtern",
"nothingFoundText": "Nichts gefunden",
"newBookingTooltipText": "Neue Buchung",
"cancelButttonText": "Stornieren",
"logoutButtonText": "Abmelden",
"confirmLogoutMessage": "Sind Sie sicher, dass Sie sich abmelden möchten?",
"consumerKeyEndingInLabelText": "Verbraucherschlüssel läuft ab in",
"adultsLabelText": "Erwachsene",
"childrenLabelText": "Kinder",
"rateLabelText": "Tarif",
"servicesLabelText": "Dienstleistungen",
"bookingSetToConfirmedButtonText": "Bestätigt",
"bookingSetToCanceledButtonText": "Auf Abbruch setzen",
"bookingSetToPendingAdminButtonText": "Auf ausstehender Admin setzen",
"bookingSetToPendingUserConfirmationButtonText": "Auf Ausstehende Benutzerbestätigung setzen",
"bookingSetToPendingPaymentButtonText": "Auf Ausstehende Zahlung setzen",
"deleteButtonText": "Löschen",
"notSetLabelText": "nicht gesetzt",
"copiedLabelText": "kopiert",
"copyTooltipText": "Kopieren",
"totalLabelText": "Gesamt",
"paidLabelText": "Bezahlt",
"toPayLabelText": "Bezahlen",
"couponCodeUsedLabelText": "Gutscheincode verwendet",
"guestsText": "gast(e)",
"timesText": "Mal",
"onceText": "Einmal",
"dailyText": "Täglich",
"bookingDeletedMessage": "Buchung %d gelöscht",
"bookingLabelText": "Buchung",
"actionsTooltipText": "Aktionen",
"errorText": "Fehler",
"reservationText": "Reservierung",
"customerNoteText": "Notizen des Kunden",
"internalNotesText": "Interne Notizen",
"customerInformationText": "Kundeninformationen",
"firstnameLabelText": "Vorname",
"lastnameLabelText": "Nachname",
"emailLabelText": "E-Mail",
"phoneLabelText": "Telefon",
"bookingCreatedMessage": "Buchung %d erstellt",
"basePriceText": "Basispreis",
"addBookingTitleText": "Buchung hinzufügen",
"invalidRouteText": "Ungültige Route",
"continueButtonText": "Weiter",
"bookNowButtonText": "Jetzt buchen",
"quitButtonText": "Beenden",
"checkInLabelText": "Anreise",
"checkOutLabelText": "Abreise",
"dateValidatorMessage": "Bitte Datum eingeben",
"searchButtonText": "Suche",
"externalText": "Extern",
"bookingConfirmedOptionText": "Bestätigt",
"bookingCanceledOptionText": "Abgebrochen",
"bookingAbandonedOptionText": "Aufgegeben",
"bookingPendingAdminOptionText": "Ausstehender Administrator",
"bookingPendingUserOptionText": "Ausstehender Benutzer",
"bookingPendingPaymentOptionText": "Ausstehende Zahlung",
"todayOptionText": "Heute",
"thisWeekOptionText": "Diese Woche",
"thisMonthOptionText": "Diesen Monat",
"filtersTitleText": "Filter",
"resetButtonText": "Zurücksetzen",
"bookingStatusLabelText": "Buchungsstatus",
"dateCreatedLabelText": "Erstellungsdatum",
"searchHintText": "suchen...",
"displayExternalBookingsLabelText": "Zeige externe Buchungen",
"paymentCompletedOptionText": "Abgeschlossen",
"paymentCanceledOptionText": "Abgebrochen",
"paymentAbandonedOptionText": "Aufgegeben",
"paymentPendingOptionText": "Ausstehend",
"paymentFailedOptionText": "Fehlgeschlagen",
"paymentRefundedOptionText": "Zurückerstattet",
"paymentOnHoldOptionText": "In der Warteschleife",
"paymentStatusLabelText": "Zahlungsstatus",
"paymentSetToCompletedButtonText": "Erledigte",
"paymentSetToCanceledButtonText": "Auf Abbruch setzen",
"paymentSetToOnHoldButtonText": "Halten auf",
"paymentSetToPendingButtonText": "Auf Ausstehend setzen",
"paymentSetToFailedButtonText": "Fehlgeschlagen",
"paymentSetToRefundedButtonText": "Auf Erstattung setzen",
"paymentText": "Zahlung",
"calendarFormatMonth": "Monat",
"calendarFormatTwoWeeks": "2 Wochen",
"calendarFormatWeek": "Woche"
}
103 changes: 103 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"@@locale": "en",
"textInstructions": "Navigate to Accommodation → Settings → Advanced to generate API keys and scan QR code. Or enter your data in the form below.",
"scanQRCodeButtonText": "Scan QR code",
"invalidQRCodeMessage": "QR code is not valid.",
"domainLabelText": "Domain",
"domainValidatorMessage": "Please enter domain",
"keyLabelText": "Key",
"keyValidatorMessage": "Please enter Key",
"secretLabelText": "Secret",
"secretValidatorMessage": "Please enter Secret",
"submitButtonText": "Submit",
"calendarLabelText": "Calendar",
"bookingsLabelText": "Bookings",
"paymentsLabelText": "Payments",
"settingsLabelText": "Settings",
"refreshTootlipText": "Refresh",
"filterTootlipText": "Filter",
"nothingFoundText": "Nothing Found",
"newBookingTooltipText": "New Booking",
"cancelButttonText": "Cancel",
"logoutButtonText": "Log out",
"confirmLogoutMessage": "Are you sure you want to log out?",
"consumerKeyEndingInLabelText": "Consumer key ending in",
"adultsLabelText": "Adults",
"childrenLabelText": "Children",
"rateLabelText": "Rate",
"servicesLabelText": "Services",
"bookingSetToConfirmedButtonText": "Set to Confirmed",
"bookingSetToCanceledButtonText": "Set to Canceled",
"bookingSetToPendingAdminButtonText": "Set to Pending Admin",
"bookingSetToPendingUserConfirmationButtonText": "Set to Pending User Confirmation",
"bookingSetToPendingPaymentButtonText": "Set to Pending Payment",
"deleteButtonText": "Delete",
"notSetLabelText": "not set",
"copiedLabelText": "copied",
"copyTooltipText": "Copy",
"totalLabelText": "Total",
"paidLabelText": "Paid",
"toPayLabelText": "To Pay",
"couponCodeUsedLabelText": "Coupon code used",
"guestsText": "guest(s)",
"timesText": "time(s)",
"onceText": "Once",
"dailyText": "Daily",
"bookingDeletedMessage": "Booking %d deleted",
"bookingLabelText": "Booking",
"actionsTooltipText": "Actions",
"errorText": "Error",
"reservationText": "Reservation",
"customerNoteText": "Customer Note",
"internalNotesText": "Internal Notes",
"customerInformationText": "Customer Information",
"firstnameLabelText": "First Name",
"lastnameLabelText": "Last Name",
"emailLabelText": "Email",
"phoneLabelText": "Phone",
"bookingCreatedMessage": "Booking %d created",
"basePriceText": "Base price",
"addBookingTitleText": "Add Booking",
"invalidRouteText": "Invalid route",
"continueButtonText": "Continue",
"bookNowButtonText": "Book Now",
"quitButtonText": "Quit",
"checkInLabelText": "Check-In",
"checkOutLabelText": "Check-Out",
"dateValidatorMessage": "Please enter date",
"searchButtonText": "Search",
"externalText": "External",
"bookingConfirmedOptionText": "Confirmed",
"bookingCanceledOptionText": "Canceled",
"bookingAbandonedOptionText": "Abandoned",
"bookingPendingAdminOptionText": "Pending Admin",
"bookingPendingUserOptionText": "Pending User",
"bookingPendingPaymentOptionText": "Pending Payment",
"todayOptionText": "Today",
"thisWeekOptionText": "This Week",
"thisMonthOptionText": "This Month",
"filtersTitleText": "Filters",
"resetButtonText": "Reset",
"bookingStatusLabelText": "Booking Status",
"dateCreatedLabelText": "Date created",
"searchHintText": "search...",
"displayExternalBookingsLabelText": "Display external bookings",
"paymentCompletedOptionText": "Completed",
"paymentCanceledOptionText": "Canceled",
"paymentAbandonedOptionText": "Abandoned",
"paymentPendingOptionText": "Pending",
"paymentFailedOptionText": "Failed",
"paymentRefundedOptionText": "Refunded",
"paymentOnHoldOptionText": "On Hold",
"paymentStatusLabelText": "Payment Status",
"paymentSetToCompletedButtonText": "Set to Completed",
"paymentSetToCanceledButtonText": "Set to Canceled",
"paymentSetToOnHoldButtonText": "Set to On Hold",
"paymentSetToPendingButtonText": "Set to Pending",
"paymentSetToFailedButtonText": "Set to Failed",
"paymentSetToRefundedButtonText": "Set to Refunded",
"paymentText": "Payment",
"calendarFormatMonth": "Month",
"calendarFormatTwoWeeks": "2 weeks",
"calendarFormatWeek": "Week"
}
103 changes: 103 additions & 0 deletions lib/l10n/app_es.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"@@locale": "es",
"textInstructions": "Vaya a Alojamiento → Configuración → Avanzado para generar claves API y escanear código QR. O introduzca sus datos en el formulario de abajo.",
"scanQRCodeButtonText": "Escanear código QR",
"invalidQRCodeMessage": "El código QR no es válido.",
"domainLabelText": "Dominio",
"domainValidatorMessage": "Por favor introduce un dominio",
"keyLabelText": "Clave",
"keyValidatorMessage": "Por favor, introduzca la clave",
"secretLabelText": "Secreto",
"secretValidatorMessage": "Por favor ingrese secreto",
"submitButtonText": "Enviar",
"calendarLabelText": "Calendario",
"bookingsLabelText": "Reservas",
"paymentsLabelText": "Pagos",
"settingsLabelText": "Configuración",
"refreshTootlipText": "Refrescar",
"filterTootlipText": "Filtro",
"nothingFoundText": "Nada encontrado",
"newBookingTooltipText": "Nueva reserva",
"cancelButttonText": "Cancelar",
"logoutButtonText": "Cerrar sesión",
"confirmLogoutMessage": "¿Estás seguro de que quieres cerrar sesión?",
"consumerKeyEndingInLabelText": "Clave de consumidor que termina en",
"adultsLabelText": "Adultos",
"childrenLabelText": "Niños",
"rateLabelText": "Tarifa",
"servicesLabelText": "Servicios",
"bookingSetToConfirmedButtonText": "Establecer como confirmado",
"bookingSetToCanceledButtonText": "Establecer a Cancelar",
"bookingSetToPendingAdminButtonText": "Establecer a Administrador Pendiente",
"bookingSetToPendingUserConfirmationButtonText": "Establecer a confirmación de usuario pendiente",
"bookingSetToPendingPaymentButtonText": "Establecer a Pago Pendiente",
"deleteButtonText": "Eliminar",
"notSetLabelText": "no establecido",
"copiedLabelText": "copiado",
"copyTooltipText": "Copiar",
"totalLabelText": "Total",
"paidLabelText": "Pagada",
"toPayLabelText": "A pagar",
"couponCodeUsedLabelText": "Código de cupón usado",
"guestsText": "invitado(s)",
"timesText": "vez/veces",
"onceText": "Una sola vez",
"dailyText": "Diario",
"bookingDeletedMessage": "Reserva %d eliminada",
"bookingLabelText": "Reserva",
"actionsTooltipText": "Acciones",
"errorText": "Error",
"reservationText": "Reserva",
"customerNoteText": "Nota de cliente",
"internalNotesText": "Notas internas",
"customerInformationText": "Información sobre cliente",
"firstnameLabelText": "Nombre",
"lastnameLabelText": "Apellido",
"emailLabelText": "Email",
"phoneLabelText": "Teléfono",
"bookingCreatedMessage": "Reservando %d creado",
"basePriceText": "Precio base",
"addBookingTitleText": "Añadir reserva",
"invalidRouteText": "Ruta no válida",
"continueButtonText": "Continuar",
"bookNowButtonText": "Reservar ahora",
"quitButtonText": "Salir",
"checkInLabelText": "Día de llegada",
"checkOutLabelText": "Día de salida",
"dateValidatorMessage": "Introduce la fecha",
"searchButtonText": "Búsqueda",
"externalText": "Externo",
"bookingConfirmedOptionText": "Confirmada",
"bookingCanceledOptionText": "Cancelado",
"bookingAbandonedOptionText": "Abandonada",
"bookingPendingAdminOptionText": "Requiere acción de admin",
"bookingPendingUserOptionText": "Usuario pendiente",
"bookingPendingPaymentOptionText": "Requiere pago",
"todayOptionText": "Hoy",
"thisWeekOptionText": "Esta semana",
"thisMonthOptionText": "Este mes",
"filtersTitleText": "Filtros",
"resetButtonText": "Reset",
"bookingStatusLabelText": "Estado de la reserva",
"dateCreatedLabelText": "Fecha de creación",
"searchHintText": "buscar...",
"displayExternalBookingsLabelText": "Mostrar reservas externas",
"paymentCompletedOptionText": "Completado",
"paymentCanceledOptionText": "Cancelado",
"paymentAbandonedOptionText": "Abandonada",
"paymentPendingOptionText": "Pendiente",
"paymentFailedOptionText": "Erróneo",
"paymentRefundedOptionText": "Reembolsado",
"paymentOnHoldOptionText": "En espera",
"paymentStatusLabelText": "Estado del pago",
"paymentSetToCompletedButtonText": "Establecer a Completado",
"paymentSetToCanceledButtonText": "Establecer a Cancelar",
"paymentSetToOnHoldButtonText": "Poner en espera",
"paymentSetToPendingButtonText": "Establecer a Pendiente",
"paymentSetToFailedButtonText": "Error al establecer",
"paymentSetToRefundedButtonText": "Establecer a reembolsado",
"paymentText": "Pago",
"calendarFormatMonth": "Mes",
"calendarFormatTwoWeeks": "2 semanas",
"calendarFormatWeek": "Semana"
}
Loading

0 comments on commit c17d3cd

Please sign in to comment.