Skip to content

Instantly share code, notes, and snippets.

@howkymike
Last active August 22, 2022 09:33
Show Gist options
  • Save howkymike/eeb22ab120340e57a4086e9c6bd32708 to your computer and use it in GitHub Desktop.
Save howkymike/eeb22ab120340e57a4086e9c6bd32708 to your computer and use it in GitHub Desktop.
Alfresco Country constraint with I18N sorted by english names
<!-- MODEL -->
<constraints>
<constraint name="howkymike:countryOptions" type="LIST">
<title>Countries list</title>
<parameter name="allowedValues">
<list>
<value>AF</value>
<value>AX</value>
<value>AL</value>
<value>DZ</value>
<value>AS</value>
<value>AD</value>
<value>AO</value>
<value>AI</value>
<value>AQ</value>
<value>AG</value>
<value>AR</value>
<value>AM</value>
<value>AW</value>
<value>AU</value>
<value>AT</value>
<value>AZ</value>
<value>BS</value>
<value>BH</value>
<value>BD</value>
<value>BB</value>
<value>BY</value>
<value>BE</value>
<value>BZ</value>
<value>BJ</value>
<value>BM</value>
<value>BT</value>
<value>BO</value>
<value>BQ</value>
<value>BA</value>
<value>BW</value>
<value>BV</value>
<value>BR</value>
<value>IO</value>
<value>BN</value>
<value>BG</value>
<value>BF</value>
<value>BI</value>
<value>KH</value>
<value>CM</value>
<value>CA</value>
<value>CV</value>
<value>KY</value>
<value>CF</value>
<value>TD</value>
<value>CL</value>
<value>CN</value>
<value>CX</value>
<value>CC</value>
<value>CO</value>
<value>KM</value>
<value>CG</value>
<value>CD</value>
<value>CK</value>
<value>CR</value>
<value>CI</value>
<value>HR</value>
<value>CU</value>
<value>CW</value>
<value>CY</value>
<value>CZ</value>
<value>DK</value>
<value>DJ</value>
<value>DM</value>
<value>DO</value>
<value>EC</value>
<value>EG</value>
<value>SV</value>
<value>GQ</value>
<value>ER</value>
<value>EE</value>
<value>ET</value>
<value>FK</value>
<value>FO</value>
<value>FJ</value>
<value>FI</value>
<value>FR</value>
<value>GF</value>
<value>PF</value>
<value>TF</value>
<value>GA</value>
<value>GM</value>
<value>GE</value>
<value>DE</value>
<value>GH</value>
<value>GI</value>
<value>GR</value>
<value>GL</value>
<value>GD</value>
<value>GP</value>
<value>GU</value>
<value>GT</value>
<value>GG</value>
<value>GN</value>
<value>GW</value>
<value>GY</value>
<value>HT</value>
<value>HM</value>
<value>VA</value>
<value>HN</value>
<value>HK</value>
<value>HU</value>
<value>IS</value>
<value>IN</value>
<value>ID</value>
<value>IR</value>
<value>IQ</value>
<value>IE</value>
<value>IM</value>
<value>IL</value>
<value>IT</value>
<value>JM</value>
<value>JP</value>
<value>JE</value>
<value>JO</value>
<value>KZ</value>
<value>KE</value>
<value>KI</value>
<value>KP</value>
<value>KR</value>
<value>XK</value>
<value>KW</value>
<value>KG</value>
<value>LA</value>
<value>LV</value>
<value>LB</value>
<value>LS</value>
<value>LR</value>
<value>LY</value>
<value>LI</value>
<value>LT</value>
<value>LU</value>
<value>MO</value>
<value>MK</value>
<value>MG</value>
<value>MW</value>
<value>MY</value>
<value>MV</value>
<value>ML</value>
<value>MT</value>
<value>MH</value>
<value>MQ</value>
<value>MR</value>
<value>MU</value>
<value>YT</value>
<value>MX</value>
<value>FM</value>
<value>MD</value>
<value>MC</value>
<value>MN</value>
<value>ME</value>
<value>MS</value>
<value>MA</value>
<value>MZ</value>
<value>MM</value>
<value>NA</value>
<value>NR</value>
<value>NP</value>
<value>NL</value>
<value>AN</value>
<value>NC</value>
<value>NZ</value>
<value>NI</value>
<value>NE</value>
<value>NG</value>
<value>NU</value>
<value>NF</value>
<value>MP</value>
<value>NO</value>
<value>OM</value>
<value>PK</value>
<value>PW</value>
<value>PS</value>
<value>PA</value>
<value>PG</value>
<value>PY</value>
<value>PE</value>
<value>PH</value>
<value>PN</value>
<value>PL</value>
<value>PT</value>
<value>PR</value>
<value>QA</value>
<value>RE</value>
<value>RO</value>
<value>RU</value>
<value>RW</value>
<value>BL</value>
<value>SH</value>
<value>KN</value>
<value>LC</value>
<value>MF</value>
<value>PM</value>
<value>VC</value>
<value>WS</value>
<value>SM</value>
<value>ST</value>
<value>SA</value>
<value>SN</value>
<value>RS</value>
<value>CS</value>
<value>SC</value>
<value>SL</value>
<value>SG</value>
<value>SX</value>
<value>SK</value>
<value>SI</value>
<value>SB</value>
<value>SO</value>
<value>ZA</value>
<value>GS</value>
<value>SS</value>
<value>ES</value>
<value>LK</value>
<value>SD</value>
<value>SR</value>
<value>SJ</value>
<value>SZ</value>
<value>SE</value>
<value>CH</value>
<value>SY</value>
<value>TW</value>
<value>TJ</value>
<value>TZ</value>
<value>TH</value>
<value>TL</value>
<value>TG</value>
<value>TK</value>
<value>TO</value>
<value>TT</value>
<value>TN</value>
<value>TR</value>
<value>TM</value>
<value>TC</value>
<value>TV</value>
<value>UG</value>
<value>UA</value>
<value>AE</value>
<value>GB</value>
<value>US</value>
<value>UM</value>
<value>UY</value>
<value>UZ</value>
<value>VU</value>
<value>VE</value>
<value>VN</value>
<value>VG</value>
<value>VI</value>
<value>WF</value>
<value>EH</value>
<value>YE</value>
<value>ZM</value>
<value>ZW</value>
</list>
</parameter>
</constraint>
</constraints>
<!-- ENG TRANSLATION -->
listconstraint.howkymike_countryOptions.AF=Afghanistan
listconstraint.howkymike_countryOptions.AX=Aland Islands
listconstraint.howkymike_countryOptions.AL=Albania
listconstraint.howkymike_countryOptions.DZ=Algeria
listconstraint.howkymike_countryOptions.AS=American Samoa
listconstraint.howkymike_countryOptions.AD=Andorra
listconstraint.howkymike_countryOptions.AO=Angola
listconstraint.howkymike_countryOptions.AI=Anguilla
listconstraint.howkymike_countryOptions.AQ=Antarctica
listconstraint.howkymike_countryOptions.AG=Antigua and Barbuda
listconstraint.howkymike_countryOptions.AR=Argentina
listconstraint.howkymike_countryOptions.AM=Armenia
listconstraint.howkymike_countryOptions.AW=Aruba
listconstraint.howkymike_countryOptions.AU=Australia
listconstraint.howkymike_countryOptions.AT=Austria
listconstraint.howkymike_countryOptions.AZ=Azerbaijan
listconstraint.howkymike_countryOptions.BS=Bahamas
listconstraint.howkymike_countryOptions.BH=Bahrain
listconstraint.howkymike_countryOptions.BD=Bangladesh
listconstraint.howkymike_countryOptions.BB=Barbados
listconstraint.howkymike_countryOptions.BY=Belarus
listconstraint.howkymike_countryOptions.BE=Belgium
listconstraint.howkymike_countryOptions.BZ=Belize
listconstraint.howkymike_countryOptions.BJ=Benin
listconstraint.howkymike_countryOptions.BM=Bermuda
listconstraint.howkymike_countryOptions.BT=Bhutan
listconstraint.howkymike_countryOptions.BO=Bolivia
listconstraint.howkymike_countryOptions.BQ=Bonaire, Sint Eustatius and Saba
listconstraint.howkymike_countryOptions.BA=Bosnia and Herzegovina
listconstraint.howkymike_countryOptions.BW=Botswana
listconstraint.howkymike_countryOptions.BV=Bouvet Island
listconstraint.howkymike_countryOptions.BR=Brazil
listconstraint.howkymike_countryOptions.IO=British Indian Ocean Territory
listconstraint.howkymike_countryOptions.BN=Brunei Darussalam
listconstraint.howkymike_countryOptions.BG=Bulgaria
listconstraint.howkymike_countryOptions.BF=Burkina Faso
listconstraint.howkymike_countryOptions.BI=Burundi
listconstraint.howkymike_countryOptions.KH=Cambodia
listconstraint.howkymike_countryOptions.CM=Cameroon
listconstraint.howkymike_countryOptions.CA=Canada
listconstraint.howkymike_countryOptions.CV=Cape Verde
listconstraint.howkymike_countryOptions.KY=Cayman Islands
listconstraint.howkymike_countryOptions.CF=Central African Republic
listconstraint.howkymike_countryOptions.TD=Chad
listconstraint.howkymike_countryOptions.CL=Chile
listconstraint.howkymike_countryOptions.CN=China
listconstraint.howkymike_countryOptions.CX=Christmas Island
listconstraint.howkymike_countryOptions.CC=Cocos (Keeling) Islands
listconstraint.howkymike_countryOptions.CO=Colombia
listconstraint.howkymike_countryOptions.KM=Comoros
listconstraint.howkymike_countryOptions.CG=Congo
listconstraint.howkymike_countryOptions.CD=Congo, Democratic Republic of the Congo
listconstraint.howkymike_countryOptions.CK=Cook Islands
listconstraint.howkymike_countryOptions.CR=Costa Rica
listconstraint.howkymike_countryOptions.CI=Cote D'Ivoire
listconstraint.howkymike_countryOptions.HR=Croatia
listconstraint.howkymike_countryOptions.CU=Cuba
listconstraint.howkymike_countryOptions.CW=Curacao
listconstraint.howkymike_countryOptions.CY=Cyprus
listconstraint.howkymike_countryOptions.CZ=Czech Republic
listconstraint.howkymike_countryOptions.DK=Denmark
listconstraint.howkymike_countryOptions.DJ=Djibouti
listconstraint.howkymike_countryOptions.DM=Dominica
listconstraint.howkymike_countryOptions.DO=Dominican Republic
listconstraint.howkymike_countryOptions.EC=Ecuador
listconstraint.howkymike_countryOptions.EG=Egypt
listconstraint.howkymike_countryOptions.SV=El Salvador
listconstraint.howkymike_countryOptions.GQ=Equatorial Guinea
listconstraint.howkymike_countryOptions.ER=Eritrea
listconstraint.howkymike_countryOptions.EE=Estonia
listconstraint.howkymike_countryOptions.ET=Ethiopia
listconstraint.howkymike_countryOptions.FK=Falkland Islands (Malvinas)
listconstraint.howkymike_countryOptions.FO=Faroe Islands
listconstraint.howkymike_countryOptions.FJ=Fiji
listconstraint.howkymike_countryOptions.FI=Finland
listconstraint.howkymike_countryOptions.FR=France
listconstraint.howkymike_countryOptions.GF=French Guiana
listconstraint.howkymike_countryOptions.PF=French Polynesia
listconstraint.howkymike_countryOptions.TF=French Southern Territories
listconstraint.howkymike_countryOptions.GA=Gabon
listconstraint.howkymike_countryOptions.GM=Gambia
listconstraint.howkymike_countryOptions.GE=Georgia
listconstraint.howkymike_countryOptions.DE=Germany
listconstraint.howkymike_countryOptions.GH=Ghana
listconstraint.howkymike_countryOptions.GI=Gibraltar
listconstraint.howkymike_countryOptions.GR=Greece
listconstraint.howkymike_countryOptions.GL=Greenland
listconstraint.howkymike_countryOptions.GD=Grenada
listconstraint.howkymike_countryOptions.GP=Guadeloupe
listconstraint.howkymike_countryOptions.GU=Guam
listconstraint.howkymike_countryOptions.GT=Guatemala
listconstraint.howkymike_countryOptions.GG=Guernsey
listconstraint.howkymike_countryOptions.GN=Guinea
listconstraint.howkymike_countryOptions.GW=Guinea-Bissau
listconstraint.howkymike_countryOptions.GY=Guyana
listconstraint.howkymike_countryOptions.HT=Haiti
listconstraint.howkymike_countryOptions.HM=Heard Island and Mcdonald Islands
listconstraint.howkymike_countryOptions.VA=Holy See (Vatican City State)
listconstraint.howkymike_countryOptions.HN=Honduras
listconstraint.howkymike_countryOptions.HK=Hong Kong
listconstraint.howkymike_countryOptions.HU=Hungary
listconstraint.howkymike_countryOptions.IS=Iceland
listconstraint.howkymike_countryOptions.IN=India
listconstraint.howkymike_countryOptions.ID=Indonesia
listconstraint.howkymike_countryOptions.IR=Iran, Islamic Republic of
listconstraint.howkymike_countryOptions.IQ=Iraq
listconstraint.howkymike_countryOptions.IE=Ireland
listconstraint.howkymike_countryOptions.IM=Isle of Man
listconstraint.howkymike_countryOptions.IL=Israel
listconstraint.howkymike_countryOptions.IT=Italy
listconstraint.howkymike_countryOptions.JM=Jamaica
listconstraint.howkymike_countryOptions.JP=Japan
listconstraint.howkymike_countryOptions.JE=Jersey
listconstraint.howkymike_countryOptions.JO=Jordan
listconstraint.howkymike_countryOptions.KZ=Kazakhstan
listconstraint.howkymike_countryOptions.KE=Kenya
listconstraint.howkymike_countryOptions.KI=Kiribati
listconstraint.howkymike_countryOptions.KP=Korea, Democratic People's Republic of
listconstraint.howkymike_countryOptions.KR=Korea, Republic of
listconstraint.howkymike_countryOptions.XK=Kosovo
listconstraint.howkymike_countryOptions.KW=Kuwait
listconstraint.howkymike_countryOptions.KG=Kyrgyzstan
listconstraint.howkymike_countryOptions.LA=Lao People's Democratic Republic
listconstraint.howkymike_countryOptions.LV=Latvia
listconstraint.howkymike_countryOptions.LB=Lebanon
listconstraint.howkymike_countryOptions.LS=Lesotho
listconstraint.howkymike_countryOptions.LR=Liberia
listconstraint.howkymike_countryOptions.LY=Libyan Arab Jamahiriya
listconstraint.howkymike_countryOptions.LI=Liechtenstein
listconstraint.howkymike_countryOptions.LT=Lithuania
listconstraint.howkymike_countryOptions.LU=Luxembourg
listconstraint.howkymike_countryOptions.MO=Macao
listconstraint.howkymike_countryOptions.MK=Macedonia, the Former Yugoslav Republic of
listconstraint.howkymike_countryOptions.MG=Madagascar
listconstraint.howkymike_countryOptions.MW=Malawi
listconstraint.howkymike_countryOptions.MY=Malaysia
listconstraint.howkymike_countryOptions.MV=Maldives
listconstraint.howkymike_countryOptions.ML=Mali
listconstraint.howkymike_countryOptions.MT=Malta
listconstraint.howkymike_countryOptions.MH=Marshall Islands
listconstraint.howkymike_countryOptions.MQ=Martinique
listconstraint.howkymike_countryOptions.MR=Mauritania
listconstraint.howkymike_countryOptions.MU=Mauritius
listconstraint.howkymike_countryOptions.YT=Mayotte
listconstraint.howkymike_countryOptions.MX=Mexico
listconstraint.howkymike_countryOptions.FM=Micronesia, Federated States of
listconstraint.howkymike_countryOptions.MD=Moldova, Republic of
listconstraint.howkymike_countryOptions.MC=Monaco
listconstraint.howkymike_countryOptions.MN=Mongolia
listconstraint.howkymike_countryOptions.ME=Montenegro
listconstraint.howkymike_countryOptions.MS=Montserrat
listconstraint.howkymike_countryOptions.MA=Morocco
listconstraint.howkymike_countryOptions.MZ=Mozambique
listconstraint.howkymike_countryOptions.MM=Myanmar
listconstraint.howkymike_countryOptions.NA=Namibia
listconstraint.howkymike_countryOptions.NR=Nauru
listconstraint.howkymike_countryOptions.NP=Nepal
listconstraint.howkymike_countryOptions.NL=Netherlands
listconstraint.howkymike_countryOptions.AN=Netherlands Antilles
listconstraint.howkymike_countryOptions.NC=New Caledonia
listconstraint.howkymike_countryOptions.NZ=New Zealand
listconstraint.howkymike_countryOptions.NI=Nicaragua
listconstraint.howkymike_countryOptions.NE=Niger
listconstraint.howkymike_countryOptions.NG=Nigeria
listconstraint.howkymike_countryOptions.NU=Niue
listconstraint.howkymike_countryOptions.NF=Norfolk Island
listconstraint.howkymike_countryOptions.MP=Northern Mariana Islands
listconstraint.howkymike_countryOptions.NO=Norway
listconstraint.howkymike_countryOptions.OM=Oman
listconstraint.howkymike_countryOptions.PK=Pakistan
listconstraint.howkymike_countryOptions.PW=Palau
listconstraint.howkymike_countryOptions.PS=Palestinian Territory, Occupied
listconstraint.howkymike_countryOptions.PA=Panama
listconstraint.howkymike_countryOptions.PG=Papua New Guinea
listconstraint.howkymike_countryOptions.PY=Paraguay
listconstraint.howkymike_countryOptions.PE=Peru
listconstraint.howkymike_countryOptions.PH=Philippines
listconstraint.howkymike_countryOptions.PN=Pitcairn
listconstraint.howkymike_countryOptions.PL=Poland
listconstraint.howkymike_countryOptions.PT=Portugal
listconstraint.howkymike_countryOptions.PR=Puerto Rico
listconstraint.howkymike_countryOptions.QA=Qatar
listconstraint.howkymike_countryOptions.RE=Reunion
listconstraint.howkymike_countryOptions.RO=Romania
listconstraint.howkymike_countryOptions.RU=Russian Federation
listconstraint.howkymike_countryOptions.RW=Rwanda
listconstraint.howkymike_countryOptions.BL=Saint Barthelemy
listconstraint.howkymike_countryOptions.SH=Saint Helena
listconstraint.howkymike_countryOptions.KN=Saint Kitts and Nevis
listconstraint.howkymike_countryOptions.LC=Saint Lucia
listconstraint.howkymike_countryOptions.MF=Saint Martin
listconstraint.howkymike_countryOptions.PM=Saint Pierre and Miquelon
listconstraint.howkymike_countryOptions.VC=Saint Vincent and the Grenadines
listconstraint.howkymike_countryOptions.WS=Samoa
listconstraint.howkymike_countryOptions.SM=San Marino
listconstraint.howkymike_countryOptions.ST=Sao Tome and Principe
listconstraint.howkymike_countryOptions.SA=Saudi Arabia
listconstraint.howkymike_countryOptions.SN=Senegal
listconstraint.howkymike_countryOptions.RS=Serbia
listconstraint.howkymike_countryOptions.CS=Serbia and Montenegro
listconstraint.howkymike_countryOptions.SC=Seychelles
listconstraint.howkymike_countryOptions.SL=Sierra Leone
listconstraint.howkymike_countryOptions.SG=Singapore
listconstraint.howkymike_countryOptions.SX=Sint Maarten
listconstraint.howkymike_countryOptions.SK=Slovakia
listconstraint.howkymike_countryOptions.SI=Slovenia
listconstraint.howkymike_countryOptions.SB=Solomon Islands
listconstraint.howkymike_countryOptions.SO=Somalia
listconstraint.howkymike_countryOptions.ZA=South Africa
listconstraint.howkymike_countryOptions.GS=South Georgia and the South Sandwich Islands
listconstraint.howkymike_countryOptions.SS=South Sudan
listconstraint.howkymike_countryOptions.ES=Spain
listconstraint.howkymike_countryOptions.LK=Sri Lanka
listconstraint.howkymike_countryOptions.SD=Sudan
listconstraint.howkymike_countryOptions.SR=Suriname
listconstraint.howkymike_countryOptions.SJ=Svalbard and Jan Mayen
listconstraint.howkymike_countryOptions.SZ=Swaziland
listconstraint.howkymike_countryOptions.SE=Sweden
listconstraint.howkymike_countryOptions.CH=Switzerland
listconstraint.howkymike_countryOptions.SY=Syrian Arab Republic
listconstraint.howkymike_countryOptions.TW=Taiwan, Province of China
listconstraint.howkymike_countryOptions.TJ=Tajikistan
listconstraint.howkymike_countryOptions.TZ=Tanzania, United Republic of
listconstraint.howkymike_countryOptions.TH=Thailand
listconstraint.howkymike_countryOptions.TL=Timor-Leste
listconstraint.howkymike_countryOptions.TG=Togo
listconstraint.howkymike_countryOptions.TK=Tokelau
listconstraint.howkymike_countryOptions.TO=Tonga
listconstraint.howkymike_countryOptions.TT=Trinidad and Tobago
listconstraint.howkymike_countryOptions.TN=Tunisia
listconstraint.howkymike_countryOptions.TR=Turkey
listconstraint.howkymike_countryOptions.TM=Turkmenistan
listconstraint.howkymike_countryOptions.TC=Turks and Caicos Islands
listconstraint.howkymike_countryOptions.TV=Tuvalu
listconstraint.howkymike_countryOptions.UG=Uganda
listconstraint.howkymike_countryOptions.UA=Ukraine
listconstraint.howkymike_countryOptions.AE=United Arab Emirates
listconstraint.howkymike_countryOptions.GB=United Kingdom
listconstraint.howkymike_countryOptions.US=United States
listconstraint.howkymike_countryOptions.UM=United States Minor Outlying Islands
listconstraint.howkymike_countryOptions.UY=Uruguay
listconstraint.howkymike_countryOptions.UZ=Uzbekistan
listconstraint.howkymike_countryOptions.VU=Vanuatu
listconstraint.howkymike_countryOptions.VE=Venezuela
listconstraint.howkymike_countryOptions.VN=Viet Nam
listconstraint.howkymike_countryOptions.VG=Virgin Islands, British
listconstraint.howkymike_countryOptions.VI=Virgin Islands, U.s.
listconstraint.howkymike_countryOptions.WF=Wallis and Futuna
listconstraint.howkymike_countryOptions.EH=Western Sahara
listconstraint.howkymike_countryOptions.YE=Yemen
listconstraint.howkymike_countryOptions.ZM=Zambia
listconstraint.howkymike_countryOptions.ZW=Zimbabwe
@howkymike
Copy link
Author

If you want translations in another language - just copy-paste it to the Google Translate :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment