Skip to content

Commit

Permalink
fix: Translation
Browse files Browse the repository at this point in the history
refactor: None
feat: None
  • Loading branch information
jiloysss authored and jiloysss committed Jul 11, 2019
1 parent 22228df commit b9fa5a3
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/stories/screens/Payment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Payment extends React.PureComponent {
if (useDefaultCustomer) {
return null;
}
strings.setLanguage(currentLanguage().companyLanguage);
strings.setLanguage(currentLanguage().companyLanguage);
return (
<View>
<Label style={styles.viewLabel}>{strings.Customer}</Label>
Expand All @@ -75,6 +75,8 @@ export default class Payment extends React.PureComponent {
};

render() {
strings.setLanguage(currentLanguage().companyLanguage);

let mc = new MoneyCurrency(
this.props.currency ? this.props.currency : "PHP",
);
Expand Down
4 changes: 4 additions & 0 deletions src/translations/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,8 @@ export default {
Language: "FRLanguage",
PleaseRestartTheApplicationToUpdateLanguage:
"FRPlease restart the application to update language",
AlreadyUpToDate: "Already up to date",
SyncSuccessful: "Sync Successful",
UnableToSync: "Unable to sync",
InvalidUrl: "Invalid URL",
};
143 changes: 141 additions & 2 deletions src/translations/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,145 @@ export default {
PleaseSelectAnyAttendant: "Silahkan pilih salah satu pegawai",
PINError: "PIN Salah",
PleaseEnterTheCorrectPINNumber: "Silahkan masukan nomer PIN yang benar",
PleaseRestartTheApplicationToUpdateLanguage:
"INPlease restart the application to update language",
//Late Additionals
SetTheShift: "Set the shift",
AttendantAlreadyAdded: "Attendant Already Added",
NoItemBasedOnTheBarcode: "No item based on the barcode",
QuantityIsNotAllowed: "Quantity is not allowed",
ReceiptLineIsModified: "Receipt line is modified",
UnableToDeleteReceiptLine: "Unable to delete receipt line.",
ConfirmOrderCancel: "Confirm Order Cancel",
ConfirmOrderClose: "Confirm Order Close",
WouldYouLikeToCancelTheOrder: "Would you like to cancel the order?",
WouldYouLikeToCloseTheOrder: "Would you like to close the order?",
IsCancelled: "is cancelled",
Order: "Order",
ConfirmTableChange: "Confirm Table Change",
WouldYouLikeToChangeTable: "Would you like to change table?",
TableNumberChanged: "Table Number Changed",
UnableToTakeAwayOrder: "Unable to take-away order.",
SaveNew: "Save new",
Edit: "Edit",
VerifyCode: "Verify code",
Verify: "Verify",
ResendCode: "Resend Code",
CashedOut: "Cashed Out",
TaxPercentage: "Tax Percentage",
ItemName: "Item Name",
AddNewItem: "Add new item",
WouldYouLikeToCreateNew: "Would you like to create new",
CreateNew: "Create new",
From: "From",
To: "To",
EnterPinCode: "Enter PIN Code",
ZeroPriceIsNotAvailable: "Zero price is not available.",
PaymentReceipt: "Payment Receipt",
TransactedOn: "Transacted on",
YouHaveSuccessfullyRegistered: "You have successfully registered",
ReceiptItems: "Receipt Items",
Overage: "Overage",
ErrorButton: "Error Button",
ForceSync: "Force Sync",
SyncingErpnextData: "Syncing ERPNEXT data",
SendPassword: "Send Password",
Back: "Back",
Register: "Register",
Login: "Login",
CreateAccount: "Create Account",
FirstName: "First Name",
LastName: "Last Name",
ConfirmPassword: "Confirm Password",
ThereAreItemsAssociatedWithThisCategoryChangeOrDeleteTheItems:
"There are items associated with this category. Change or delete the items",
SuccessfullyDeletedCategory: "Successfully Deleted Category",
SuccessfullyDeletedItem: "Successfully Deleted Item",
SuccessfullyDeletedDiscount: "Successfully Deleted Discount",
DeleteCategory: "Delete Category?",
DeleteItem: "Delete Item?",
DeleteDiscount: "Delete Discount?",
WouldYouLikeToDeleteThisCategory: "Would you like to delete this category?",
WouldYouLikeToDeleteAnItem: "Would you like to delete an item?",
WouldYouLikeToDeleteThisDiscount: "Would you like to delete this discount?",
SuccessfullyUpdatedCategory: "Successfully Updated Category",
SuccessfullyUpdatedItem: "Successfully Updated Item",
SuccessfullyUpdatedDiscount: "Successfully Updated Discount",
DiscountValueError: "Discount Value Error",
ValueCantBeGreaterThan100OrLessThan0:
"Value cant be greater than 100% or less than 0%",
BarcodeAlreadyBeenUsed: "Barcode already been used",
EnterValidItemName: "Enter Valid Item Name",
SuccessfullyPrintedTheBarcode: "Successfully printed the barcode.",
UnableToPrint: "Unable to print",
PleaseConnectYourPrinter: "Please connect your printer",
CheckYourEmail: "Check Your Email.",
NetworkConnectionFailed: "Network Connection Failed.",
ReceiptConfirmation: "Receipt Confirmation",
InvalidEmail: "Invalid Email",
PleaseEnterValidEmail: "Please enter valid email",
AreYouSureYouWantToReprintThisReceipt:
"Are you sure you want to reprint this receipt?",
UnableToConnectPrinter: "Unable to connect printer",
ReprintCompleted: "Reprint Completed",
EnterValidReason: "Enter Valid Reason",
TransactionCompleted: "Transaction Completed",
AllDataWillBeLostWhenYouAreLoggedOutAsOwnerWouldYouLikeToProceed:
"All data will be lost when you are logged out as owner. Would you like to proceed?",
Logout: "Logout",
AttendantAlreadyExists: "Attendant Already Exists",
SuccessfullyUpdatedAttendant: "Successfully updated attendant",
PinCodeContainsSpecialCharacters: "Pin code contains special characters",
DeleteAttendant: "Delete Attendant",
AreYouSureYouWantToDeleteAttendant:
"Are you sure you want to delete attendant?",
SuccessfullyDeletedAttendant: "Successfully Deleted Attendant",
NoShiftsCreated: "No Shifts Created",
BluetoothConnectionFailed: "Bluetooth Connection Failed",
RoleError: "Role Error",
UnableToGoToListingIfYouAreTheOwnerReLogInAsOwnerInOrderToProceed:
"Unable to go to listing. If you are the owner, re log-in as owner in order to proceed",
UnableToRegisterEmailAddressIsAlreadyTaken:
"Unable to register. Email address is already taken",
UnableToRegisterConnectionFailed: "Unable to register. Connection failed",
EmailAlreadyExists: "Email Already Exists",
EmailIsAvailable: "Email is available",
InputAValidEmail: "Input a valid email",
OpenShift: "Open Shift",
InputValidRole: "Input Valid Role",
SuccessfullyDeletedRole: "Successfully Deleted Role",
DeleteRole: "Delete Role",
AreYouSureYouWantToDeleteRole: "Are you sure you want to delete role?",
SuccessfullyAddedRole: "Successfully Added Role",

//Actual Receipts
Cashier: "Cashier: ",
TransactionNo: "Transaction No.:",
Qty: "Qty",
Purchases: "Purchases",
TotalAmount: "Total Amount",
ThisServesAsYour: "This serves as your",
OfficialReceipt: "Official Receipt",
POSProvider: "POS Provider:\n",
AccredNo: "Accred. No.: \n",
DateIssued: "Date Issued: \n",
ValidUntil: "Valid Until: \n\n",
ThisReceiptShallBeValidFor: "THIS RECEIPT SHALL BE VALID FOR\n",
FiveYearsFromTheDateOf: "FIVE(5) YEARS FROM THE DATE OF\n",
ThePermitToUse: "THE PERMIT TO USE\n",
FromDateMustBeGreaterThanOrEqualToDate:
"(From) date must be greater than or equal (To) date",
NoItemSalesFrom: "No Item Sales from",
Date: "Date",
Type: "Type",
PrintedBy: "Printed by",
Closed: "Closed",
PrintedOn: "Printed on",
Change: "Change",
XRreading: "X Reading",
Language: "Language",
PleaseRestartTheApplicationToUpdateLanguage:
"Please restart the application to update language",
AlreadyUpToDate: "Already up to date",
SyncSuccessful: "Sync Successful",
UnableToSync: "Unable to sync",
InvalidUrl: "Invalid URL",
};
141 changes: 141 additions & 0 deletions src/translations/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,145 @@ export default {
PINError: "Erro de Codigo",
PleaseEnterTheCorrectPINNumber:
"Por favor digite o Numero do Codigo correcto",
//Late Additionals
SetTheShift: "Set the shift",
AttendantAlreadyAdded: "Attendant Already Added",
NoItemBasedOnTheBarcode: "No item based on the barcode",
QuantityIsNotAllowed: "Quantity is not allowed",
ReceiptLineIsModified: "Receipt line is modified",
UnableToDeleteReceiptLine: "Unable to delete receipt line.",
ConfirmOrderCancel: "Confirm Order Cancel",
ConfirmOrderClose: "Confirm Order Close",
WouldYouLikeToCancelTheOrder: "Would you like to cancel the order?",
WouldYouLikeToCloseTheOrder: "Would you like to close the order?",
IsCancelled: "is cancelled",
Order: "Order",
ConfirmTableChange: "Confirm Table Change",
WouldYouLikeToChangeTable: "Would you like to change table?",
TableNumberChanged: "Table Number Changed",
UnableToTakeAwayOrder: "Unable to take-away order.",
SaveNew: "Save new",
Edit: "Edit",
VerifyCode: "Verify code",
Verify: "Verify",
ResendCode: "Resend Code",
CashedOut: "Cashed Out",
TaxPercentage: "Tax Percentage",
ItemName: "Item Name",
AddNewItem: "Add new item",
WouldYouLikeToCreateNew: "Would you like to create new",
CreateNew: "Create new",
From: "From",
To: "To",
EnterPinCode: "Enter PIN Code",
ZeroPriceIsNotAvailable: "Zero price is not available.",
PaymentReceipt: "Payment Receipt",
TransactedOn: "Transacted on",
YouHaveSuccessfullyRegistered: "You have successfully registered",
ReceiptItems: "Receipt Items",
Overage: "Overage",
ErrorButton: "Error Button",
ForceSync: "Force Sync",
SyncingErpnextData: "Syncing ERPNEXT data",
SendPassword: "Send Password",
Back: "Back",
Register: "Register",
Login: "Login",
CreateAccount: "Create Account",
FirstName: "First Name",
LastName: "Last Name",
ConfirmPassword: "Confirm Password",
ThereAreItemsAssociatedWithThisCategoryChangeOrDeleteTheItems:
"There are items associated with this category. Change or delete the items",
SuccessfullyDeletedCategory: "Successfully Deleted Category",
SuccessfullyDeletedItem: "Successfully Deleted Item",
SuccessfullyDeletedDiscount: "Successfully Deleted Discount",
DeleteCategory: "Delete Category?",
DeleteItem: "Delete Item?",
DeleteDiscount: "Delete Discount?",
WouldYouLikeToDeleteThisCategory: "Would you like to delete this category?",
WouldYouLikeToDeleteAnItem: "Would you like to delete an item?",
WouldYouLikeToDeleteThisDiscount: "Would you like to delete this discount?",
SuccessfullyUpdatedCategory: "Successfully Updated Category",
SuccessfullyUpdatedItem: "Successfully Updated Item",
SuccessfullyUpdatedDiscount: "Successfully Updated Discount",
DiscountValueError: "Discount Value Error",
ValueCantBeGreaterThan100OrLessThan0:
"Value cant be greater than 100% or less than 0%",
BarcodeAlreadyBeenUsed: "Barcode already been used",
EnterValidItemName: "Enter Valid Item Name",
SuccessfullyPrintedTheBarcode: "Successfully printed the barcode.",
UnableToPrint: "Unable to print",
PleaseConnectYourPrinter: "Please connect your printer",
CheckYourEmail: "Check Your Email.",
NetworkConnectionFailed: "Network Connection Failed.",
ReceiptConfirmation: "Receipt Confirmation",
InvalidEmail: "Invalid Email",
PleaseEnterValidEmail: "Please enter valid email",
AreYouSureYouWantToReprintThisReceipt:
"Are you sure you want to reprint this receipt?",
UnableToConnectPrinter: "Unable to connect printer",
ReprintCompleted: "Reprint Completed",
EnterValidReason: "Enter Valid Reason",
TransactionCompleted: "Transaction Completed",
AllDataWillBeLostWhenYouAreLoggedOutAsOwnerWouldYouLikeToProceed:
"All data will be lost when you are logged out as owner. Would you like to proceed?",
Logout: "Logout",
AttendantAlreadyExists: "Attendant Already Exists",
SuccessfullyUpdatedAttendant: "Successfully updated attendant",
PinCodeContainsSpecialCharacters: "Pin code contains special characters",
DeleteAttendant: "Delete Attendant",
AreYouSureYouWantToDeleteAttendant:
"Are you sure you want to delete attendant?",
SuccessfullyDeletedAttendant: "Successfully Deleted Attendant",
NoShiftsCreated: "No Shifts Created",
BluetoothConnectionFailed: "Bluetooth Connection Failed",
RoleError: "Role Error",
UnableToGoToListingIfYouAreTheOwnerReLogInAsOwnerInOrderToProceed:
"Unable to go to listing. If you are the owner, re log-in as owner in order to proceed",
UnableToRegisterEmailAddressIsAlreadyTaken:
"Unable to register. Email address is already taken",
UnableToRegisterConnectionFailed: "Unable to register. Connection failed",
EmailAlreadyExists: "Email Already Exists",
EmailIsAvailable: "Email is available",
InputAValidEmail: "Input a valid email",
OpenShift: "Open Shift",
InputValidRole: "Input Valid Role",
SuccessfullyDeletedRole: "Successfully Deleted Role",
DeleteRole: "Delete Role",
AreYouSureYouWantToDeleteRole: "Are you sure you want to delete role?",
SuccessfullyAddedRole: "Successfully Added Role",

//Actual Receipts
Cashier: "Cashier: ",
TransactionNo: "Transaction No.:",
Qty: "Qty",
Purchases: "Purchases",
TotalAmount: "Total Amount",
ThisServesAsYour: "This serves as your",
OfficialReceipt: "Official Receipt",
POSProvider: "POS Provider:\n",
AccredNo: "Accred. No.: \n",
DateIssued: "Date Issued: \n",
ValidUntil: "Valid Until: \n\n",
ThisReceiptShallBeValidFor: "THIS RECEIPT SHALL BE VALID FOR\n",
FiveYearsFromTheDateOf: "FIVE(5) YEARS FROM THE DATE OF\n",
ThePermitToUse: "THE PERMIT TO USE\n",
FromDateMustBeGreaterThanOrEqualToDate:
"(From) date must be greater than or equal (To) date",
NoItemSalesFrom: "No Item Sales from",
Date: "Date",
Type: "Type",
PrintedBy: "Printed by",
Closed: "Closed",
PrintedOn: "Printed on",
Change: "Change",
XRreading: "X Reading",
Language: "Language",
PleaseRestartTheApplicationToUpdateLanguage:
"Please restart the application to update language",
AlreadyUpToDate: "Already up to date",
SyncSuccessful: "Sync Successful",
UnableToSync: "Unable to sync",
InvalidUrl: "Invalid URL",
};
1 change: 0 additions & 1 deletion src/translations/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
fr,
indo,
"in-ID": indo,
pt,
"pt-BR": pt,
"pt-PT": pt,
};

0 comments on commit b9fa5a3

Please sign in to comment.