This tutorial will show you how to manage missing translations in osCommerce.
In order to resolve the missing translations issue, you will have to follow the steps below:
Locate the missing translation using the browser Inspector. It should look similar to the following:
Copy the missing element.
Let’s use Total Commander to open the directory with files for your site and go to the Commands -> Search option. Check the ‘Find Text’ box and paste the copied text from the Inspector. Start searching to find a file that already contains this specific text (for example, ‘languages\german\modules\boxes\ bm_categories.php’ file).
Once the search is completed, check the list of founded files carefully. Open the one from the ‘languages’ folder. Use any HTML editor for this (like DreamWeaver, Sublime Text, Notepad++, or any other).
Using the search tool locate the line with copied text from the Inspector. The line should look similar to the following:
define('MODULE_BOXES_HEADER_SHOPPING_CART_BOX_TITLE', 'Warenkorb'); define('MODULE_BOXES_CATEGORIES_TITLE', Kategorien:');
Copy the complete defining line and then go back to the Total Commander. Open the ‘Languages’ directory. Locate the folder for the language with missing translation inside. Find the same directory and file as the one before (for example, ‘languages\english\modules\boxes\ bm_categories.php’ file).
Paste the copied defining line to the file, below the file content. Update the definition with the required one for your language:
Save changes and refresh the store. The title should be updated successfully:
Feel free to check the detailed video tutorial below: