From c5f8b2170346daf172d693b2af33359b8f24439a Mon Sep 17 00:00:00 2001 From: objecttothis Date: Sat, 10 Dec 2022 11:24:34 +0400 Subject: [PATCH] Update language strings to CI4 format - replaced %1, etc with {0} - May need to do this in other language files. --- app/Language/en-US/Attributes.php | 2 +- app/Language/en-US/Common.php | 2 +- app/Language/en-US/Giftcards.php | 4 ++-- app/Language/en-US/Items.php | 2 +- app/Language/en-US/Login.php | 2 +- app/Language/en-US/Sales.php | 4 ++-- app/Language/en-US/Taxes.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Language/en-US/Attributes.php b/app/Language/en-US/Attributes.php index f0dc10afd..0b119f69d 100644 --- a/app/Language/en-US/Attributes.php +++ b/app/Language/en-US/Attributes.php @@ -4,7 +4,7 @@ return [ "confirm_delete" => "Are you sure you want to delete the selected attribute(s)?", "confirm_restore" => "Are you sure you want to restore the selected attribute(s)?", "definition_cannot_be_deleted" => "Could not delete selected attribute(s)", - "definition_error_adding_updating" => "Attribute %1 could not be added or updated. Please check the error log.", + "definition_error_adding_updating" => "Attribute {0} could not be added or updated. Please check the error log.", "definition_flags" => "Attribute Visibility", "definition_group" => "Group", "definition_id" => "Id", diff --git a/app/Language/en-US/Common.php b/app/Language/en-US/Common.php index 689ed059b..3afe8e3a9 100644 --- a/app/Language/en-US/Common.php +++ b/app/Language/en-US/Common.php @@ -10,7 +10,7 @@ return [ "comments" => "Comments", "common" => "common", "confirm_search" => "You have selected one or more rows, these will no longer be selected after your search. Are you sure you want to submit this search?", - "copyrights" => "© 2010 - %1", + "copyrights" => "© 2010 - {0}", "correct_errors" => "Please correct identified errors before saving", "country" => "Country", "dashboard" => "", diff --git a/app/Language/en-US/Giftcards.php b/app/Language/en-US/Giftcards.php index 4e868d976..792980e4f 100644 --- a/app/Language/en-US/Giftcards.php +++ b/app/Language/en-US/Giftcards.php @@ -5,7 +5,7 @@ return [ "bulk_edit" => "Bulk Edit", "cannot_be_deleted" => "Could not delete selected Gift Card(s), one or more of the selected Gift Cards has sales.", "cannot_find_giftcard" => "Gift Card not found.", - "cannot_use" => "Gift Card %1 cannot be used for this sale: invalid Customer.", + "cannot_use" => "Gift Card {0} cannot be used for this sale: invalid Customer.", "card_value" => "Value", "category" => "Category", "change_all_to_allow_alt_desc" => "Allow alternate description for all.", @@ -47,7 +47,7 @@ return [ "person_id" => "Customer", "quantity" => "Quantity", "quantity_required" => "Quantity is a required field. Please close (X) to cancel.", - "remaining_balance" => "Gift Card %1 remaining value is %2!", + "remaining_balance" => "Gift Card {0} remaining value is {1}!", "reorder_level" => "Reorder Level", "retrive_giftcard_info" => "Retrieve Gift Card Info", "sales_tax_1" => "Sales Tax", diff --git a/app/Language/en-US/Items.php b/app/Language/en-US/Items.php index b79067459..dd253c8ab 100644 --- a/app/Language/en-US/Items.php +++ b/app/Language/en-US/Items.php @@ -26,7 +26,7 @@ return [ "count" => "Update Inventory", "csv_import_failed" => "CSV import failed", "csv_import_nodata_wrongformat" => "The uploaded CSV file has no data or is formatted incorrectly.", - "csv_import_partially_failed" => "There were %1 item import failure(s) on line(s): %2. No rows were imported.", + "csv_import_partially_failed" => "There were {0} item import failure(s) on line(s): {1}. No rows were imported.", "csv_import_success" => "Item CSV import successful.", "current_quantity" => "Current Quantity", "default_pack_name" => "Each", diff --git a/app/Language/en-US/Login.php b/app/Language/en-US/Login.php index 132fb169f..3780ebe1c 100644 --- a/app/Language/en-US/Login.php +++ b/app/Language/en-US/Login.php @@ -7,7 +7,7 @@ return [ "invalid_username_and_password" => "Invalid username and/or password.", "login" => "Login", "logout" => "Logout", - "migration_needed" => "A database migration to %1 will start after login.", + "migration_needed" => "A database migration to {0} will start after login.", "password" => "Password", "username" => "Username", "welcome" => "Welcome to {install_name}", diff --git a/app/Language/en-US/Sales.php b/app/Language/en-US/Sales.php index 7f11cab40..2c1ba289d 100644 --- a/app/Language/en-US/Sales.php +++ b/app/Language/en-US/Sales.php @@ -89,7 +89,7 @@ return [ "invoice_filter" => "Invoices", "invoice_no_email" => "This customer does not have a valid email address.", "invoice_number" => "Invoice #", - "invoice_number_duplicate" => "Invoice Number %1 must be unique.", + "invoice_number_duplicate" => "Invoice Number {0} must be unique.", "invoice_sent" => "Invoice sent to", "invoice_total" => "Invoice Total", "invoice_type_custom_invoice" => "Custom Invoice (custom_invoice.php)", @@ -148,7 +148,7 @@ return [ "quantity" => "Quantity", "quantity_less_than_reorder_level" => "Warning: Desired Quantity is below Reorder Level for that Item.", "quantity_less_than_zero" => "Warning: Desired Quantity is insufficient. You can still process the sale, but audit your inventory.", - "quantity_of_items" => "Quantity of %1 Items", + "quantity_of_items" => "Quantity of {0} Items", "quote" => "Quote", "quote_number" => "Quote Number", "quote_number_duplicate" => "Quote Number must be unique.", diff --git a/app/Language/en-US/Taxes.php b/app/Language/en-US/Taxes.php index efe755230..cd1939fe2 100644 --- a/app/Language/en-US/Taxes.php +++ b/app/Language/en-US/Taxes.php @@ -55,7 +55,7 @@ return [ "tax_codes_saved_unsuccessfully" => "Tax Code changes not saved", "tax_excluded" => "Tax excluded", "tax_group" => "Tax Group", - "tax_group_not_unique" => "Tax Group %1 is not unique", + "tax_group_not_unique" => "Tax Group {0} is not unique", "tax_group_sequence" => "Tax Group Sequence", "tax_included" => "Tax included", "tax_jurisdiction" => "Tax Jurisdiction",