our
$VERSION
= version->declare(
'v0.44.0'
);
use
if
$^V ge v5.12.0,
feature
=>
'unicode_strings'
;
extends
(
'Locale::CLDR::Locales::Zh::Hans'
);
has
'units'
=> (
is
=>
'ro'
,
isa
=> HashRef[HashRef[HashRef[Str]]],
init_arg
=>
undef
,
default
=>
sub
{ {
'long'
=> {
'concentr-karat'
=> {
'name'
=>
q(开)
,
'other'
=>
q({0}开)
,
},
'karat'
=> {
'name'
=>
q(开)
,
'other'
=>
q({0}开)
,
},
'duration-second'
=> {
'other'
=>
q({0}秒)
,
},
'second'
=> {
'other'
=>
q({0}秒)
,
},
'per'
=> {
'1'
=>
q({0}/{1})
,
},
'per'
=> {
'1'
=>
q({0}/{1})
,
},
'temperature-kelvin'
=> {
'name'
=>
q(开氏度)
,
'other'
=>
q({0}开氏度)
,
},
'kelvin'
=> {
'name'
=>
q(开氏度)
,
'other'
=>
q({0}开氏度)
,
},
},
'narrow'
=> {
'concentr-karat'
=> {
'other'
=>
q({0}开)
,
},
'karat'
=> {
'other'
=>
q({0}开)
,
},
'length-foot'
=> {
'other'
=>
q({0}英尺)
,
},
'foot'
=> {
'other'
=>
q({0}英尺)
,
},
'length-inch'
=> {
'other'
=>
q({0}英寸)
,
},
'inch'
=> {
'other'
=>
q({0}英寸)
,
},
'length-light-year'
=> {
'other'
=>
q({0}光年)
,
},
'light-year'
=> {
'other'
=>
q({0}光年)
,
},
'length-mile'
=> {
'other'
=>
q({0}英里)
,
},
'mile'
=> {
'other'
=>
q({0}英里)
,
},
'length-picometer'
=> {
'other'
=>
q({0}皮米)
,
},
'picometer'
=> {
'other'
=>
q({0}皮米)
,
},
'length-yard'
=> {
'other'
=>
q({0}码)
,
},
'yard'
=> {
'other'
=>
q({0}码)
,
},
},
'short'
=> {
'acceleration-g-force'
=> {
'other'
=>
q({0}G力)
,
},
'g-force'
=> {
'other'
=>
q({0}G力)
,
},
'concentr-karat'
=> {
'name'
=>
q(开)
,
'other'
=>
q({0}开)
,
},
'karat'
=> {
'name'
=>
q(开)
,
'other'
=>
q({0}开)
,
},
'temperature-kelvin'
=> {
'name'
=>
q(开氏度)
,
'other'
=>
q({0}°K)
,
},
'kelvin'
=> {
'name'
=>
q(开氏度)
,
'other'
=>
q({0}°K)
,
},
},
} }
);
has
'currencies'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'ANG'
=> {
display_name
=> {
'other'
=>
q(荷兰安的列斯盾)
,
},
},
'CNY'
=> {
symbol
=>
'CN¥'
,
},
'MOP'
=> {
symbol
=>
'MOP$'
,
},
'NIO'
=> {
display_name
=> {
'other'
=>
q(尼加拉瓜科多巴)
,
},
},
'XAG'
=> {
display_name
=> {
'currency'
=>
q(白银)
,
'other'
=>
q(白银)
,
},
},
} },
);
has
'day_period_data'
=> (
is
=>
'ro'
,
isa
=> CodeRef,
init_arg
=>
undef
,
default
=>
sub
{
sub
{
my
(
$self
,
$type
,
$time
,
$day_period_type
) =
@_
;
$day_period_type
//=
'default'
;
SWITCH:
for
(
$type
) {
if
(
$_
eq
'buddhist'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
if
(
$_
eq
'chinese'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
if
(
$_
eq
'generic'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
if
(
$_
eq
'gregorian'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
if
(
$_
eq
'islamic'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
if
(
$_
eq
'roc'
) {
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
if
(
$day_period_type
eq
'selection'
) {
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1300;
return
'afternoon2'
if
$time
>= 1300
&&
$time
< 1900;
return
'evening1'
if
$time
>= 1900
&&
$time
< 2400;
return
'morning1'
if
$time
>= 500
&&
$time
< 800;
return
'morning2'
if
$time
>= 800
&&
$time
< 1200;
return
'night1'
if
$time
>= 0
&&
$time
< 500;
}
last
SWITCH;
}
}
} },
);
around
day_period_data
=>
sub
{
my
(
$orig
,
$self
) =
@_
;
return
$self
->
$orig
;
};
has
'eras'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'buddhist'
=> {
},
'chinese'
=> {
},
'generic'
=> {
},
'gregorian'
=> {
},
'islamic'
=> {
},
'roc'
=> {
},
} },
);
has
'date_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'buddhist'
=> {
},
'chinese'
=> {
'full'
=>
q{U年MMMd日EEEE}
,
'long'
=>
q{U年MMMd日}
,
'medium'
=>
q{U年MMMd日}
,
},
'generic'
=> {
'short'
=>
q{d/M/yyGGGGG}
,
},
'gregorian'
=> {
'short'
=>
q{d/M/yy}
,
},
'islamic'
=> {
'short'
=>
q{Gd/M/yy}
,
},
'roc'
=> {
'short'
=>
q{Gd/M/yy}
,
},
} },
);
has
'time_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'buddhist'
=> {
},
'chinese'
=> {
},
'generic'
=> {
},
'gregorian'
=> {
'full'
=>
q{zzzz ah:mm:ss}
,
'long'
=>
q{z ah:mm:ss}
,
'medium'
=>
q{ah:mm:ss}
,
'short'
=>
q{ah:mm}
,
},
'islamic'
=> {
},
'roc'
=> {
},
} },
);
has
'datetime_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'buddhist'
=> {
},
'chinese'
=> {
},
'generic'
=> {
},
'gregorian'
=> {
},
'islamic'
=> {
},
'roc'
=> {
},
} },
);
has
'datetime_formats_available_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'generic'
=> {
MEd
=>
q{M-dE}
,
MMMMdd
=>
q{M月d日}
,
MMdd
=>
q{MM-dd}
,
Md
=>
q{M-d}
,
yyyyMEd
=>
q{Gy年M月d日,E}
,
yyyyMd
=>
q{Gy年M月d日}
,
},
'gregorian'
=> {
MEd
=>
q{E, d/M}
,
MMMMdd
=>
q{M月d日}
,
MMdd
=>
q{dd/MM}
,
Md
=>
q{d/M}
,
yMEd
=>
q{y年M月d日,E}
,
yMd
=>
q{y年M月d日}
,
},
'roc'
=> {
MMM
=>
q{M月}
,
},
} },
);
has
'datetime_formats_append_item'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
} },
);
has
'datetime_formats_interval'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'buddhist'
=> {
Hv
=> {
H
=>
q{vHH–HH}
,
},
fallback
=>
'{0}–{1}'
,
},
'generic'
=> {
Hmv
=> {
H
=>
q{vHH:mm–HH:mm}
,
m
=>
q{vHH:mm–HH:mm}
,
},
Hv
=> {
H
=>
q{vHH–HH}
,
},
MEd
=> {
M
=>
q{M-dE至M-dE}
,
d
=>
q{M-dE至M-dE}
,
},
MMMEd
=> {
d
=>
q{M月d日E至M月d日E}
,
},
Md
=> {
M
=>
q{M-d至M-d}
,
d
=>
q{M-d至M-d}
,
},
fallback
=>
'{0}–{1}'
,
yM
=> {
M
=>
q{y年M月至y年M月}
,
},
yMEd
=> {
M
=>
q{d/M/yE至d/M/yE}
,
d
=>
q{d/M/yE至d/M/yE}
,
y
=>
q{d/M/yE至d/M/yE}
,
},
yMMMEd
=> {
d
=>
q{y年M月d日E至M月d日E}
,
},
yMd
=> {
M
=>
q{d/M/y至d/M/y}
,
d
=>
q{d/M/y至d/M/y}
,
y
=>
q{d/M/y至d/M/y}
,
},
},
'gregorian'
=> {
Hmv
=> {
H
=>
q{vHH:mm–HH:mm}
,
m
=>
q{vHH:mm–HH:mm}
,
},
Hv
=> {
H
=>
q{vHH–HH}
,
},
MEd
=> {
M
=>
q{M-dE至M-dE}
,
d
=>
q{M-dE至M-dE}
,
},
MMMEd
=> {
d
=>
q{M月d日E至M月d日E}
,
},
Md
=> {
M
=>
q{M-d至M-d}
,
d
=>
q{M-d至M-d}
,
},
d
=> {
d
=>
q{d日至d日}
,
},
fallback
=>
'{0}–{1}'
,
yM
=> {
M
=>
q{y年M月至y年M月}
,
},
yMEd
=> {
M
=>
q{d/M/yE至d/M/yE}
,
d
=>
q{d/M/yE至d/M/yE}
,
y
=>
q{d/M/yE至d/M/yE}
,
},
yMMMEd
=> {
d
=>
q{y年M月d日E至M月d日E}
,
},
yMd
=> {
M
=>
q{d/M/y至d/M/y}
,
d
=>
q{d/M/y至d/M/y}
,
y
=>
q{d/M/y至d/M/y}
,
},
},
} },
);
no
Moo;
1;