PHP Classes
elePHPant
Icontem

PHP Season of the Year: Get the names of the seasons in several languages

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-02-11 (5 days ago) RSS 2.0 feedNot enough user ratingsTotal: 73 This week: 6All time: 9,521 This week: 50Up
Version License PHP version Categories
season-info-multilin 1.0Custom (specified...5Localization, PHP 5, Time and Date
Description Author

This class can get the names of the seasons in several languages.

It can take as parameter the name of the year season like summer, spring, autumn and winder, and returns the respective name in different languages.

The season name can be retrieved in different languages like arabic, czech, danish, german, english, spanish, french, hebrew, italian, japanese, ducth, portuguese, russian, chinese, etc..

Innovation Award
PHP Programming Innovation award nominee
May 2017
Number 10
As we all know, each season of the year has a name. The name changes from language to language.

This class can get the names of the year seasons in many different languages.

Manuel Lemos
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

 

Details

Season names in 19 languages

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

Translates name of season into 19 languages and scripts.

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

Usage

usee peterkahl\SeasonInfo\SeasonInfo;

echo SeasonInfo::getName('autumn', 'en-us'); # fall

echo SeasonInfo::getName('autumn', 'en-gb'); # autumn

echo SeasonInfo::getName('spring', 'it');    # primavera

echo SeasonInfo::getName('spring', 'fr');    # printemps

echo SeasonInfo::getName('spring', 'ru');    # ?????

echo SeasonInfo::getName('spring', 'cy');    # gwanwyn

echo SeasonInfo::getName('spring', 'zh-cn'); # ??

echo SeasonInfo::getName('winter', 'ja');    # ?

  Files folder image Files  
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  /  src  
File Role Description
  Plain text file SeasonInfo.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:73
This week:6
All time:9,521
This week:50Up