Skip to content

Commit

Permalink
New Crowdin updates (#739)
Browse files Browse the repository at this point in the history
* New translations associations.md (Chinese Simplified)

* New translations associations.md (Chinese Simplified)

* New translations conventions.md (German)

* New translations index.md (German)

* New translations serializer.md (French)

* New translations serializer.md (Spanish)

* New translations serializer.md (Arabic)

* New translations serializer.md (German)

* New translations serializer.md (Italian)

* New translations serializer.md (Japanese)

* New translations serializer.md (Korean)

* New translations serializer.md (Polish)

* New translations serializer.md (Russian)

* New translations serializer.md (Turkish)

* New translations serializer.md (Chinese Simplified)

* New translations serializer.md (Portuguese, Brazilian)

* New translations serializer.md (Indonesian)

* New translations serializer.md (Persian)

* New translations serializer.md (Azerbaijani)

* New translations serializer.md (Hindi)

* Update source file serializer.md

* New translations community.md (Persian)

* New translations contribute.md (Persian)

* New translations hints.html (Persian)

* New translations index.md (Persian)

* New translations advanced_query.md (Persian)
  • Loading branch information
jinzhu authored Mar 9, 2024
1 parent 0c51c1c commit 2146bed
Show file tree
Hide file tree
Showing 24 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion pages/ar_SA/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/az_AZ/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
14 changes: 7 additions & 7 deletions pages/de_DE/docs/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ title: Conventions
layout: page
---

## `ID` as Primary Key
## `ID` als Primärschlüssel

GORM uses the field with the name `ID` as the table's primary key by default.
GORM nutzt das Feld mit dem Namen `ID` als den standardmäßigen Primärschlüssel einer Tabelle.

```go
type User struct {
  ID   string // field named `ID` will be used as a primary field by default
  ID   string // das Feld `ID` wird standardmäßig als Primärfeld genutzt
  Name string
}
```

You can set other fields as primary key with tag `primaryKey`
Mit dem Tag `primaryKey` können auch andere Felder als Primärschlüssel genutzt werden

```go
// Set field `UUID` as primary field
// Setze Feld `UUID` als Primärfeld
type Animal struct {
  ID     int64
  UUID   string `gorm:"primaryKey"`
Expand All @@ -26,9 +26,9 @@ type Animal struct {
}
```

Also check out [Composite Primary Key](composite_primary_key.html)
Siehe auch [Zusammengesetzte Primärschlüssel](composite_primary_key.html)

## Pluralized Table Name
## Tabellennamen im Plural

GORM pluralizes struct name to `snake_cases` as table name, for struct `User`, its table name is `users` by convention

Expand Down
2 changes: 1 addition & 1 deletion pages/de_DE/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Die fantastische ORM Bibliothek für Golang, stets auf Entwickler-Freundlichkeit
* Context, Prepared Statement Mode, DryRun Mode
* Batch Insert, FindInBatches, Find/Create with Map, CRUD with SQL Expr and Context Valuer
* SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, Named Argument, SubQuery
* Zusammen gesetzte Primär Schlüssel, Indexe, Einschränkungen
* Zusammen gesetzte Primärschlüssel, Indizes, Einschränkungen
* Automatische Datenbank Migrationen
* Logger
* Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus...
Expand Down
2 changes: 1 addition & 1 deletion pages/de_DE/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/es_ES/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
20 changes: 10 additions & 10 deletions pages/fa_IR/community.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
---
title: جامعه GORM
layout: page
layout: صفحه
---

## Ask
## درخواست

**[چگونه یک سوال خوب بپرسم؟](https://stackoverflow.com/help/how-to-ask)**

* Stackoverflow - [https://stackoverflow.com/questions/tagged/go-gorm](https://stackoverflow.com/questions/tagged/go-gorm)
* Github Issues - [https://github.com/go-gorm/gorm/issues](https://github.com/go-gorm/gorm/issues)
* ایشوها در گیت هاب: [https://github.com/go-gorm/gorm/issues](https://github.com/go-gorm/gorm/issues)

## چت

* Gitter - [https://gitter.im/jinzhu/gorm](https://gitter.im/jinzhu/gorm)

## لینک های کاربردی

* An admin system based on GORM V2 - [GIN-VUE-ADMIN](https://github.com/flipped-aurora/gin-vue-admin)
* یک سیستم مدیریت مبتنی بر GORM V2 - - [GIN-VUE-ADMIN](https://github.com/flipped-aurora/gin-vue-admin)

* Go-admin is a middle background framework based on Gorm - [go-admin-team/go-admin](https://github.com/go-admin-team/go-admin)
* Go-admin یک چارچوب پس زمینه میانی مبتنی بر Gorm است - [go-admin-team/go-admin](https://github.com/go-admin-team/go-admin)

* Article that validate GORM as ORM to Golang with CRUD implementation with SQLite database on tests - [looking-for-an-orm-to-database-layer-with-golang](https://medium.com/@rafaelholanda90/continuing-looking-for-an-orm-to-database-layer-with-golang-7fee0316a989)
* مقاله ای که GORM را به عنوان ORM به Golang با اجرای CRUD با پایگاه داده SQLite در آزمایشات تأیید می کند - - [looking-for-an-orm-to-database-layer-with-golang](https://medium.com/@rafaelholanda90/continuing-looking-for-an-orm-to-database-layer-with-golang-7fee0316a989)

* [Strongly typed JSON/JSONB fields in GORM](https://www.terminateandstayresident.com/2022-07-13/orm-json)
* [فیلدهای JSON/JSONB به شدت قوی در GORM](https://www.terminateandstayresident.com/2022-07-13/orm-json)

* [Using GORM concurrently is not safe](https://zhuanlan.zhihu.com/p/556065676)
* [استفاده از همزمانی در GORM ایمن نیست](https://zhuanlan.zhihu.com/p/556065676)

## ویدیوها

* Gorm quick start tutorial by [piexlmax](https://github.com/piexlmax) - [GORM V2 quick start](https://www.bilibili.com/video/BV1E64y1472a#reply5032293079)
* آموزش شروع سریع Gorm توسط [piexlmax](https://github.com/piexlmax) - [GORM V2 quick start](https://www.bilibili.com/video/BV1E64y1472a#reply5032293079)

## Open Sources
## متن‌باز

* [gormt - GORM mysql to golang struct](https://github.com/xxjwxc/gormt)
* [go-paginate - cursor-based pagination](https://github.com/raphaelvigee/go-paginate)
Expand Down
26 changes: 13 additions & 13 deletions pages/fa_IR/contribute.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
title: Contribute to GORM
layout: page
layout: صفحه
---

**You can help to deliver a better GORM! there are many things that you can do:**
**شما می توانید به ارائه GORM بهتر کمک کنید! کارهای زیادی وجود دارد که می توانید انجام دهید:**

## Help others to know GORM
## به دیگران کمک کنید تا GORM را بشناسند

* Share GORM with the world by social channels, or simply tell people who might be interested
* Help newcomers to solve questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/go-gorm), [Github Issues](https://github.com/go-gorm/gorm/issues) and [Chat Rooms](/community.html#Chat)
* Write tutorials, record videos, etc... (Don't forget to add them to [the list](/community.html))
* Help to promote GORM on GitHub by [Starring](https://github.com/go-gorm/gorm/stargazers) and [Watching](https://github.com/go-gorm/gorm/watchers) the [GORM repository](https://github.com/go-gorm/gorm)
* GORM را از طریق کانال های اجتماعی با جهان به اشتراک بگذارید، یا به سادگی به افرادی که ممکن است علاقه مند هستند بگویید
* به تازه واردها کمک کنید تا سوالات را حل کنند [Stack Overflow](https://stackoverflow.com/questions/tagged/go-gorm), [Github Issues](https://github.com/go-gorm/gorm/issues) and [Chat Rooms](/community.html#Chat)
* آموزش بنویسید، فیلم ضبط کنید و غیره... (فراموش نکنید که آنها را به این لیست اضافه کنید [the list](/community.html))
* کمک به ترویج GORM در GitHub توسط [Starring](https://github.com/go-gorm/gorm/stargazers) and [Watching](https://github.com/go-gorm/gorm/watchers) the [GORM repository](https://github.com/go-gorm/gorm)

## Documentation and Writing
## مستندسازی و نگارش

* Make GORM's documentation better by writing new content, correcting existing material [https://github.com/go-gorm/gorm.io](https://github.com/go-gorm/gorm.io)
* با نوشتن محتوای جدید، اصلاح مطالب موجود، مستندات GORM را بهتر کنید [https://github.com/go-gorm/gorm.io](https://github.com/go-gorm/gorm.io)

### Translate this site
### این سایت را ترجمه کنید

You can translate the current site with [https://translate.gorm.io](https://translate.gorm.io)
می‌توانید سایت فعلی را با [https://translate.gorm.io](https://translate.gorm.io) ترجمه کنید

To translate GORM in your language you need to post a request in the [Github issues](https://github.com/go-gorm/gorm.io/issues) for it be added to [https://translate.gorm.io](https://translate.gorm.io).
برای ترجمه GORM به زبان خود، باید درخواستی را در [مشکلات Github](https://github.com/go-gorm/gorm.io/issues) ارسال کنید تا به [مشکلات Github](https://github.com/go-gorm/gorm.io/issues) اضافه شود. a href="https://translate.gorm.io">https://translate.gorm.io</a>.

## Program
## برنامه‌

* Create a pull request on [Github](https://github.com/go-gorm/gorm) to fix issues, new features
* Create open-source plugins for GORM (Don't forget to add them to [the list](/community.html#Open-Sources))
Expand Down
4 changes: 2 additions & 2 deletions pages/fa_IR/docs/advanced_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ db.Clauses(clause.Locking{
// SQL: SELECT * FROM `users` FOR SHARE OF `users`
```
The `Table` option can be used to specify the table to lock. This is useful when you are joining multiple tables and want to lock only one of them.
از گزینه `Table` می توان برای تعیین جدول برای قفل استفاده کرد. این زمانی مفید است که به چندین جدول می‌پیوندید و می‌خواهید فقط یکی از آنها را قفل کنید.
Options can be provided like `NOWAIT` which tries to acquire a lock and fails immediately with an error if the lock is not available. It prevents the transaction from waiting for other transactions to release their locks.
گزینه‌هایی مانند `NOWAIT` ارائه می‌شوند که سعی می‌کند یک قفل را بدست آورد و در صورت در دسترس نبودن قفل، فوراً با یک خطا شکست می‌خورد. It prevents the transaction from waiting for other transactions to release their locks.
```go
db.Clauses(clause.Locking{
Expand Down
2 changes: 1 addition & 1 deletion pages/fa_IR/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/fa_IR/hints.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/hints git https://github.com/go-gorm/hints">
<meta name="go-source" content="gorm.io/hints https://github.com/go-gorm/hints https://github.com/go-gorm/hints/tree/master{/dir} https://github.com/go-gorm/hints/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
<title>گرم</title>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions pages/fa_IR/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: index
layout: شاخص
description: Gorm یک ORM کاربردی است که برای زبان برنامه نویسی Go توسعه داده شده است.
subtitle: یک ORM فوق‌العاده برای زبان برنامه نویسی Go
comments: false
comments: نادرست
---

* <i class="fa fa-rocket" aria-hidden="true"></i> Full-Featured ORM
* <i class="fa fa-rocket" aria-hidden="true"></i> Associations (has one, has many, belongs to, many to many, polymorphism, single-table inheritance)
* <i class="fa fa-rocket" aria-hidden="true"></i> انجمن ها (دارای یک، دارای بسیاری، متعلق به، بسیاری به بسیاری، چندشکلی، وراثت تک جدولی)
* <i class="fa fa-rocket" aria-hidden="true"></i> Hooks (before/after create/save/update/delete/find)
* <i class="fa fa-rocket" aria-hidden="true"></i> Eager loading with Preload, Joins
* <i class="fa fa-rocket" aria-hidden="true"></i> Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
Expand Down
2 changes: 1 addition & 1 deletion pages/fr_FR/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/hi_IN/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/id_ID/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/it_IT/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/ja_JP/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/ko_KR/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/pl_PL/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/pt_BR/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
2 changes: 1 addition & 1 deletion pages/ru_RU/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Сериализатор
layout: page
---

Serializer - это расширяемый интерфейс, который позволяет настраивать способ сериализации и десериализации данных с помощью базы данных.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM предоставляет несколько сериализаторов по умолчанию: `json`, `gob`, `unixtime`, вот краткий пример того, как их использовать.

Expand Down
2 changes: 1 addition & 1 deletion pages/tr_TR/docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Serializer
layout: page
---

Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae.
Serializer is an extensible interface that allows to customize how to serialize and deserialize data with database.

GORM provides some default serializers: `json`, `gob`, `unixtime`, here is a quick example of how to use it.

Expand Down
Loading

0 comments on commit 2146bed

Please sign in to comment.