After being able to analyze the snapshots you were willing to provide of your current site files:
Lord Phobos wrote: ↑
Wed Oct 17, 2018 9:28 pm
But in italian I see:
Dimensioni massime - larghezza: pixel, altezza: pixel.
The numbers are gone.
I am not versed enough in phpBB extension design to confirm exactly how and why it's able to come into play within the UCP, but the /ext/phpbbGallery/core/language/it/gallery.php module's definition of the $lang interface contains a "PIXELS" array definition which matches & explains the behavior you are seeing with regard to "Dimensioni massime - larghezza: pixel, altezza: pixel."
Meaning the "PIXELS" definition in that array from the phpbbGallery extension's Italian language directory module defines just "pixel"
, and not "%d pixel"
. Which exactly matches the incorrect output that you are seeing. This also explains why I do not see the issue -- even when installing your exact Italian language pack files on my board -- since I do not have the phpbbGallery extension.
It's notable that the official downloads for phpbbGallery 22.214.171.124 (https://www.phpbb.com/customise/db/exte ... b_gallery/
) or the subsequent 1.2.1 through 3.2.2 releases (https://github.com/satanasov/phpbbgallery
) do not actually contain an Italian language directory. So my best guess is that this is an Italian language pack for an older version of the phpbbGallery extension, or a user-contributed Italian language pack for the extension, which defines "PIXELS" as a $lang message in a way that is incompatible with phpbb 3.2.x boards (and maybe even phpBB 3.1.x).
What is clear is that the English language and other languages that are included with phpbbGallery extension installed on your board do not
make this mistaken "PIXELS" $lang definition. Which would apparently explain why the English language or other non-Italian languages are not presenting this issue.
To test and confirm this is the root cause, you should disable or remove the phpbbGallery extension. To determine how to correctly support the Italian language using the current 3.2.2 version of https://github.com/satanasov/phpbbgallery
, you should discuss this point in the phpbbGallery extension discussion area (https://www.phpbb.com/customise/db/exte ... ry/support
) and determine how to attain Italian language support for the current version of this extension.
Lord Phobos wrote: ↑
Thu Oct 18, 2018 1:17 am
I noticed I also have similar placeholder issues elsewhere: the order of last edited in viewtopic is screwed, no number of digits in the registration form...
Modificato l’ultima volta da 3 il Phobos; modificato 18 volte in totale
Modificato l’ultima volta da Phobos il 18 ottobre 2018; modificato 3 volte in totale
This issue is occurring due to a /language/it/viewtopic.php module file on your board which has been modified, and does not match the official 3.2.3 Italian language pack download. Specifically, the EDITED_TIMES_TOTAL definition was changed from:
Code: Select all
'Ultima modifica di %2$s il %3$s, modificato %1$d volta in totale.'
Code: Select all
'Ultima modifica di %1$s il %2$s, modificato %3$d volta in totale.'
That's just wrong in all ways, since not only is the order incorrect for the way EDITED_TIMES_TOTAL is called, but the type specifiers ("d" versus "s") didn't follow the ordered values either. Meaning it's now trying to print a numbers as strings and vice-versa, in addition to wrong values at wrong positions within the message.
You indicated via PM that this modification is due to the "Post Edit Log" extension
. Although you might be more correct than I am able to ascertain, this assertion does not make sense to me. Because I do not expect for the extension installation to modify main phpBB files (as is the extension framework design), and also because I don't see Italian language support for this extension.
Regardless of how it got there though, returning the Italian language definition of EDITED_TIMES_TOTAL in /language/it/viewtopic.php to be 'Ultima modifica di %2$s il %3$s, modificato %1$d volta in totale.'
is the solution. Or, simply re-applying the 3.2.3 Italian language pack files, which already contain this definition.
And same as in the earlier case, consulting with the "Post Edit Log" extension support topic area (https://www.phpbb.com/customise/db/exte ... _2/support
) on how to achieve phpBB 3.2.3 compatibility for this extension, as well as successful Italian language support for this version.
To be clear, the conclusion we have here is not of any problem with the Italian language pack for phpBB 3.2.3, nor with phpBB itself. The issue is with extensions and/or edits made against the Italian language files; in the phpBB language directory for Italian, and in the extension-specific language directories for Italian.