PHP Classes

File: infrastructure/libraries/Moment/Locales/ca_ES.php

Recommend this page to a friend!
  Classes of Maicon gonçalez   Potato Service   infrastructure/libraries/Moment/Locales/ca_ES.php   Download  
File: infrastructure/libraries/Moment/Locales/ca_ES.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Potato Service
Framework that extracts route details from classes
Author: By
Last change:
Date: 1 year ago
Size: 2,039 bytes
 

Contents

Class file image Download
<?php

// locale: Catalan (ca_ES)
// author: CROWD Studio https://github.com/crowd-studio

use Moment\Moment;

return array(
   
"months" => explode('_', 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'),
   
"monthsShort" => explode('_', 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'),
   
"weekdays" => explode('_', 'dilluns_dimarts_dimecres_dijous_divendres_dissabte_diumenge'),
   
"weekdaysShort" => explode('_', 'dl._dt._dc._dj._dv._ds._dg.'),
   
"calendar" => array(
       
"sameDay" => '[avui]',
       
"nextDay" => '[demà]',
       
"lastDay" => '[ahir]',
       
"lastWeek" => '[el] l',
       
"sameElse" => 'l',
       
"withTime" => function (Moment $moment) { return '[a' . ($moment->getHour() != 1 ? ' les ' : ' l\'') . ']G.i [h]'; },
       
"default" => 'd/m/Y',
    ),
   
"relativeTime" => array(
       
"future" => 'en %s',
       
"past" => 'fa %s',
       
"s" => 'uns segons',
       
"ss" => '%d segons',
       
"m" => 'un minut',
       
"mm" => '%d minuts',
       
"h" => 'una hora',
       
"hh" => '%d hores',
       
"d" => 'un dia',
       
"dd" => '%d dies',
       
"M" => 'un mes',
       
"MM" => '%d mesos',
       
"y" => 'un any',
       
"yy" => '%d anys',
    ),
   
"ordinal" => function ($number)
    {

        switch (
$number) {
            case
1:
               
$output = 'r';
                break;
            case
2:
               
$output = 'n';
                break;
            case
3:
               
$output = 'r';
                break;
            case
4:
               
$output = 't';
                break;
            default:
               
$output = 'è';
                break;
        }

        return
$number . '[' . $output . ']';
    },
   
"week" => array(
       
"dow" => 1, // Monday is the first day of the week.
       
"doy" => 4 // The week that contains Jan 4th is the first week of the year.
   
),
);