Welcome, Guest. Please login or register.
October 08, 2008, 12:44:38 am
Home Help Search Login Register
News: We are opened!

+  Interdap Forum - official forum of international dating affiliate program INTERDAP
|-+  English speaking
| |-+  About Interdap (Moderator: tribe)
| | |-+  How to display text in different languages
« previous next »
Pages: [1] Go Down Print
Author Topic: How to display text in different languages  (Read 231 times)
tribe
Global Moderator
Member
*****

status: +0/-0
Offline Offline

Posts: 57



View Profile WWW
« on: July 15, 2008, 09:02:00 am »

crib http://interdap.com/tips.php
If you want to display some text or object depending on the language, you must to make changes directly in the text (for example, with changes a footer of the site or editing mainpage) the following condition:
Code:
[if lang=="2" || lang=="11"]
  text1
[elseif lang=="1"]
  text2
[else]
  text3
[endif]
This code give the following possibilities: when visitor looks at the site on Russian or Ukrainian languages, he would seem text1, if in English - text2, for all other languages text3. You can specify the text for each language individually.
The main thing is to closely follow the syntax! "||" - it means symbol "or".
Every language has its own number:
English - 1
Russian - 2
French - 3
Italian - 6
Spanish - 7
Ukrainian - 10
Turkish - 11
Bulgarian - 12
Greek - 13
Czech - 14
Similarly as with languages, you can conclude a certain texts (like advertising) depending on the visitors country.
To do this, you need to set the following condition:
Code:
[if ip=="RU,UA,BY"]
  text1
[elseif ip=="US,CA"]
  text2
[elseif ip=="GB,GE,FR,IT"]
  text3
[else]
  text4
[endif]
Countries:
Anonymous Proxy (A1)
Satellite Provider (A2)
Andorra (AD)
United Arab Emirates (AE)
Afghanistan (AF)
Antigua and Barbuda (AG)
Anguilla (AI)
Albania (AL)
Armenia (AM)
Netherlands Antilles (AN)
Angola (AO)
Asia/Pacific Region (AP)
Antarctica (AQ)
Argentina (AR)
American Samoa (AS)
Austria (AT)
Australia (AU)
Aruba (AW)
Aland Islands (AX)
Azerbaijan (AZ)
Bosnia and Herzegovina (BA)
Barbados (BB)
Bangladesh (BD)
Belgium (BE)
Burkina Faso (BF)
Bulgaria (BG)
Bahrain (BH)
Burundi (BI)
Benin (BJ)
Bermuda (BM)
Brunei Darussalam (BN)
Bolivia (BO)
Brazil (BR)
Bahamas (BS)
Bhutan (BT)
Bouvet Island (BV)
Botswana (BW)
Belarus (BY)
Belize (BZ)
Canada (CA)
Congo, The Democratic Republic of the (CD)
Central African Republic (CF)
Congo (CG)
Switzerland (CH)
Cote D'Ivoire (CI)
Cook Islands (CK)
Chile (CL)
Cameroon (CM)
China (CN)
Colombia (CO)
Costa Rica (CR)
Cuba (CU)
Cape Verde (CV)
Cyprus (CY)
Czech Republic (CZ)
Germany (DE)
Djibouti (DJ)
Denmark (DK)
Dominica (DM)
Dominican Republic (DO)
Algeria (DZ)
Ecuador (EC)
Estonia (EE)
Egypt (EG)
Eritrea (ER)
Spain (ES)
Ethiopia (ET)
Europe (EU)
Finland (FI)
Fiji (FJ)
Falkland Islands (Malvinas) (FK)
Micronesia, Federated States of (FM)
Faroe Islands (FO)
France (FR)
Gabon (GA)
United Kingdom (GB)
Grenada (GD)
Georgia (GE)
French Guiana (GF)
Guernsey (GG)
Ghana (GH)
Gibraltar (GI)
Greenland (GL)
Gambia (GM)
Guinea (GN)
Guadeloupe (GP)
Equatorial Guinea (GQ)
Greece (GR)
Guatemala (GT)
Guam (GU)
Guinea-Bissau (GW)
Guyana (GY)
Hong Kong (HK)
Heard Island and McDonald Islands (HM)
Honduras (HN)
Croatia (HR)
Haiti (HT)
Hungary (HU)
Indonesia (ID)
Ireland (IE)
Israel (IL)
Isle of Man (IM)
India (IN)
British Indian Ocean Territory (IO)
Iraq (IQ)
Iran, Islamic Republic of (IR)
Iceland (IS)
Italy (IT)
Jersey (JE)
Jamaica (JM)
Jordan (JO)
Japan (JP)
Kenya (KE)
Kyrgyzstan (KG)
Cambodia (KH)
Kiribati (KI)
Comoros (KM)
Saint Kitts and Nevis (KN)
Korea, Democratic People's Republic of (KP)
Korea, Republic of (KR)
Kuwait (KW)
Cayman Islands (KY)
Kazakstan (KZ)
Lao People's Democratic Republic (LA)
Lebanon (LB)
Saint Lucia (LC)
Liechtenstein (LI)
Sri Lanka (LK)
Liberia (LR)
Lesotho (LS)
Lithuania (LT)
Luxembourg (LU)
Latvia (LV)
Libyan Arab Jamahiriya (LY)
Morocco (MA)
Monaco (MC)
Moldova, Republic of (MD)
Montenegro (ME)
Madagascar (MG)
Marshall Islands (MH)
Macedonia (MK)
Mali (ML)
Myanmar (MM)
Mongolia (MN)
Macau (MO)
Northern Mariana Islands (MP)
Martinique (MQ)
Mauritania (MR)
Montserrat (MS)
Malta (MT)
Mauritius (MU)
Maldives (MV)
Malawi (MW)
Mexico (MX)
Malaysia (MY)
Mozambique (MZ)
Namibia (NA)
New Caledonia (NC)
Niger (NE)
Norfolk Island (NF)
Nigeria (NG)
Nicaragua (NI)
Netherlands (NL)
Norway (NO)
Nepal (NP)
Nauru (NR)
Niue (NU)
New Zealand (NZ)
Oman (OM)
Panama (PA)
Peru (PE)
French Polynesia (PF)
Papua New Guinea (PG)
Philippines (PH)
Pakistan (PK)
Poland (PL)
Saint Pierre and Miquelon (PM)
Puerto Rico (PR)
Palestinian Territory, Occupied (PS)
Portugal (PT)
Palau (PW)
Paraguay (PY)
Qatar (QA)
Reunion (RE)
Romania (RO)
Serbia (RS)
Russian Federation (RU)
Rwanda (RW)
Saudi Arabia (SA)
Solomon Islands (SB)
Seychelles (SC)
Sudan (SD)
Sweden (SE)
Singapore (SG)
Slovenia (SI)
Slovakia (SK)
Sierra Leone (SL)
San Marino (SM)
Senegal (SN)
Somalia (SO)
Suriname (SR)
Sao Tome and Principe (ST)
El Salvador (SV)
Syrian Arab Republic (SY)
Swaziland (SZ)
Turks and Caicos Islands (TC)
Chad (TD)
Togo (TG)
Thailand (TH)
Tajikistan (TJ)
Tokelau (TK)
Turkmenistan (TM)
Tunisia (TN)
Tonga (TO)
Turkey (TR)
Trinidad and Tobago (TT)
Tuvalu (TV)
Taiwan (TW)
Tanzania, United Republic of (TZ)
Ukraine (UA)
Uganda (UG)
United States Minor Outlying Islands (UM)
United States (US)
Uruguay (UY)
Uzbekistan (UZ)
Holy See (Vatican City State) (VA)
Saint Vincent and the Grenadines (VC)
Venezuela (VE)
Virgin Islands, British (VG)
Virgin Islands, U.S. (VI)
Vietnam (VN)
Vanuatu (VU)
Wallis and Futuna (WF)
Samoa (WS)
Yemen (YE)
Mayotte (YT)
South Africa (ZA)
Zambia (ZM)
Zimbabwe (ZW)
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.197 seconds with 18 queries.