Add English as an available, selectable language

This commit is contained in:
jordi fita mas 2023-09-12 12:27:00 +02:00
parent 9306acaec3
commit 75aa8900b6
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ begin;
insert into public.language (lang_tag, name, endonym, selectable, currency_pattern)
values ('und', 'Undefined', 'Undefined', false, '%[3]s%.[1]*[2]f')
, ('ca', 'Catalan', 'català', true, '%.[1]*[2]f %[3]s')
, ('en', 'English', 'English', true, '%[3]s%.[1]*[2]f')
, ('es', 'Spanish', 'español', true, '%.[1]*[2]f %[3]s')
;

View File

@ -20,6 +20,14 @@ where lang_tag = 'ca'
and selectable
and currency_pattern = '%.[1]*[2]f %[3]s';
select 1 / count(*)
from language
where lang_tag = 'en'
and name = 'English'
and endonym = 'English'
and selectable
and currency_pattern = '%[3]s%.[1]*[2]f';
select 1 / count(*)
from language
where lang_tag = 'es'