Jump to content

Not finding a certain translation


Recommended Posts

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.

 

Bildschirmfoto.jpg

Link to comment
Share on other sites

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...