forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 language => Topic started by: Camiii on August 15, 2021, 10:52:55 pm

Title: Problem with util.php translation when translating to brazilian portuguese
Post by: Camiii on August 15, 2021, 10:52:55 pm
Hi, everyone!

I updated my gallery to Coppermine 1.6 and it bothered me that there was no brazilian portuguese translation. I searched on this board and read Coppermine help on how to start translating it and I did it comparing the translation from Coppermine 1.5 and adding some news ones. The problem is even if I have the "block" util.php translated to brazilian portuguese, it doesn't translate on my gallery. I thought it could be that I had messed up the file at some point, so I checked bit by bit if the translation was working and it was. I even translated just the util.php lines and nothing changed.

Do you know what could be wrong? I tried to attach my translation file below, but couldn't so here it is: https://www.sendspace.com/file/d0qrn6
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: ron4mac on August 16, 2021, 01:55:11 pm
I don't find anything wrong with the language file. Are you saying that you see brazilian-portuguese for everything but phrases for util*. ?
Link to gallery?
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: Camiii on August 16, 2021, 04:36:27 pm
No, no. I see everything in brazilian portuguese but the util.php page. The title fot that page works and some other lines too, like the notices when you finished updating thumbnails and resized images, but the options on that page are all still in english.  :-\

The link to the gallery is www.stana-katic.com.br/galeria but I don't think you'll be able to see it...
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: ron4mac on August 16, 2021, 04:57:26 pm
If you view the gallery with a different theme:  https://www.stana-katic.com.br/galeria/?theme=water_drop
you can see some misplaced statistics at the top of the page.
For me, viewing the site in english, the text there is in brazilian-portuguese. Perhaps that could be a hint to you why there is some other problem.
You may have a plugin or modified core file causing issues.
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: Camiii on August 16, 2021, 05:34:39 pm
Oh, I see it. That was just a custom header file that was set on my configurations and that I hadn't removed from it. But I'm gonna try turning off all my plugins and see if the translation file works as expected on water_drop theme.
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: ron4mac on August 16, 2021, 06:15:03 pm
I'm sorry for the confusion. It slipped my mind about changes made for admin tools.
Admin tools are now more like plugins. Individual language files (other than english) for each tool must be present in the tool specific folder.
See tools/del_orphans
Text values present in each tool .php file will need to be entered in a tool specific language file.
Title: Re: Problem with util.php translation when translating to brazilian portuguese
Post by: Camiii on August 16, 2021, 06:38:50 pm
Oh, that was it! I'm gonna check those files and translate them. Thank you!!