diff --git a/_translations/guide/po/id/concept_configuration.md.po b/_translations/guide/po/id/concept_configuration.md.po index e668a218..05c04a5d 100644 --- a/_translations/guide/po/id/concept_configuration.md.po +++ b/_translations/guide/po/id/concept_configuration.md.po @@ -20,38 +20,38 @@ msgstr "" #: en/views/view-injections.md #, no-wrap msgid "Configuration" -msgstr "" +msgstr "Konfigurasi" #. type: Plain text #: en/concept/configuration.md msgid "There are many ways to configure your application. We will focus on concepts used in the [default project template](https://github.com/yiisoft/app)." -msgstr "" +msgstr "Ada banyak cara untuk mengonfigurasi aplikasi Anda. Kita akan fokus pada konsep yang digunakan dalam [template proyek default](https://github.com/yiisoft/app)." #. type: Plain text #: en/concept/configuration.md msgid "Yii3 configs are part of the application. You can change many aspects of how the application works by editing configuration under `config/`." -msgstr "" +msgstr "Konfigurasi Yii3 adalah bagian dari aplikasi. Anda dapat mengubah banyak aspek cara kerja aplikasi dengan mengedit konfigurasi di bawah `config/`." #. type: Title ## #: en/concept/configuration.md #, no-wrap msgid "Config plugin" -msgstr "" +msgstr "Plugin konfigurasi" #. type: Plain text #: en/concept/configuration.md msgid "In the application template [yiisoft/config](https://github.com/yiisoft/config) is used. Since writing all application configurations from scratch is a tedious process, many packages offer default configs, and the plugin helps with copying these into the application." -msgstr "" +msgstr "Dalam template aplikasi digunakan [yiisoft/config](https://github.com/yiisoft/config). Karena menulis semua konfigurasi aplikasi dari awal adalah proses yang melelahkan, banyak paket menyediakan konfigurasi default, dan plugin ini membantu menyalin konfigurasi tersebut ke dalam aplikasi." #. type: Plain text #: en/concept/configuration.md msgid "To offer default configs, `composer.json` of the package has to have `config-plugin` section. When installing or updating packages with Composer, the plugin reads `config-plugin` sections for each dependency, copies files themselves to application `config/packages/` if they don't yet exist and writes a merge plan to `config/packages/merge_plan.php`. The merge plan defines how to merge the configs into a single big array ready to be passed to [DI container](di-container.md)." -msgstr "" +msgstr "Untuk menawarkan konfigurasi default, `composer.json` paket harus memiliki bagian `config-plugin`. Saat menginstal atau memperbarui paket dengan Composer, plugin membaca bagian `config-plugin` untuk setiap dependensi, menyalin berkas-berkas tersebut ke `config/packages/` aplikasi jika belum ada, dan menulis rencana penggabungan ke `config/packages/merge_plan.php`. Rencana penggabungan mendefinisikan bagaimana menggabungkan konfigurasi menjadi satu array besar yang siap diteruskan ke [DI container](di-container.md)." #. type: Plain text #: en/concept/configuration.md msgid "Take a look at what's in the \"yiisoft/app\" `composer.json` by default:" -msgstr "" +msgstr "Lihat apa yang ada di `composer.json` bawaan \"yiisoft/app\":" #. type: Fenced code block (json) #: en/concept/configuration.md @@ -99,48 +99,48 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "There are many named configs defined. For each name, there is a configuration." -msgstr "" +msgstr "Terdapat banyak konfigurasi bernama yang didefinisikan. Untuk setiap nama, ada sebuah konfigurasi." #. type: Plain text #: en/concept/configuration.md msgid "A string means that the plugin takes config as is and merges it with same-named configs from packages you require. That happens if these packages have `config-plugin` in their `composer.json`." -msgstr "" +msgstr "Sebuah string berarti plugin mengambil konfigurasi apa adanya dan menggabungkannya dengan konfigurasi bernama sama dari paket yang Anda butuhkan. Hal ini terjadi jika paket-paket tersebut memiliki `config-plugin` di `composer.json` mereka." #. type: Plain text #: en/concept/configuration.md msgid "The array means that the plugin will merge many files in the order they're specified." -msgstr "" +msgstr "Array berarti plugin akan menggabungkan banyak berkas sesuai urutan yang ditentukan." #. type: Plain text #: en/concept/configuration.md msgid "`?` at the beginning of the file path indicated that the file may be absent. In this case, it's skipped." -msgstr "" +msgstr "`?` di awal path berkas menunjukkan bahwa berkas tersebut mungkin tidak ada. Dalam kasus ini, berkas akan dilewati." #. type: Plain text #: en/concept/configuration.md msgid "`$` at the beginning of the name means a reference to another named config." -msgstr "" +msgstr "`$` di awal nama berarti referensi ke konfigurasi bernama lain." #. type: Plain text #: en/concept/configuration.md msgid "`params` is a bit special because it's reserved for application parameters. These are automatically available as `$params` in all other configuration files." -msgstr "" +msgstr "`params` agak istimewa karena dicadangkan untuk parameter aplikasi. Nilai-nilai ini otomatis tersedia sebagai `$params` di semua berkas konfigurasi lainnya." #. type: Plain text #: en/concept/configuration.md msgid "You can learn more about config plugin features [from its documentation](https://github.com/yiisoft/config/blob/master/README.md)." -msgstr "" +msgstr "Anda dapat mempelajari lebih lanjut tentang fitur plugin konfigurasi [dari dokumentasinya](https://github.com/yiisoft/config/blob/master/README.md)." #. type: Title ## #: en/concept/configuration.md #, no-wrap msgid "Config files" -msgstr "" +msgstr "Berkas konfigurasi" #. type: Plain text #: en/concept/configuration.md msgid "Now, as you know how the plugin assembles configs, look at `config` directory:" -msgstr "" +msgstr "Sekarang, setelah Anda tahu bagaimana plugin merangkai konfigurasi, lihat direktori `config`:" #. type: Fenced code block #: en/concept/configuration.md @@ -172,12 +172,12 @@ msgstr "" #: en/concept/configuration.md #, no-wrap msgid "Container configuration" -msgstr "" +msgstr "Konfigurasi container" #. type: Plain text #: en/concept/configuration.md msgid "The application consists of a set of services registered in a [dependency container](di-container.md). The config files that responsible for direct dependency container configuration are under `common/`, `console/` and `web/` directories. We use `web/` for config specific to web application and `console/` for config specific to console commands. Both web and console are sharing configuration under `common/`." -msgstr "" +msgstr "Aplikasi terdiri dari sekumpulan layanan yang terdaftar di [dependency container](di-container.md). Berkas konfigurasi yang bertanggung jawab atas konfigurasi langsung dependency container berada di bawah direktori `common/`, `console/` dan `web/`. Kita menggunakan `web/` untuk konfigurasi khusus aplikasi web dan `console/` untuk konfigurasi khusus perintah konsol. Baik web maupun console berbagi konfigurasi di bawah `common/`." #. type: Fenced code block (php) #: en/concept/configuration.md @@ -203,38 +203,38 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "Config plugin passes special `$params` variable to all config files. The code passes its values to the service." -msgstr "" +msgstr "Plugin konfigurasi meneruskan variabel khusus `$params` ke semua berkas konfigurasi. Potongan kode di atas meneruskan nilainya ke layanan." #. type: Plain text #: en/concept/configuration.md msgid "The guide on [\"Dependency injection and container\"](di-container.md) describes the configuration format and the idea of dependency injection in detail." -msgstr "" +msgstr "Panduan tentang [\"Dependency injection and container\"](di-container.md) menjelaskan format konfigurasi dan gagasan dependency injection secara rinci." #. type: Plain text #: en/concept/configuration.md msgid "For convenience, there is a naming convention for custom string keys:" -msgstr "" +msgstr "Untuk kenyamanan, ada konvensi penamaan untuk kunci string kustom:" #. type: Bullet: '1. ' #: en/concept/configuration.md msgid "Prefix package name such as `yiisoft/cache-file/custom-definition`." -msgstr "" +msgstr "Awali dengan nama paket seperti `yiisoft/cache-file/custom-definition`." #. type: Bullet: '2. ' #: en/concept/configuration.md msgid "In case configuration are for the application itself, skip package prefix, such as `custom-definition`." -msgstr "" +msgstr "Jika konfigurasi untuk aplikasi itu sendiri, lewati prefiks paket, mis. `custom-definition`." #. type: Title ### #: en/concept/configuration.md #, no-wrap msgid "Service providers" -msgstr "" +msgstr "Service provider" #. type: Plain text #: en/concept/configuration.md msgid "As an alternative to registering dependencies directly, you can use service providers. Basically, these are classes that given parameters are configuring and registering services within the container. Similar to three dependency configuration files described, there are three configs for specifying service providers: `providers-console.php` for console commands, `providers-web.php` for web application and `providers.php` for both:" -msgstr "" +msgstr "Sebagai alternatif untuk mendaftarkan dependensi secara langsung, Anda dapat menggunakan service provider. Pada dasarnya, ini adalah kelas yang, dengan parameter tertentu, mengonfigurasi dan mendaftarkan layanan dalam container. Mirip dengan tiga berkas konfigurasi dependency yang dijelaskan sebelumnya, ada tiga konfigurasi untuk menentukan service provider: `providers-console.php` untuk perintah konsol, `providers-web.php` untuk aplikasi web dan `providers.php` untuk keduanya:" #. type: Fenced code block (php) #: en/concept/configuration.md @@ -262,17 +262,17 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "In this config keys are provider names. By convention these are `vendor/package-name/provider-name`. Values are provider class names. These classes could be either created in the project itself or provided by a package." -msgstr "" +msgstr "Dalam konfigurasi ini kunci adalah nama provider. Menurut konvensi ini berupa `vendor/package-name/provider-name`. Nilainya adalah nama kelas provider. Kelas-kelas ini bisa dibuat di proyek itu sendiri atau disediakan oleh paket." #. type: Plain text #: en/concept/configuration.md msgid "If you need to configure some options for a service, similar to direct container configuration, take values from `$params` and pass them to providers." -msgstr "" +msgstr "Jika Anda perlu mengonfigurasi beberapa opsi untuk sebuah layanan, mirip dengan konfigurasi container langsung, ambil nilai dari `$params` dan teruskan ke provider." #. type: Plain text #: en/concept/configuration.md msgid "Provider should implement a single method, `public function register(Container $container): void`. In this method you need to add a service to container using `set()` method. Below is a provider for a cache service:" -msgstr "" +msgstr "Provider harus mengimplementasikan satu metode, `public function register(Container $container): void`. Dalam metode ini Anda perlu menambahkan layanan ke container menggunakan metode `set()`. Di bawah ini contoh provider untuk layanan cache:" #. type: Fenced code block (php) #: en/concept/configuration.md @@ -313,12 +313,12 @@ msgstr "" #: en/concept/configuration.md #, no-wrap msgid "Routes" -msgstr "" +msgstr "Rute" #. type: Plain text #: en/concept/configuration.md msgid "You can configure how web application responds to certain URLs in `config/routes.php`:" -msgstr "" +msgstr "Anda dapat mengonfigurasi bagaimana aplikasi web merespons URL tertentu di `config/routes.php`:" #. type: Fenced code block (php) #: en/concept/configuration.md @@ -335,18 +335,18 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "Read more about it in [\"Routes\"](../runtime/routing.md)." -msgstr "" +msgstr "Baca lebih lanjut tentang ini di [\"Routes\"](../runtime/routing.md)." #. type: Title # #: en/concept/configuration.md en/concept/events.md #, no-wrap msgid "Events" -msgstr "" +msgstr "Event" #. type: Plain text #: en/concept/configuration.md msgid "Many services emit certain events that you can attach to. You could do that via three config files: `events-web.php` for web application events, `events-console.php` for console events and `events.php` for both. The configuration is an array where keys are event names and values are an array of handlers:" -msgstr "" +msgstr "Banyak layanan memancarkan event tertentu yang dapat Anda kaitkan. Anda dapat melakukannya melalui tiga berkas konfigurasi: `events-web.php` untuk event aplikasi web, `events-console.php` untuk event konsol dan `events.php` untuk keduanya. Konfigurasinya berupa array di mana kunci adalah nama event dan nilainya adalah array handler:" #. type: Fenced code block (php) #: en/concept/configuration.md @@ -383,18 +383,18 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "Read more about it in [\"Events\"](events.md)." -msgstr "" +msgstr "Baca lebih lanjut di [\"Events\"](events.md)." #. type: Title ### #: en/concept/configuration.md #, no-wrap msgid "Parameters" -msgstr "" +msgstr "Parameter" #. type: Plain text #: en/concept/configuration.md msgid "Parameters, `config/params.php` store configuration values that are used in other config files to configuring services and service providers." -msgstr "" +msgstr "Parameter di `config/params.php` menyimpan nilai konfigurasi yang digunakan dalam berkas konfigurasi lain untuk mengonfigurasi layanan dan service provider." #. type: Plain text #: en/concept/configuration.md @@ -404,11 +404,14 @@ msgid "" "> Don't use parameters, constants or environment variables directly in your application, configure\n" "> services instead.\n" msgstr "" +"> [!TIP]\n" +"> Jangan gunakan parameter, konstanta, atau variabel lingkungan secara langsung dalam aplikasi Anda, konfigurasikan\n" +"> layanan sebagai gantinya.\n" #. type: Plain text #: en/concept/configuration.md msgid "Default application `params.php` looks like the following:" -msgstr "" +msgstr "`params.php` aplikasi bawaan terlihat seperti berikut:" #. type: Fenced code block (php) #: en/concept/configuration.md @@ -467,40 +470,40 @@ msgstr "" #. type: Plain text #: en/concept/configuration.md msgid "For convenience, there is a naming convention about parameters:" -msgstr "" +msgstr "Untuk kenyamanan, ada konvensi penamaan mengenai parameter:" #. type: Bullet: '1. ' #: en/concept/configuration.md msgid "Group parameters package name such as `yiisoft/cache-file`." -msgstr "" +msgstr "Kelompokkan parameter berdasarkan nama paket seperti `yiisoft/cache-file`." #. type: Bullet: '2. ' #: en/concept/configuration.md msgid "In case parameters are for the application itself, as in `app`, skip package prefix." -msgstr "" +msgstr "Jika parameter untuk aplikasi itu sendiri, seperti pada `app`, lewati prefiks paket." #. type: Bullet: '3. ' #: en/concept/configuration.md msgid "In case there are many services in the package, such as `file-target` and `file-rotator` in `yiisoft/log-target-file` package, group parameters by service name." -msgstr "" +msgstr "Jika ada banyak layanan dalam paket, seperti `file-target` dan `file-rotator` dalam paket `yiisoft/log-target-file`, kelompokkan parameter berdasarkan nama layanan." #. type: Bullet: '4. ' #: en/concept/configuration.md msgid "Use `enabled` as parameter name to be able to disable or enable a service, such as `yiisoft/yii-debug`." -msgstr "" +msgstr "Gunakan `enabled` sebagai nama parameter agar Anda dapat menonaktifkan atau mengaktifkan layanan, mis. `yiisoft/yii-debug`." #. type: Title ### #: en/concept/configuration.md #, no-wrap msgid "Package configs" -msgstr "" +msgstr "Konfigurasi paket" #. type: Plain text #: en/concept/configuration.md msgid "Config plugin described copy default package configurations to `packages/` directory. Once copied you own the configs, so you can adjust these as you like. `yiisoft/` in the default template stands for package vendor. Since only `yiisoft` packages are in template, there's a single directory. `merge_plan.php` is used in runtime to get the order on how configs are merged. Note that for config keys there should be a single source of truth. One config can't override values of another config." -msgstr "" +msgstr "Plugin konfigurasi yang dijelaskan menyalin konfigurasi paket default ke direktori `packages/`. Setelah disalin, Anda memiliki konfigurasi tersebut, sehingga Anda dapat menyesuaikannya sesuka hati. `yiisoft/` pada template default mewakili vendor paket. Karena hanya paket `yiisoft` yang ada di template, ada satu direktori. `merge_plan.php` digunakan saat runtime untuk mendapatkan urutan bagaimana konfigurasi digabungkan. Perlu dicatat bahwa untuk kunci konfigurasi harus ada satu sumber kebenaran. Satu konfigurasi tidak dapat menimpa nilai konfigurasi lain." #. type: Plain text #: en/concept/configuration.md msgid "`dist.lock` is used by the plugin to keep track of changes and display diff between current config and example one." -msgstr "" +msgstr "`dist.lock` digunakan oleh plugin untuk melacak perubahan dan menampilkan diff antara konfigurasi saat ini dan contoh konfigurasi." diff --git a/_translations/guide/po/id/concept_events.md.po b/_translations/guide/po/id/concept_events.md.po index 65836ca2..32294538 100644 --- a/_translations/guide/po/id/concept_events.md.po +++ b/_translations/guide/po/id/concept_events.md.po @@ -19,7 +19,7 @@ msgstr "" #: en/concept/configuration.md en/concept/events.md #, no-wrap msgid "Events" -msgstr "" +msgstr "Event" #. type: Plain text #: en/concept/events.md diff --git a/_translations/guide/po/id/tutorial_using-yii-with-roadrunner.md.po b/_translations/guide/po/id/tutorial_using-yii-with-roadrunner.md.po index 396e6341..22985948 100644 --- a/_translations/guide/po/id/tutorial_using-yii-with-roadrunner.md.po +++ b/_translations/guide/po/id/tutorial_using-yii-with-roadrunner.md.po @@ -20,7 +20,7 @@ msgstr "" #: en/views/view-injections.md #, no-wrap msgid "Configuration" -msgstr "" +msgstr "Konfigurasi" #. type: Title # #: en/tutorial/using-yii-with-roadrunner.md diff --git a/_translations/guide/po/id/views_view-injections.md.po b/_translations/guide/po/id/views_view-injections.md.po index 08f21f2d..22c0bdbd 100644 --- a/_translations/guide/po/id/views_view-injections.md.po +++ b/_translations/guide/po/id/views_view-injections.md.po @@ -21,7 +21,7 @@ msgstr "" #: ../../guide/en/views/view-injections.md #, no-wrap msgid "Configuration" -msgstr "" +msgstr "Konfigurasi" #. type: Title # #: ../../guide/en/views/view-injections.md diff --git a/guide/id/concept/configuration.md b/guide/id/concept/configuration.md index 6755b9bf..ccec875b 100644 --- a/guide/id/concept/configuration.md +++ b/guide/id/concept/configuration.md @@ -1,28 +1,30 @@ -# Configuration +# Konfigurasi -There are many ways to configure your application. We will focus on concepts -used in the [default project template](https://github.com/yiisoft/app). +Ada banyak cara untuk mengonfigurasi aplikasi Anda. Kita akan fokus pada +konsep yang digunakan dalam [template proyek +default](https://github.com/yiisoft/app). -Yii3 configs are part of the application. You can change many aspects of how -the application works by editing configuration under `config/`. +Konfigurasi Yii3 adalah bagian dari aplikasi. Anda dapat mengubah banyak +aspek cara kerja aplikasi dengan mengedit konfigurasi di bawah `config/`. -## Config plugin +## Plugin konfigurasi -In the application template -[yiisoft/config](https://github.com/yiisoft/config) is used. Since writing -all application configurations from scratch is a tedious process, many -packages offer default configs, and the plugin helps with copying these into -the application. +Dalam template aplikasi digunakan +[yiisoft/config](https://github.com/yiisoft/config). Karena menulis semua +konfigurasi aplikasi dari awal adalah proses yang melelahkan, banyak paket +menyediakan konfigurasi default, dan plugin ini membantu menyalin +konfigurasi tersebut ke dalam aplikasi. -To offer default configs, `composer.json` of the package has to have -`config-plugin` section. When installing or updating packages with -Composer, the plugin reads `config-plugin` sections for each dependency, -copies files themselves to application `config/packages/` if they don't yet -exist and writes a merge plan to `config/packages/merge_plan.php`. The merge -plan defines how to merge the configs into a single big array ready to be -passed to [DI container](di-container.md). +Untuk menawarkan konfigurasi default, `composer.json` paket harus memiliki +bagian `config-plugin`. Saat menginstal atau memperbarui paket dengan +Composer, plugin membaca bagian `config-plugin` untuk setiap dependensi, +menyalin berkas-berkas tersebut ke `config/packages/` aplikasi jika belum +ada, dan menulis rencana penggabungan ke +`config/packages/merge_plan.php`. Rencana penggabungan mendefinisikan +bagaimana menggabungkan konfigurasi menjadi satu array besar yang siap +diteruskan ke [DI container](di-container.md). -Take a look at what's in the "yiisoft/app" `composer.json` by default: +Lihat apa yang ada di `composer.json` bawaan "yiisoft/app": ```json "config-plugin-options": { @@ -64,32 +66,33 @@ Take a look at what's in the "yiisoft/app" `composer.json` by default: }, ``` -There are many named configs defined. For each name, there is a -configuration. +Terdapat banyak konfigurasi bernama yang didefinisikan. Untuk setiap nama, +ada sebuah konfigurasi. -A string means that the plugin takes config as is and merges it with -same-named configs from packages you require. That happens if these -packages have `config-plugin` in their `composer.json`. +Sebuah string berarti plugin mengambil konfigurasi apa adanya dan +menggabungkannya dengan konfigurasi bernama sama dari paket yang Anda +butuhkan. Hal ini terjadi jika paket-paket tersebut memiliki `config-plugin` +di `composer.json` mereka. -The array means that the plugin will merge many files in the order they're -specified. +Array berarti plugin akan menggabungkan banyak berkas sesuai urutan yang +ditentukan. -`?` at the beginning of the file path indicated that the file may be -absent. In this case, it's skipped. +`?` di awal path berkas menunjukkan bahwa berkas tersebut mungkin tidak +ada. Dalam kasus ini, berkas akan dilewati. -`$` at the beginning of the name means a reference to another named config. +`$` di awal nama berarti referensi ke konfigurasi bernama lain. -`params` is a bit special because it's reserved for application -parameters. These are automatically available as `$params` in all other -configuration files. +`params` agak istimewa karena dicadangkan untuk parameter +aplikasi. Nilai-nilai ini otomatis tersedia sebagai `$params` di semua +berkas konfigurasi lainnya. -You can learn more about config plugin features [from its -documentation](https://github.com/yiisoft/config/blob/master/README.md). +Anda dapat mempelajari lebih lanjut tentang fitur plugin konfigurasi [dari +dokumentasinya](https://github.com/yiisoft/config/blob/master/README.md). -## Config files +## Berkas konfigurasi -Now, as you know how the plugin assembles configs, look at `config` -directory: +Sekarang, setelah Anda tahu bagaimana plugin merangkai konfigurasi, lihat +direktori `config`: ``` common/ @@ -114,14 +117,14 @@ providers-web.php routes.php ``` -### Container configuration +### Konfigurasi container -The application consists of a set of services registered in a [dependency -container](di-container.md). The config files that responsible for direct -dependency container configuration are under `common/`, `console/` and -`web/` directories. We use `web/` for config specific to web application -and `console/` for config specific to console commands. Both web and console -are sharing configuration under `common/`. +Aplikasi terdiri dari sekumpulan layanan yang terdaftar di [dependency +container](di-container.md). Berkas konfigurasi yang bertanggung jawab atas +konfigurasi langsung dependency container berada di bawah direktori +`common/`, `console/` dan `web/`. Kita menggunakan `web/` untuk konfigurasi +khusus aplikasi web dan `console/` untuk konfigurasi khusus perintah +konsol. Baik web maupun console berbagi konfigurasi di bawah `common/`. ```php [!TIP] -> Don't use parameters, constants or environment variables directly in your application, configure -> services instead. +> Jangan gunakan parameter, konstanta, atau variabel lingkungan secara langsung dalam aplikasi Anda, konfigurasikan +> layanan sebagai gantinya. -Default application `params.php` looks like the following: +`params.php` aplikasi bawaan terlihat seperti berikut: ```php