From c4bb269f3ed7410c8c291b544a1d57b3fc240776 Mon Sep 17 00:00:00 2001 From: Xeevis Date: Fri, 27 Sep 2019 16:07:45 +0200 Subject: [PATCH] Translate documents to Czech --- .../Best-Practices/PostgreSQL-Integration.md | 30 +++---- docs/cs/Dapper.md | 22 ++--- docs/cs/Getting-Started-Angular-Template.md | 86 +++++++++---------- docs/en/Getting-Started-Angular-Template.md | 4 +- 4 files changed, 71 insertions(+), 71 deletions(-) diff --git a/docs/cs/Best-Practices/PostgreSQL-Integration.md b/docs/cs/Best-Practices/PostgreSQL-Integration.md index 9b0bf40dc2..6bf8224f1e 100644 --- a/docs/cs/Best-Practices/PostgreSQL-Integration.md +++ b/docs/cs/Best-Practices/PostgreSQL-Integration.md @@ -1,32 +1,32 @@ -## Entity Framework Core PostgreSQL Integration +## Entity Framework Core PostgreSQL integrace -> See [Entity Framework Core Integration document](../Entity-Framework-Core.md) for the basics of the EF Core integration. +> Podívejte se na [Entity Framework Core integrační dokument](../Entity-Framework-Core.md) pro základy integrace EF Core. -### EntityFrameworkCore Project Update +### Aktualizace projektu EntityFrameworkCore -- In `Acme.BookStore.EntityFrameworkCore` project replace package `Volo.Abp.EntityFrameworkCore.SqlServer` with `Volo.Abp.EntityFrameworkCore.PostgreSql` -- Update to use PostgreSQL in `BookStoreEntityFrameworkCoreModule` - - Replace the `AbpEntityFrameworkCoreSqlServerModule` with the `AbpEntityFrameworkCorePostgreSqlModule` - - Replace the `options.UseSqlServer()` with the `options.UsePostgreSql()` -- In other projects update the PostgreSQL connection string in necessary `appsettings.json` files +- V projektu `Acme.BookStore.EntityFrameworkCore` nahraďte balík `Volo.Abp.EntityFrameworkCore.SqlServer` za `Volo.Abp.EntityFrameworkCore.PostgreSql` +- Aktualizace pro použití PostgreSQL v `BookStoreEntityFrameworkCoreModule` + - Nahraďte `AbpEntityFrameworkCoreSqlServerModule` za `AbpEntityFrameworkCorePostgreSqlModule` + - Nahraďte `options.UseSqlServer()` za `options.UsePostgreSql()` +- V jiných projektech aktualizujte PostgreSQL connection string v nezbytných `appsettings.json` souborech -#### Delete Existing Migrations +#### Odstranění stávajících migrací -Delete all existing migration files (including `DbContextModelSnapshot`) +Smažte všechny stavající migrační soubory (včetně `DbContextModelSnapshot`) ![postgresql-delete-initial-migrations](images/postgresql-delete-initial-migrations.png) -#### Regenerate Initial Migration & Update the Database +#### Znovu vygenerujte počáteční migraci & aktualizujte databázi -Set the correct startup project (usually a web project), -Open the **Package Manager Console** (Tools -> Nuget Package Manager -> Package Manager Console), select the `Acme.BookStore.EntityFrameworkCore.DbMigrations` as the **Default project** and execute the following command: +Nastavte správný spouštěcí projekt (obvykle web projekt), +Otevřete **Package Manager Console** (Tools -> Nuget Package Manager -> Package Manager Console), zvolte `Acme.BookStore.EntityFrameworkCore.DbMigrations` jako **Default project** a proveďte následující příkaz: -Run `Add-Migration` command. +Proveďte příkaz `Add-Migration`: ```` PM> Add-Migration Initial ```` -Then execute the `Update-Database` command to update the database schema: +Poté proveďte příkaz `Update-Database` k aktualizaci schématu databáze: ```` PM> Update-Database diff --git a/docs/cs/Dapper.md b/docs/cs/Dapper.md index d8b17838eb..94e40347f0 100644 --- a/docs/cs/Dapper.md +++ b/docs/cs/Dapper.md @@ -1,22 +1,22 @@ -# Dapper Integration +# Dapper integrace -Because Dapper's idea is that the sql statement takes precedence, and mainly provides some extension methods for the `IDbConnection` interface. +Jelikož myšlenka Dapper je taková, že sql příkaz má přednost, tak hlavně poskytuje metody rozšíření pro `IDbConnection` rozhraní. -Abp does not encapsulate too many functions for Dapper. Abp Dapper provides a `DapperRepository` base class based on Abp EntityFrameworkCore, which provides the `IDbConnection` and `IDbTransaction` properties required by Dapper. +Abp nezapouzdřuje přílíš mnoho funkcí pro Dapper. Abp Dapper poskytuje základní třídu `DapperRepository` založenou na Abp EntityFrameworkCore, který poskytuje vlastnosti `IDbConnection` a `IDbTransaction` vyžadované v Dapper. -These two properties can work well with [Unit-Of-Work](Unit-Of-Work.md). +Tyto dvě vlastnosti fungují dobře s [jednotkou práce](Unit-Of-Work.md). -## Installation +## Instalace -Please install and configure EF Core according to [EF Core's integrated documentation](Entity-Framework-Core.md). +Nainstalujte a nakonfigurujte EF Core podle [EF Core integrační dokumentace](Entity-Framework-Core.md). -`Volo.Abp.Dapper` is the main nuget package for the Dapper integration. Install it to your project (for a layered application, to your data/infrastructure layer): +`Volo.Abp.Dapper` je hlavní NuGet balík pro Dapper integraci. Nainstalujte jej proto do vašeho projektu (pro strukturovanou aplikaci do datové/infrastrukturní vrstvy): ```shell Install-Package Volo.Abp.Dapper ``` -Then add `AbpDapperModule` module dependency (`DependsOn` attribute) to your [module](Module-Development-Basics.md): +Poté přidejte závislost na `AbpDapperModule` modulu (atribut `DependsOn`) do Vašeho [modulu](Module-Development-Basics.md): ````C# using Volo.Abp.Dapper; @@ -32,11 +32,11 @@ namespace MyCompany.MyProject } ```` -## Implement Dapper Repository +## Implementace Dapper repozitáře -The following code implements the `Person` repository, which requires EF Core's `DbContext` (MyAppDbContext). You can inject `PersonDapperRepository` to call its methods. +Následující kód implementuje repozitář `Person`, který vyžaduje `DbContext` z EF Core (MyAppDbContext). Můžete vložit `PersonDapperRepository` k volání jeho metod. -`DbConnection` and `DbTransaction` are from the `DapperRepository` base class. +`DbConnection` a `DbTransaction` jsou ze základní třídy `DapperRepository`. ```C# public class PersonDapperRepository : DapperRepository, ITransientDependency diff --git a/docs/cs/Getting-Started-Angular-Template.md b/docs/cs/Getting-Started-Angular-Template.md index 1bd605cd65..6accc637e8 100644 --- a/docs/cs/Getting-Started-Angular-Template.md +++ b/docs/cs/Getting-Started-Angular-Template.md @@ -1,49 +1,49 @@ -## Getting Started With the Angular Application Template +## Začínáme s Angular aplikační šablonou -This tutorial explain how to create a new Angular application using the startup template, configure and run it. +Tento tutoriál vysvětluje, jak vytvořit novou Angular aplikaci pomocí spouštěcí šablony, jak ji nakonfigurovat a spustit. -### Creating a New Project +### Tvorba nového projektu -This tutorial uses **ABP CLI** to create a new project. See the [Get Started](https://abp.io/get-started) page for other options. +Tento tutorial používá k vytvoření nového projektu **ABP CLI**. Podívejte se na stránku [začínáme](https://abp.io/get-started) pro více možností. -Install the ABP CLI using a command line window, if you've not installed before: +Pokud jste tak dosud neučinili, nainstalujte ABP CLI pomocí okna příkazového řádku: ````bash dotnet tool install -g Volo.Abp.Cli ```` -Use `abp new` command in an empty folder to create your project: +Použíjte příkaz `abp new` v prázdné složce k vytvoření Vašeho projektu: ````bash abp new Acme.BookStore -u angular ```` -> You can use different level of namespaces; e.g. BookStore, Acme.BookStore or Acme.Retail.BookStore. +> Můžete použít různé úrovně jmenných prostorů; např. BookStore, Acme.BookStore nebo Acme.Retail.BookStore. -`-u angular` option specifies the UI framework to be Angular. Default database provider is EF Core. See the [CLI documentation](CLI.md) for all available options. +`-u angular` volba specifikuje Angular jako UI framework. Výchozí poskytovatel databáze je EF Core. Podívejte se na [CLI dokumentaci](CLI.md) pro všechny dostupné možnosti. -#### Pre Requirements +#### Předběžné požadavky -The created solution requires; +Vytvořené řešení vyžaduje; * [Visual Studio 2017 (v15.9.0+)](https://visualstudio.microsoft.com/tr/downloads/) * [.NET Core 2.2+](https://www.microsoft.com/net/download/dotnet-core/) * [Node v10.16+](https://nodejs.org) * [Yarn v1.17+](https://yarnpkg.com/) -### The Solution Structure +### Struktura řešení -Open the solution in **Visual Studio**: +Otevřete řešení ve **Visual Studio**: ![bookstore-visual-studio-solution](images/bookstore-visual-studio-solution-for-spa.png) -The solution has a layered structure (based on [Domain Driven Design](Domain-Driven-Design.md)) and contains unit & integration test projects properly configured to work with **EF Core** & **SQLite in-memory** database. +Řešení má vrstvenou strukturu (založenou na [domain driven designu](Domain-Driven-Design.md)) a obsahuje projekty testů jednotek a integrace správně nakonfigurované pro práci s **EF Core** & **SQLite in-memory** databází. -> See the [Application Template Document](Startup-Templates/Application.md) to understand the solution structure in details. +> Podívejte se na [dokument šablony aplikace](Startup-Templates/Application.md) k detailnímu pochopení struktury řešení. -### Database Connection String +### Databázový connection string -Check the **connection string** in the `appsettings.json` file under the `.HttpApi.Host` project: +Zkontrolujte **connection string** v souboru `appsettings.json` u projektu `.HttpApi.Host`: ````json { @@ -53,74 +53,74 @@ Check the **connection string** in the `appsettings.json` file under the `.HttpA } ```` -The solution is configured to use **Entity Framework Core** with **MS SQL Server**. EF Core supports [various](https://docs.microsoft.com/en-us/ef/core/providers/) database providers, so you can use another DBMS if you want. Change the connection string if you need. +Řešení je nakonfigurováno pro použití **Entity Framework Core** s **MS SQL Server**. EF Core podporuje [různé](https://docs.microsoft.com/en-us/ef/core/providers/) poskytovatele databáze, takže pokud chcete můžete použít jiný DBMS. V případě potřeby změňte connection string. -### Create Database & Apply Database Migrations +### Tvorba databáze & aplikace migrací databáze -You have two options to create the database. +K vytvoření databáze máte dvě možnosti. -#### Using the DbMigrator Application +#### Použití aplikace DbMigrator -The solution contains a console application (named `Acme.BookStore.DbMigrator` in this sample) that can create database, apply migrations and seed initial data. It is useful on development as well as on production environment. +Řešení obsahuje konzolovou aplikaci (v tomto příkladu nazvanou `Acme.BookStore.DbMigrator`), která dokáže vytvořit databázi, aplikovat migrace a vložit počáteční data. Ta je užitečná jak pro vývojové tak pro produkční prostředí. -> `.DbMigrator` project has its own `appsettings.json`. So, if you have changed the connection string above, you should also change this one. +> `.DbMigrator` má vlastní `appsettings.json`. Pokud jste změnili connection string výše, měli byste změnit i tento. -Right click to the `.DbMigrator` project and select **Set as StartUp Project**: +Klikněte pravým na projekt `.DbMigrator` zvolte **Set as StartUp Project**: ![set-as-startup-project](images/set-as-startup-project.png) -Hit F5 (or Ctrl+F5) to run the application. It will have an output like shown below: +Zmáčkněte F5 (nebo Ctrl+F5) ke spuštění aplikace. Výstup by měl být podobný vyobrazení níže: ![set-as-startup-project](images/db-migrator-app.png) -#### Using EF Core Update-Database Command +#### Použití příkazu EF Core Update-Database -Ef Core has `Update-Database` command which creates database if necessary and applies pending migrations. Right click to the `.Web` project and select **Set as StartUp Project**: +Ef Core máš příkaz `Update-Database`, který v případě potřeby vytvoří databázi a aplikuje čekající migrace. Klikněte pravým na projekt `.Web` a zvolte **Set as StartUp Project**: ![set-as-startup-project](images/set-as-startup-project.png) -Open the **Package Manager Console**, select `.EntityFrameworkCore.DbMigrations` project as the **Default Project** and run the `Update-Database` command: +Otevřete **Package Manager Console**, zvolte `.EntityFrameworkCore.DbMigrations` jako **Default Project** a proveďte příkaz `Update-Database`: ![pcm-update-database](images/pcm-update-database-v2.png) -This will create a new database based on the configured connection string. +Tímto vytvoříte novou databáze podle nakonfigurovaného connection string. -> Using the `.Migrator` tool is the suggested way, because it also seeds the initial data to be able to properly run the web application. +> Je doporučeno užití nástroje `.DbMigrator`, protože zároveň vloží i počáteční data ke správnému běhu webové aplikace. -### Running the Application +### Spuštění aplikace -#### Run the API Host (Server Side) +#### Spuštění API Host (na straně serveru) -Ensure that the `.HttpApi.Host` project is the startup project and un the application which will open a Swagger UI: +Ujistěte se že je projekt `.HttpApi.Host` nastaven jako startovací a spusťte aplikaci což otevře Swagger UI: ![bookstore-homepage](images/bookstore-swagger-ui-host.png) -You can see the application APIs and test them here. Get [more info](https://swagger.io/tools/swagger-ui/) about the Swagger UI. +Tady můžete vidět API aplikace a zároveň je i otestovat. Získejte [více informací](https://swagger.io/tools/swagger-ui/) o Swagger UI. -##### Authorization for the Swagger UI +##### Autorizace pro Swagger UI -Most of the application APIs require authentication & authorization. If you want to test authorized APIs, manually go to the `/Account/Login` page, enter `admin` as the username and `1q2w3E*` as the password to login to the application. Then you will be able to execute authorized APIs too. +Vetšina API aplikace vyžaduje autentizaci & autorizaci. Pokud chcete otestovat autorizované API, manuálně přejděte na stránku `/Account/Login`, vložte `admin` jako uživatelské jméno a `1q2w3E*` jako heslo k příhlášení do aplikace. Poté budete moci provádět autorizované požadavky API. -#### Run the Angular Application (Client Side) +#### Spuštění Angular aplikace (na straně klienta) -Go to the `angular` folder, open a command line terminal, type the `yarn` command (we suggest to the [yarn](https://yarnpkg.com) package manager while npm install will also work in most cases): +Přejděte do složky `angular`, otevřete terminál příkazového řádku, proveďte příkaz `yarn` (doporučujeme používat správce balíků [yarn](https://yarnpkg.com), npm install bude v mnoha případech také fungovat): ````bash yarn ```` -Once all node modules are loaded, execute `yarn start` or `npm start` command: +Jakmile jsou načteny všechny node moduly, proveďte příkaz `yarn start` nebo `npm start`: ````bash yarn start ```` -Open your favorite browser and go to `localhost:4200` URL. Initial username is `admin` and password is `1q2w3E*`. +Otevřete Váš oblíbený prohlížeč a přejděte na adresu `localhost:4200`. Počáteční uživatelské jméno je `admin` a heslo `1q2w3E*`. -The startup template includes the **identity management** and **tenant management** modules. Once you login, the Administration menu will be available where you can manage **tenants**, **roles**, **users** and their **permissions**. +Startovací šablona obsahuje moduly **správa identit** a **správa tenantů**. Jakmile se přihlásíte, zprístupní se administrační menu kde můžete spravovat **tenanty**, **role**, **uživatele** a jejich **oprávnění**. -> We recommend [Visual Studio Code](https://code.visualstudio.com/) as the editor for the Angular project, but you are free to use your favorite editor. +> Doporučujeme [Visual Studio Code](https://code.visualstudio.com/) jako editor pro Angular projekt, ale klidně použijte Váš oblíbený editor. -### What's Next? +### Co dále? -* [Application development tutorial](Tutorials/Angular/Part-I.md) +* [Tutoriál vývoje aplikace](Tutorials/Angular/Part-I.md) diff --git a/docs/en/Getting-Started-Angular-Template.md b/docs/en/Getting-Started-Angular-Template.md index 1bd605cd65..31186eaa35 100644 --- a/docs/en/Getting-Started-Angular-Template.md +++ b/docs/en/Getting-Started-Angular-Template.md @@ -85,13 +85,13 @@ Open the **Package Manager Console**, select `.EntityFrameworkCore.DbMigrations` This will create a new database based on the configured connection string. -> Using the `.Migrator` tool is the suggested way, because it also seeds the initial data to be able to properly run the web application. +> Using the `.DbMigrator` tool is the suggested way, because it also seeds the initial data to be able to properly run the web application. ### Running the Application #### Run the API Host (Server Side) -Ensure that the `.HttpApi.Host` project is the startup project and un the application which will open a Swagger UI: +Ensure that the `.HttpApi.Host` project is the startup project and run the application which will open a Swagger UI: ![bookstore-homepage](images/bookstore-swagger-ui-host.png)