The Portuguese, Portugal should be "pt-pt" (as it has been since the beginning), and not "pt".
Currently there is already a development translation of Portuguese, Portugal on the server, but it doesn't load on the site by selecting "Portuguese, Portugal".
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | install-228761-7.patch | 1.06 KB | roborn |
| #1 | install-228761-1.patch | 536 bytes | josesanmartin |
Comments
Comment #1
josesanmartin commentedI have found the error and created a patch that works for the installer. Actually, it's just an extra "\-" in line 93 of install.php.
Automatic translation importing after module activation should be checked too.
Comment #2
gábor hojtsyThis bug is for the runtime system, http://drupal.org/node/228852 was for the install system. Anyway, since the issue seems to be very similar (but need probably different places to fix), we can merge the two bugs into one here.
Comment #3
mcduarte2000 commentedDo you know when this corrections will be out? In 6.3?
Comment #4
gábor hojtsymcduarte2000: Well, until there is a committed patch, we have no idea when it is going to be released.
Comment #5
introfini commentedHi Gábor,
Isn't this http://drupal.org/node/228761#comment-764169 the patch?
Regards,
introfini
Comment #6
gábor hojtsyWhat about fixing it in the runtime as well? Did you notice the issue there as well (once applied the patch and managed to install a site with it)? José marked his patch needs work, because it is not complete yet.
Comment #7
roborn commentedThe only issue i’ve noticed at runtime was the language name missing.
That's because locale.inc got ‘pt’ only, so locale.install insert empty values into DB.
Here’s a patch (with José's patch included) to correct that :)
Comment #8
borfast commentedI have reviewd this patch, both by looking at the code and by applying it to two sites, and it solves the problem.
Not much more to say other than to thank José San Martin and roborn for their work. Thanks guys!
Now how does this get into core? :)
Comment #11
borfast commentedJust as a note (also noticed by roborn), the two errors reported by DrupalTestbedBot are regarding the first patch, submitted by José San Martin.
The second patch, submitted by roborn, works just fine.
Comment #12
gábor hojtsyOk, I've verified that locale_batch_by_language() and locale_batch_by_component() use the already established language code, so those do not need modification. _locale_batch_import() has a regex on .po files, but that only grabs the language code.
I've also verified that the Portuguese Portugal translation is shipped under the pt-pt name, not simply pt, so looks like we'd better fix that reference in our code.
So looks like these were the only issues. Committed to 6.x! Thanks for the resistance and for driving this home! Moving to 7.x for commit.
Comment #13
introfini commentedGreat Gábor!
Thanks,
introfini
Comment #14
webchickCommitted to 7.x. Thanks!
Comment #15
webchickAlso, that's bugging me. ;)
Comment #16
borfast commentedThanks Gábor and webchick! :)
Comment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.