PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   PHP Season of the Year   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Season of the Year
Get the names of the seasons in several languages
Author: By
Last change: Update README.md
Updated the language count
Added Norwegian
Update README.md
Badges
Date: 4 years ago
Size: 1,487 bytes
 

Contents

Class file image Download

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');    # ?