PHP Classes

PHP Continent Code to Names: Retrieve the continent names in multiple languages

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 29%Total: 69 All time: 10,305 This week: 206Up
Version License PHP version Categories
continent-names-mult 1.0Custom (specified...5Localization, PHP 5, Geography
Description 

Author

This class can retrieve the continent names in multiple languages.

It can take a two letter code for a continent and return the name of the continent in multiple possible languages.

Currently the class supports the returning the names in Arabic, Spanish, Czech, Danish, German, English, French, Hebrew, Italian, Japanese, Dutch, Portuguese, Russian, Slovak, and Chinese.

Innovation Award
PHP Programming Innovation award nominee
May 2017
Number 10
The name of each continent changes from language to language. This class can get the names of the continents in many different languages.

Manuel Lemos
Picture of Peter Kahl
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom
Age: ???
All time rank: 41521 in United Kingdom
Week rank: 22 Up2 in United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Documentation

Continent names in 17 languages

Downloads Download per Month License If this project has business value for you then don't hesitate to support me with a small donation.

Converts continent code to full name in 17 languages (and/or script variations).

  • Arabic (????)
  • Czech (?e?tina)
  • German (Deutsch)
  • Danish (dansk)
  • English
  • Spanish (Español)
  • French (français)
  • Hebrew (???????)
  • Italian (italiano)
  • Japanese (???)
  • Dutch (Nederlands)
  • Portuguese (Português)
  • Russian (???????)
  • Slovak (sloven?ina)
  • Chinese simplified (????)
  • Chinese traditional (????)
  • Welsh (Cymraeg)

Usage

use peterkahl\Continent\Continent;

# These are examples of COUNTRY CODE >>> CONTINENT CODE
echo Continent::Country2ContinentCode('cn');     # AS (China is in Asia)
echo Continent::Country2ContinentCode('HU');     # EU (Hungary is in Europe)

# These are examples of CONTINENT CODE >>> CONTINENT NAME
echo Continent::getContinentName('as', 'he');    # ???????
echo Continent::getContinentName('EU', 'ru');    # ??????
echo Continent::getContinentName('af', 'zh-tw'); # ??
echo Continent::getContinentName('sa', 'cy');    # Sydamerika


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file Continent.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:69
This week:0
All time:10,305
This week:206Up
 User Ratings  
 
 All time
Utility:41%StarStarStar
Consistency:33%StarStar
Documentation:50%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:29%StarStar
Rank:4354