Wagninger Posted Friday at 08:23 AM Share Posted Friday at 08:23 AM Hello, I am trying and failing to find a certain translation that I want to change. I searched in every module I could think of under "international -> Translations", front end -> current theme, also text search via ftp on the server. The mistranslation is for the login screen: the button "show password" should be "mostra" in italian, but it says spettacolo, which means show in the sense of theatre. Looking at the source code, it shows this: <!-- begin _partials/form-fields.tpl --> <div class="form-group row "> <label class="col-md-3 form-control-label required" for="field-password"> Password </label> <div class="col-md-6"> <div class="input-group js-parent-focus"> <input id="field-password" class="form-control js-child-focus js-visible-password" name="password" title="Almeno 5 caratteri" aria-label="Inserimento password di almeno 5 caratteri" type="password" autocomplete="current-password" value="" pattern=".{5,}" required > <span class="input-group-btn"> <button class="btn" type="button" data-action="show-password" data-text-show="Spettacolo" data-text-hide="Nascondere" > Spettacolo </button> </span> </div> But looking at the file, this word is not in there. How do I translate that? Prestashop version is 8.2.1, if it matters. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted Friday at 08:28 AM Share Posted Friday at 08:28 AM Did you change this file? It seems you have placed the hardcoded text like Spettacolo, Inserimento password di almeno 5 caratteri Hardcoded text can't be translated. It should be like {l s='Show' d='Shop.Theme.Actions'} to allow translation from the back office. Link to comment Share on other sites More sharing options...
Wagninger Posted Friday at 09:40 AM Author Share Posted Friday at 09:40 AM I did not change this file, but I have a web developer who might have… but yourse saying, if I change this string then every translation that I set in the Backoffice will take effect? Which one do I replace? Sorry for all the questions, I’m really out of my depth here. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted Friday at 09:43 AM Share Posted Friday at 09:43 AM Better to restore the file from the actual theme. Are you using the default theme OR something else? If default, share the PS version. I can help with this, and then the translation can be done from the backend. Link to comment Share on other sites More sharing options...
Wagninger Posted Friday at 11:15 AM Author Share Posted Friday at 11:15 AM 1 hour ago, Knowband Plugins said: Better to restore the file from the actual theme. Are you using the default theme OR something else? If default, share the PS version. I can help with this, and then the translation can be done from the backend. I’m using another theme… I’m not sure if the translation was always like this or changed recently, but I was recently made aware of it. Link to comment Share on other sites More sharing options...
El Patron Posted yesterday at 11:36 AM Share Posted yesterday at 11:36 AM o check in database (via phpMyAdmin) Go into phpMyAdmin and open your PrestaShop database. Search in ps_translation (for PS 1.7/8) or in ps_module_lang, ps_lang tables if older versions. Use the “Search” tab in phpMyAdmin → type part of the string → search in all tables. If you find it, you can edit the translation directly in the table (but make a backup first). o check in file system (via hosting/SSH) Connect to your hosting via SSH. Run a recursive search command from the PrestaShop root: grep -R "your text here" . If it’s inside a PHP/Smarty/Twig file, this will show you the path to the file so you can edit it directly. For case-insensitive search (useful for capitalization differences): grep -Ri "your text here" . This way, you’ll quickly know if the string is in the database or hardcoded in a module/theme file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now