NooTheme Premium WordPress Theme › Forums › LandMark › TRANSLATE COUNTRY OPTIONS
This topic is: not resolved
- This topic has 1 reply, 2 voices, and was last updated 4 years ago by dangdv.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
4 years ago #1209027
Hello,
Could you tell me where I can translate the country options, when including a new property?
I need to translate from BRAZIL to BRASIL, for example.
Thank you, guys.
Attachments:
You must be logged in to view attached files.4 years ago #1209049Dear, you can change to your langauge with hook filter list contry of Realty Portal plugin. Please install and siwtch your site to use Landmark Child Theme then add custom code to file functions.php of Landmark Child Theme
add_filter('rp_list_country',function(){ $list_country = array( array( 'label' => 'Afghanistan', 'value' => 'AF', ), array( 'label' => 'Åland Islands', 'value' => 'AX', ), array( 'label' => 'Albania', 'value' => 'AL', ), array( 'label' => 'Algeria', 'value' => 'DZ', ), array( 'label' => 'American Samoa', 'value' => 'AS', ), array( 'label' => 'Andorra', 'value' => 'AD', ), array( 'label' => 'Angola', 'value' => 'AO', ), array( 'label' => 'Anguilla', 'value' => 'AI', ), array( 'label' => 'Antarctica', 'value' => 'AQ', ), array( 'label' => 'Antigua and Barbuda', 'value' => 'AG', ), array( 'label' => 'Argentina', 'value' => 'AR', ), array( 'label' => 'Armenia', 'value' => 'AM', ), array( 'label' => 'Aruba', 'value' => 'AW', ), array( 'label' => 'Australia', 'value' => 'AU', ), array( 'label' => 'Austria', 'value' => 'AT', ), array( 'label' => 'Azerbaijan', 'value' => 'AZ', ), array( 'label' => 'Bahamas', 'value' => 'BS', ), array( 'label' => 'Bahrain', 'value' => 'BH', ), array( 'label' => 'Bangladesh', 'value' => 'BD', ), array( 'label' => 'Barbados', 'value' => 'BB', ), array( 'label' => 'Belarus', 'value' => 'BY', ), array( 'label' => 'Belgium', 'value' => 'BE', ), array( 'label' => 'Belize', 'value' => 'BZ', ), array( 'label' => 'Benin', 'value' => 'BJ', ), array( 'label' => 'Bermuda', 'value' => 'BM', ), array( 'label' => 'Bhutan', 'value' => 'BT', ), array( 'label' => 'Bolivia, Plurinational State of', 'value' => 'BO', ), array( 'label' => 'Bonaire, Sint Eustatius and Saba', 'value' => 'BQ', ), array( 'label' => 'Bosnia and Herzegovina', 'value' => 'BA', ), array( 'label' => 'Botswana', 'value' => 'BW', ), array( 'label' => 'Bouvet Island', 'value' => 'BV', ), array( 'label' => 'Brazil', 'value' => 'BR', ), array( 'label' => 'British Indian Ocean Territory', 'value' => 'IO', ), array( 'label' => 'Brunei Darussalam', 'value' => 'BN', ), array( 'label' => 'Bulgaria', 'value' => 'BG', ), array( 'label' => 'Burkina Faso', 'value' => 'BF', ), array( 'label' => 'Burundi', 'value' => 'BI', ), array( 'label' => 'Cambodia', 'value' => 'KH', ), array( 'label' => 'Cameroon', 'value' => 'CM', ), array( 'label' => 'Canada', 'value' => 'CA', ), array( 'label' => 'Cape Verde', 'value' => 'CV', ), array( 'label' => 'Cayman Islands', 'value' => 'KY', ), array( 'label' => 'Central African Republic', 'value' => 'CF', ), array( 'label' => 'Chad', 'value' => 'TD', ), array( 'label' => 'Chile', 'value' => 'CL', ), array( 'label' => 'China', 'value' => 'CN', ), array( 'label' => 'Christmas Island', 'value' => 'CX', ), array( 'label' => 'Cocos (Keeling) Islands', 'value' => 'CC', ), array( 'label' => 'Colombia', 'value' => 'CO', ), array( 'label' => 'Comoros', 'value' => 'KM', ), array( 'label' => 'Congo', 'value' => 'CG', ), array( 'label' => 'Congo, the Democratic Republic of the', 'value' => 'CD', ), array( 'label' => 'Cook Islands', 'value' => 'CK', ), array( 'label' => 'Costa Rica', 'value' => 'CR', ), array( 'label' => 'Côte d\'Ivoire', 'value' => 'CI', ), array( 'label' => 'Croatia', 'value' => 'HR', ), array( 'label' => 'Cuba', 'value' => 'CU', ), array( 'label' => 'Curaçao', 'value' => 'CW', ), array( 'label' => 'Cyprus', 'value' => 'CY', ), array( 'label' => 'Czech Republic', 'value' => 'CZ', ), array( 'label' => 'Denmark', 'value' => 'DK', ), array( 'label' => 'Djibouti', 'value' => 'DJ', ), array( 'label' => 'Dominica', 'value' => 'DM', ), array( 'label' => 'Dominican Republic', 'value' => 'DO', ), array( 'label' => 'Ecuador', 'value' => 'EC', ), array( 'label' => 'Egypt', 'value' => 'EG', ), array( 'label' => 'El Salvador', 'value' => 'SV', ), array( 'label' => 'Equatorial Guinea', 'value' => 'GQ', ), array( 'label' => 'Eritrea', 'value' => 'ER', ), array( 'label' => 'Estonia', 'value' => 'EE', ), array( 'label' => 'Ethiopia', 'value' => 'ET', ), array( 'label' => 'Falkland Islands (Malvinas)', 'value' => 'FK', ), array( 'label' => 'Faroe Islands', 'value' => 'FO', ), array( 'label' => 'Fiji', 'value' => 'FJ', ), array( 'label' => 'Finland', 'value' => 'FI', ), array( 'label' => 'France', 'value' => 'FR', ), array( 'label' => 'French Guiana', 'value' => 'GF', ), array( 'label' => 'French Polynesia', 'value' => 'PF', ), array( 'label' => 'French Southern Territories', 'value' => 'TF', ), array( 'label' => 'Gabon', 'value' => 'GA', ), array( 'label' => 'Gambia', 'value' => 'GM', ), array( 'label' => 'Georgia', 'value' => 'GE', ), array( 'label' => 'Germany', 'value' => 'DE', ), array( 'label' => 'Ghana', 'value' => 'GH', ), array( 'label' => 'Gibraltar', 'value' => 'GI', ), array( 'label' => 'Greece', 'value' => 'GR', ), array( 'label' => 'Greenland', 'value' => 'GL', ), array( 'label' => 'Grenada', 'value' => 'GD', ), array( 'label' => 'Guadeloupe', 'value' => 'GP', ), array( 'label' => 'Guam', 'value' => 'GU', ), array( 'label' => 'Guatemala', 'value' => 'GT', ), array( 'label' => 'Guernsey', 'value' => 'GG', ), array( 'label' => 'Guinea', 'value' => 'GN', ), array( 'label' => 'Guinea-Bissau', 'value' => 'GW', ), array( 'label' => 'Guyana', 'value' => 'GY', ), array( 'label' => 'Haiti', 'value' => 'HT', ), array( 'label' => 'Heard Island and McDonald Islands', 'value' => 'HM', ), array( 'label' => 'Holy See (Vatican City State)', 'value' => 'VA', ), array( 'label' => 'Honduras', 'value' => 'HN', ), array( 'label' => 'Hong Kong', 'value' => 'HK', ), array( 'label' => 'Hungary', 'value' => 'HU', ), array( 'label' => 'Iceland', 'value' => 'IS', ), array( 'label' => 'India', 'value' => 'IN', ), array( 'label' => 'Indonesia', 'value' => 'ID', ), array( 'label' => 'Iran, Islamic Republic of', 'value' => 'IR', ), array( 'label' => 'Iraq', 'value' => 'IQ', ), array( 'label' => 'Ireland', 'value' => 'IE', ), array( 'label' => 'Isle of Man', 'value' => 'IM', ), array( 'label' => 'Israel', 'value' => 'IL', ), array( 'label' => 'Italy', 'value' => 'IT', ), array( 'label' => 'Jamaica', 'value' => 'JM', ), array( 'label' => 'Japan', 'value' => 'JP', ), array( 'label' => 'Jersey', 'value' => 'JE', ), array( 'label' => 'Jordan', 'value' => 'JO', ), array( 'label' => 'Kazakhstan', 'value' => 'KZ', ), array( 'label' => 'Kenya', 'value' => 'KE', ), array( 'label' => 'Kiribati', 'value' => 'KI', ), array( 'label' => 'Korea, Democratic People\'s Republic of', 'value' => 'KP', ), array( 'label' => 'Korea, Republic of', 'value' => 'KR', ), array( 'label' => 'Kuwait', 'value' => 'KW', ), array( 'label' => 'Kyrgyzstan', 'value' => 'KG', ), array( 'label' => 'Lao People\'s Democratic Republic', 'value' => 'LA', ), array( 'label' => 'Latvia', 'value' => 'LV', ), array( 'label' => 'Lebanon', 'value' => 'LB', ), array( 'label' => 'Lesotho', 'value' => 'LS', ), array( 'label' => 'Liberia', 'value' => 'LR', ), array( 'label' => 'Libya', 'value' => 'LY', ), array( 'label' => 'Liechtenstein', 'value' => 'LI', ), array( 'label' => 'Lithuania', 'value' => 'LT', ), array( 'label' => 'Luxembourg', 'value' => 'LU', ), array( 'label' => 'Macao', 'value' => 'MO', ), array( 'label' => 'Macedonia, the Former Yugoslav Republic of', 'value' => 'MK', ), array( 'label' => 'Madagascar', 'value' => 'MG', ), array( 'label' => 'Malawi', 'value' => 'MW', ), array( 'label' => 'Malaysia', 'value' => 'MY', ), array( 'label' => 'Maldives', 'value' => 'MV', ), array( 'label' => 'Mali', 'value' => 'ML', ), array( 'label' => 'Malta', 'value' => 'MT', ), array( 'label' => 'Marshall Islands', 'value' => 'MH', ), array( 'label' => 'Martinique', 'value' => 'MQ', ), array( 'label' => 'Mauritania', 'value' => 'MR', ), array( 'label' => 'Mauritius', 'value' => 'MU', ), array( 'label' => 'Mayotte', 'value' => 'YT', ), array( 'label' => 'Mexico', 'value' => 'MX', ), array( 'label' => 'Micronesia, Federated States of', 'value' => 'FM', ), array( 'label' => 'Moldova, Republic of', 'value' => 'MD', ), array( 'label' => 'Monaco', 'value' => 'MC', ), array( 'label' => 'Mongolia', 'value' => 'MN', ), array( 'label' => 'Montenegro', 'value' => 'ME', ), array( 'label' => 'Montserrat', 'value' => 'MS', ), array( 'label' => 'Morocco', 'value' => 'MA', ), array( 'label' => 'Mozambique', 'value' => 'MZ', ), array( 'label' => 'Myanmar', 'value' => 'MM', ), array( 'label' => 'Namibia', 'value' => 'NA', ), array( 'label' => 'Nauru', 'value' => 'NR', ), array( 'label' => 'Nepal', 'value' => 'NP', ), array( 'label' => 'Netherlands', 'value' => 'NL', ), array( 'label' => 'New Caledonia', 'value' => 'NC', ), array( 'label' => 'New Zealand', 'value' => 'NZ', ), array( 'label' => 'Nicaragua', 'value' => 'NI', ), array( 'label' => 'Niger', 'value' => 'NE', ), array( 'label' => 'Nigeria', 'value' => 'NG', ), array( 'label' => 'Niue', 'value' => 'NU', ), array( 'label' => 'Norfolk Island', 'value' => 'NF', ), array( 'label' => 'Northern Mariana Islands', 'value' => 'MP', ), array( 'label' => 'Norway', 'value' => 'NO', ), array( 'label' => 'Oman', 'value' => 'OM', ), array( 'label' => 'Pakistan', 'value' => 'PK', ), array( 'label' => 'Palau', 'value' => 'PW', ), array( 'label' => 'Palestine, State of', 'value' => 'PS', ), array( 'label' => 'Panama', 'value' => 'PA', ), array( 'label' => 'Papua New Guinea', 'value' => 'PG', ), array( 'label' => 'Paraguay', 'value' => 'PY', ), array( 'label' => 'Peru', 'value' => 'PE', ), array( 'label' => 'Philippines', 'value' => 'PH', ), array( 'label' => 'Pitcairn', 'value' => 'PN', ), array( 'label' => 'Poland', 'value' => 'PL', ), array( 'label' => 'Portugal', 'value' => 'PT', ), array( 'label' => 'Puerto Rico', 'value' => 'PR', ), array( 'label' => 'Qatar', 'value' => 'QA', ), array( 'label' => 'Réunion', 'value' => 'RE', ), array( 'label' => 'Romania', 'value' => 'RO', ), array( 'label' => 'Russian Federation', 'value' => 'RU', ), array( 'label' => 'Rwanda', 'value' => 'RW', ), array( 'label' => 'Saint Barthélemy', 'value' => 'BL', ), array( 'label' => 'Saint Helena, Ascension and Tristan da Cunha', 'value' => 'SH', ), array( 'label' => 'Saint Kitts and Nevis', 'value' => 'KN', ), array( 'label' => 'Saint Lucia', 'value' => 'LC', ), array( 'label' => 'Saint Martin (French part)', 'value' => 'MF', ), array( 'label' => 'Saint Pierre and Miquelon', 'value' => 'PM', ), array( 'label' => 'Saint Vincent and the Grenadines', 'value' => 'VC', ), array( 'label' => 'Samoa', 'value' => 'WS', ), array( 'label' => 'San Marino', 'value' => 'SM', ), array( 'label' => 'Sao Tome and Principe', 'value' => 'ST', ), array( 'label' => 'Saudi Arabia', 'value' => 'SA', ), array( 'label' => 'Senegal', 'value' => 'SN', ), array( 'label' => 'Serbia', 'value' => 'RS', ), array( 'label' => 'Seychelles', 'value' => 'SC', ), array( 'label' => 'Sierra Leone', 'value' => 'SL', ), array( 'label' => 'Singapore', 'value' => 'SG', ), array( 'label' => 'Sint Maarten (Dutch part)', 'value' => 'SX', ), array( 'label' => 'Slovakia', 'value' => 'SK', ), array( 'label' => 'Slovenia', 'value' => 'SI', ), array( 'label' => 'Solomon Islands', 'value' => 'SB', ), array( 'label' => 'Somalia', 'value' => 'SO', ), array( 'label' => 'South Africa', 'value' => 'ZA', ), array( 'label' => 'South Georgia and the South Sandwich Islands', 'value' => 'GS', ), array( 'label' => 'South Sudan', 'value' => 'SS', ), array( 'label' => 'Spain', 'value' => 'ES', ), array( 'label' => 'Sri Lanka', 'value' => 'LK', ), array( 'label' => 'Sudan', 'value' => 'SD', ), array( 'label' => 'Suriname', 'value' => 'SR', ), array( 'label' => 'Svalbard and Jan Mayen', 'value' => 'SJ', ), array( 'label' => 'Swaziland', 'value' => 'SZ', ), array( 'label' => 'Sweden', 'value' => 'SE', ), array( 'label' => 'Switzerland', 'value' => 'CH', ), array( 'label' => 'Syrian Arab Republic', 'value' => 'SY', ), array( 'label' => 'Taiwan, Province of China', 'value' => 'TW', ), array( 'label' => 'Tajikistan', 'value' => 'TJ', ), array( 'label' => 'Tanzania, United Republic of', 'value' => 'TZ', ), array( 'label' => 'Thailand', 'value' => 'TH', ), array( 'label' => 'Timor-Leste', 'value' => 'TL', ), array( 'label' => 'Togo', 'value' => 'TG', ), array( 'label' => 'Tokelau', 'value' => 'TK', ), array( 'label' => 'Tonga', 'value' => 'TO', ), array( 'label' => 'Trinidad and Tobago', 'value' => 'TT', ), array( 'label' => 'Tunisia', 'value' => 'TN', ), array( 'label' => 'Turkey', 'value' => 'TR', ), array( 'label' => 'Turkmenistan', 'value' => 'TM', ), array( 'label' => 'Turks and Caicos Islands', 'value' => 'TC', ), array( 'label' => 'Tuvalu', 'value' => 'TV', ), array( 'label' => 'Uganda', 'value' => 'UG', ), array( 'label' => 'Ukraine', 'value' => 'UA', ), array( 'label' => 'United Arab Emirates', 'value' => 'AE', ), array( 'label' => 'United Kingdom', 'value' => 'GB', ), array( 'label' => 'United States', 'value' => 'US', ), array( 'label' => 'United States Minor Outlying Islands', 'value' => 'UM', ), array( 'label' => 'Uruguay', 'value' => 'UY', ), array( 'label' => 'Uzbekistan', 'value' => 'UZ', ), array( 'label' => 'Vanuatu', 'value' => 'VU', ), array( 'label' => 'Venezuela, Bolivarian Republic of', 'value' => 'VE', ), array( 'label' => 'Việt Nam', 'value' => 'VN', ), array( 'label' => 'Virgin Islands, British', 'value' => 'VG', ), array( 'label' => 'Virgin Islands, U.S.', 'value' => 'VI', ), array( 'label' => 'Wallis and Futuna', 'value' => 'WF', ), array( 'label' => 'Western Sahara', 'value' => 'EH', ), array( 'label' => 'Yemen', 'value' => 'YE', ), array( 'label' => 'Zambia', 'value' => 'ZM', ), array( 'label' => 'Zimbabwe', 'value' => 'Z', ), ); return $list_country; });
Then you can change BRAZIL to BRASIL in custom code.
Best regards.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in and have valid license to reply to this topic.