This code using the country tag:
<g:country code="ita"/>
Will simple render this:
Italy
In practice, this tag is used to render the country name saved from countrySelect tag. For example, the value saved from this code:
<g:countrySelect name="countryCode" value="${shopInstance?.countryCode}" noSelection="['':'-Choose your country-']"/>
Can be displayed on another page using this:
<g:country code="${shopInstance?.countryCode}"/>
ISO3166_3 Code | Rendered Text |
---|---|
afg | Afghanistan |
alb | Albania |
dza | Algeria |
asm | American Samoa |
and | Andorra |
ago | Angola |
aia | Anguilla |
ata | Antarctica |
atg | Antigua and Barbuda |
arg | Argentina |
arm | Armenia |
abw | Aruba |
aus | Australia |
aut | Austria |
aze | Azerbaijan |
bhs | Bahamas |
bhr | Bahrain |
bgd | Bangladesh |
brb | Barbados |
blr | Belarus |
bel | Belgium |
blz | Belize |
ben | Benin |
bmu | Bermuda |
btn | Bhutan |
bol | Bolivia |
bih | Bosnia and Herzegovina |
bwa | Botswana |
bvt | Bouvet Island |
bra | Brazil |
iot | British Indian Ocean Territory |
vgb | British Virgin Islands |
brn | Brunei Darussalam |
bgr | Bulgaria |
bfa | Burkina Faso |
bdi | Burundi |
khm | Cambodia |
cmr | Cameroon |
can | Canada |
cpv | Cape Verde |
cym | Cayman Islands |
caf | Central African |
tcd | Chad |
chl | Chile |
chn | China |
cxr | Christmas Island |
cck | Cocos (Keeling) Islands |
col | Colombia |
com | Comoros |
cok | Cook Islands |
cri | Costa Rica |
hrv | Croatia |
cub | Cuba |
cyp | Cyprus |
cze | Czech Republic |
civ | Côte d'Ivoire |
prk | Democratic People's Republic of Korea |
dnk | Denmark |
dji | Djibouti |
dma | Dominica |
dom | Dominican Republic |
ecu | Ecuador |
egy | Egypt |
slv | El Salvador |
gnq | Equatorial Guinea |
eri | Eritrea |
est | Estonia |
eth | Ethiopia |
flk | Falkland Islands |
fro | Faroe Islands |
fsm | Federated States of Micronesia |
fji | Fiji |
fin | Finland |
fra | France |
guf | French Guiana |
pyf | French Polynesia |
atf | French Southern Territories |
gab | Gabon |
gmb | Gambia |
geo | Georgia |
deu | Germany |
gha | Ghana |
gib | Gibraltar |
grc | Greece |
grl | Greenland |
grd | Grenada |
glp | Guadeloupe |
gum | Guam |
gtm | Guatemala |
gin | Guinea |
gnb | Guinea-Bissau |
guy | Guyana |
hti | Haiti |
hmd | Heard Island and McDonald Islands |
hnd | Honduras |
hkg | Hong Kong |
hun | Hungary |
isl | Iceland |
ind | India |
idn | Indonesia |
irq | Iraq |
irl | Ireland |
irn | Islamic Republic of Iran |
imn | Isle of Man |
isr | Israel |
ita | Italy |
jam | Jamaica |
jpn | Japan |
jor | Jordan |
kaz | Kazakhstan |
ken | Kenya |
kir | Kiribati |
kwt | Kuwait |
kgz | Kyrgyzstan |
lao | Lao People's Democratic Republic |
lva | Latvia |
lbn | Lebanon |
lso | Lesotho |
lbr | Liberia |
lby | Libyan Arab Jamahiriya |
lie | Liechtenstein |
ltu | Lithuania |
lux | Luxembourg |
mac | Macao |
mdg | Madagascar |
mwi | Malawi |
mys | Malaysia |
mdv | Maldives |
mli | Mali |
mlt | Malta |
mhl | Marshall Islands |
mtq | Martinique |
mrt | Mauritania |
mus | Mauritius |
myt | Mayotte |
mex | Mexico |
mco | Monaco |
mng | Mongolia |
msr | Montserrat |
mar | Morocco |
moz | Mozambique |
mmr | Myanmar |
nam | Namibia |
nru | Nauru |
npl | Nepal |
nld | Netherlands |
ant | Netherlands Antilles |
ncl | New Caledonia |
nzl | New Zealand |
nic | Nicaragua |
ner | Niger |
nga | Nigeria |
niu | Niue |
nfk | Norfolk Island |
mnp | Northern Mariana Islands |
nor | Norway |
pse | Occupied Palestinian Territory |
omn | Oman |
pak | Pakistan |
plw | Palau |
pan | Panama |
png | Papua New Guinea |
pry | Paraguay |
per | Peru |
phl | Philippines |
pcn | Pitcairn |
pol | Poland |
prt | Portugal |
pri | Puerto Rico |
qat | Qatar |
kor | Republic of Korea |
mda | Republic of Moldova |
cog | Republic of the Congo |
rou | Romania |
rus | Russian Federation |
rwa | Rwanda |
reu | Réunion |
shn | Saint Helena |
kna | Saint Kitts and Nevis |
lca | Saint Lucia |
vct | Saint Vincent and the Grenadines |
spm | Saint-Pierre and Miquelon |
wsm | Samoa |
smr | San Marino |
stp | Sao Tome and Principe |
sau | Saudi Arabia |
sen | Senegal |
scg | Serbia and Montenegro |
syc | Seychelles |
sle | Sierra Leone |
sgp | Singapore |
svk | Slovakia |
svn | Slovenia |
slb | Solomon Islands |
som | Somalia |
zaf | South Africa |
sgs | South Georgia and the South Sandwich Islands |
esp | Spain |
lka | Sri Lanka |
sdn | Sudan |
sur | Suriname |
sjm | Svalbard and Jan Mayen |
swz | Swaziland |
swe | Sweden |
che | Switzerland |
syr | Syrian Arab Republic |
twn | Taiwan |
tjk | Tajikistan |
tha | Thailand |
cod | The Democratic Republic Of The Congo |
mkd | The Former Yugoslav Republic of Macedonia |
tls | Timor-Leste |
tgo | Togo |
tkl | Tokelau |
ton | Tonga |
tto | Trinidad and Tobago |
tun | Tunisia |
tur | Turkey |
tkm | Turkmenistan |
tca | Turks and Caicos Islands |
tuv | Tuvalu |
vir | U.S. Virgin Islands |
uga | Uganda |
ukr | Ukraine |
are | United Arab Emirates |
gbr | United Kingdom |
tza | United Republic Of Tanzania |
usa | United States |
umi | United States Minor Outlying Islands |
ury | Uruguay |
uzb | Uzbekistan |
vut | Vanuatu |
vat | Vatican City State |
ven | Venezuela |
vnm | Vietnam |
wlf | Wallis and Futuna |
esh | Western Sahara |
yem | Yemen |
zmb | Zambia |
zwe | Zimbabwe |
ala | Åland Islands |