Last active
September 27, 2015 15:17
-
-
Save iegik/1289816 to your computer and use it in GitHub Desktop.
Cik dienas pārgaja? Сколько дней прошло? http://translate.sourceforge.net/wiki/l10n/pluralforms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?=(@$days=intval((time()-strtotime("15.10.2011"))/86400))?"Pirms ".$days.((substr($days,-1)==1&&substr($days,-2)!=11)?" dienas":" dienām"):"Šodien";?> | |
<?=(@$days=intval((time()-strtotime("15.10.2011"))/86400))?$days.((substr($days,-1)&&substr($days,-1)>4)?" дней":(substr($days,-1)==1?" день":" дня"))." назад":"Сегодня";?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment