Problem/Motivation
The commerce_canadapost_get_language() only takes into account two letter language codes. It should use the en-CA/fr-CA if they exist. I've got a en-CA and en-US site that will likely grow to include fr-CA soon.
Proposed resolution
Check string length and return full code from that function.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | interdiff.txt | 523 bytes | joelpittet |
| #2 | 2429011-2.patch | 1.23 KB | joelpittet |
| #1 | 2429011-1.patch | 1.23 KB | joelpittet |
Comments
Comment #1
joelpittetHere's what I'm thinking. The lower case cache id doesn't matter and this should keep some backwards compatibility with the two character fr code.
Comment #2
joelpittetWhoops made a syntax error.
Comment #4
iswilson commentedCommitted, thanks again.
There's a whole bunch of fr-XX language codes, so I made it compare the first two letters instead of the entire thing.