Language Editor
Editing language translations and text strings in OpenCart 4
Video Tutorial
Video: Using the Language Editor in OpenCart 4
Introduction
The Language Editor in OpenCart 4 is a powerful tool that allows you to override any text string in your store without modifying the physical language files. This ensures your customizations are "update-safe," meaning they won't be lost when you upgrade OpenCart or your extensions. It's the ideal way to customize branding, improve messaging, or fix translation errors.
Language Editor List

The Language Editor list shows all the active translation overrides in your store. From this interface, you can:
Add New: Create a new translation override.
Edit: Modify an existing override.
Delete: Remove an override and revert to the default text.
Filter: Search for specific overrides by store, language, or route.
Creating a Translation Override
To change a specific piece of text on your storefront or admin panel, follow these steps:
Select Route and Key
Store: Choose the store where the change should apply.
Language: Select the target language.
Route: Select the page or module where the text is located (e.g.,
common/headerfor the header).Key: Select the specific text variable from the dropdown. OpenCart 4 automatically populates this list based on the Route you selected.
Language Editor Form

Configuration Fields
Store: Allows you to have different text for the same item on different sub-stores.
Language: Essential for multi-language stores to ensure the right translation is updated.
Route: The internal path to the language file. For example,
checkout/checkoutcontains strings for the checkout page.Key: The specific identifier for the text string. In OpenCart 4, this is a searchable dropdown, making it easy to find the exact string you need.
Default: Displays the original text from the language file so you know what you are changing.
Value: Your custom text. This is what will be displayed on the storefront.
Finding the Route: If you're unsure which route contains the text you want to change, look at the URL of the page. For a product page, the route is usually product/product. For the contact page, it's information/contact.
Best Practices
Common Tasks
Warnings and Limitations
Critical Warnings
Placeholders: Never remove or change the order of placeholders like
%s,%d, or{variable}. These are required for the system to insert dynamic data.HTML Tags: Some strings allow HTML, others don't. Adding HTML to a string that doesn't expect it can break the page layout or cause security issues.
Cache: After saving a translation, you may need to clear your theme and SASS cache in the admin dashboard (Developer Settings) to see the changes.
Update Persistence: While Language Editor changes are update-safe, if an extension changes its internal "Key" names in a new version, your old override may stop working.
Troubleshooting
"The Language Editor is the bridge between a generic store and a personalized brand experience. It gives you total control over your store's voice without touching a single line of code."
Last updated