Needs review
Project:
Language Icons
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2014 at 00:59 UTC
Updated:
11 Dec 2014 at 22:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
geek-merlinComment #2
geek-merlinThis patch implements a fallback
* foo-bar => foo
* if there's no foo flag, it shows "unknown" flag
Used that on a live site.
Comment #3
Freso commentedI like the premise of this patch, but it would be good to get some more testing of it. (And perhaps a unit test or two as well.)
Comment #4
mustanggb commentedWhat about having a separate function to get the image path, this way other modules (lang_dropdown) can benefit from being told the correct image to use.
Comment #5
mustanggb commentedSorry for not rolling this into a patch, I'm not able to at the moment, but I was thinking something like this: