From 19317b54173787c4683eb29859b1d8d18fa3ee0e Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 18 Dec 2024 13:13:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 3 ++- DD.Persistence.App/Program.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 44c81e2..5583d5e 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -26,8 +26,9 @@ jobs: apt install -y postgresql service postgresql start sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();" - sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres' ENCODING 'UTF8' LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' TEMPLATE = template0" + sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres'" sudo locale -a + #ENCODING 'UTF8' LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' TEMPLATE = template0 # - uses: pdm-project/setup-pdm@v3 # with: # python-version: 3.10 diff --git a/DD.Persistence.App/Program.cs b/DD.Persistence.App/Program.cs index 2477352..4a02472 100644 --- a/DD.Persistence.App/Program.cs +++ b/DD.Persistence.App/Program.cs @@ -1,5 +1,6 @@ using DD.Persistence.API; +using System.Globalization; namespace DD.Persistence.App; @@ -7,7 +8,8 @@ public class Program { public static void Main(string[] args) { - + CultureInfo uiCulture = CultureInfo.CurrentUICulture; + CultureInfo.CurrentUICulture = new CultureInfo("en-EN"); var host = CreateHostBuilder(args).Build(); Startup.BeforeRunHandler(host); host.Run();