Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2019-10-12 (5 hours ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not enough user ratings | | Total: 61 | | All time: 9,541 This week: 325![Up](/graphics/phpclasses/up.png) |
|
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 PHP Programming Innovation award nominee](/award/innovation/nominee.gif) 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 Picture of Peter Kahl](/graphics/unknown.gif) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 23x
Winner: 2x |
|
Details
Continent names in 17 languages
![If this project has business value for you then don't hesitate to support me with a small donation.](https://img.shields.io/badge/Donations-via%20Paypal-blue.svg)
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
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.