Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While testing #187398: Re-split locale module I had troubles to perform a translated installation (even with the patch not applied) and I could not understand if the fault was in my po files (it-6.x-1.7.tar.gz with the the profile directory changed from 'default' to 'standard') or in the installer.
After debugging I found that st()
does not seem to take string contexts into account.
Comments
Comment #1
plachThis patch allowed me to have a (partially) translated installation. Forgive me if the fault was in my .po files.
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedIs this the same issue as #654726: Installing Drupal 7 in non-English language doesn't pick up st() installation lists?
If so, probably best to mark this a duplicate and move the patch over there. The bug report and .po file there predates the switch from 'default' to 'standard', so it seems like your patch is indeed on the right track.
Comment #3
andypostCould you provide your .po file? I've tested with russian .po file with minimal install and it works fine
Attached file should be saved into /profiles/minimal/translations/ru.po
Comment #4
plach@andypost: did you test the installation with the patch or without it?
(please let's continue in the other issue)
Comment #5
mgiffordIt would be great if these could be updated to include D7 installation strings. Thanks! They should work in core now but want to test.