2023-07-21 23:59:12 +00:00
|
|
|
|
-- Verify camper:available_languages on pg
|
|
|
|
|
|
|
|
|
|
begin;
|
|
|
|
|
|
|
|
|
|
set search_path to public;
|
|
|
|
|
|
|
|
|
|
select 1 / count(*)
|
|
|
|
|
from language
|
|
|
|
|
where lang_tag = 'und'
|
|
|
|
|
and name = 'Undefined'
|
|
|
|
|
and endonym = 'Undefined'
|
|
|
|
|
and not selectable
|
|
|
|
|
and currency_pattern = '%[3]s%.[1]*[2]f';
|
|
|
|
|
|
|
|
|
|
select 1 / count(*)
|
|
|
|
|
from language
|
|
|
|
|
where lang_tag = 'ca'
|
|
|
|
|
and name = 'Catalan'
|
|
|
|
|
and endonym = 'català'
|
|
|
|
|
and selectable
|
|
|
|
|
and currency_pattern = '%.[1]*[2]f %[3]s';
|
|
|
|
|
|
2023-09-12 10:27:00 +00:00
|
|
|
|
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';
|
|
|
|
|
|
2023-07-21 23:59:12 +00:00
|
|
|
|
select 1 / count(*)
|
|
|
|
|
from language
|
|
|
|
|
where lang_tag = 'es'
|
|
|
|
|
and name = 'Spanish'
|
|
|
|
|
and endonym = 'español'
|
|
|
|
|
and selectable
|
|
|
|
|
and currency_pattern = '%.[1]*[2]f %[3]s';
|
|
|
|
|
|
|
|
|
|
rollback;
|