# Prevodilački projekti

## Prevodilačka organizacija

Weblate organizes translatable VCS content of project/components into a
tree-like structure. You can additionally organize components within a project
using categories.

* The bottom level object is [Konfiguracija projekta](#project), which should hold all translations belonging
  together (for example translation of an application in several versions
  and/or accompanying documentation).
* The middle level is optionally created by [Kategorija](#category). The categories can
  be nested to achieve more complex structure.
* On the level above, [Konfiguracija komponente](#component), which is
  actually the component to translate, you define the VCS repository to use, and
  the mask of files to translate.
* Above [Konfiguracija komponente](#component) there are individual translations, handled automatically by Weblate as translation
  files (which match [Maska datoteke](#component-filemask) defined in [Konfiguracija komponente](#component)) appear in the VCS repository.

Weblate supports a wide range of translation formats (both bilingual and
monolingual ones) supported by Translate Toolkit, see [Localization file formats](https://docs.weblate.org/hr/latest/formats.md#formats).

#### NOTE
You can share cloned VCS repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls).
Using this feature is highly recommended when you have many
components sharing the same VCS. It improves performance and decreases
required disk space.

<a id="adding-projects"></a>

## Adding translation projects and components

Based on your permissions, new translation projects and components can be
created. It is always permitted for users with the Add new projects
permission, and if your instance uses billing (e.g. like
[https://hosted.weblate.org/](https://hosted.weblate.org/) see [Naplata](https://docs.weblate.org/hr/latest/admin/optionals.md#billing)), you can also create those
based on your plans allowance from the user account that manages billing.
Projects can also be created in a workspace by users who have the
Add projects to workspace permission in that workspace. Creating a
project without selecting a workspace requires the site-wide
Add new projects permission. See
[Project creation and moves](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-project-creation) for details.

#### HINT
To grant every user permission to create new projects create new
[Automatska dodjeljivanja timu](https://docs.weblate.org/hr/latest/admin/access.md#autoteam) for the Project creators team.

Svoj trenutačni plan naplate možeš pogledati na zasebnoj stranici:

![image](screenshots/user-billing.webp)

The project creation can be initiated from there, or using the menu in the navigation
bar, filling in basic info about the translation project to complete addition of it:

![image](screenshots/user-add-project.webp)

After creating the project, you are taken directly to the project page:

![image](screenshots/user-add-project-done.webp)

Creating a new translation component can be initiated via a single click there.
The process of creating a component is multi-staged and automatically detects most
translation parameters. There are several approaches to creating component:

Iz kontrole verzija
: Stvara komponentu iz eksternog repozitorija kontrole verzija.

Iz postojeće komponente
: Stvara dodatnu komponentu postojećoj komponenti biranjem drugačijih datoteka.

Dodatna grana
: Stvara dodatnu komponentu postojećoj komponenti, ali za jednu drugu granu.

Prenesi prevodilačke datoteke
: Upload translation files to Weblate in case you do not have version control
  or do not want to integrate it with Weblate. You can later update the
  content using the web interface or [Weblateov REST API](https://docs.weblate.org/hr/latest/api.md#api).

Prevedi dokument
: Upload single document or translation file and translate that.

Počni ispočetka
: Stvori prazan prevodilački projekt i ručno dodaj izraze.

Once you have existing translation components, you can also easily add new ones
for additional files or branches using same repository.

First you need to fill in name and repository location:

![image](screenshots/user-add-component-init.webp)

On the next page, you are presented with a list of discovered translatable resources:

![image](screenshots/user-add-component-discovery.webp)

As a last step, you review the translation component info and fill in optional details:

![image](screenshots/user-add-component.webp)

#### SEE ALSO
* [The Django admin interface](https://docs.weblate.org/hr/latest/admin/admin.md#admin-interface)
* [Konfiguracija projekta](#project)
* [Konfiguracija komponente](#component)

<a id="project"></a>

## Konfiguracija projekta

Create a translation project and then add a new component for translation in it.
The project is like a shelf, in which real translations are stacked. All
components in the same project share suggestions and their dictionary; the
translations are also automatically propagated through all components in a single
project (unless turned off in the component configuration), see [Prevodilačka memorija](https://docs.weblate.org/hr/latest/admin/memory.md#memory).

#### SEE ALSO
[Integracija s Weblateom](https://docs.weblate.org/hr/latest/devel/integration.md)

These basic attributes set up and inform translators of a project:

<a id="project-name"></a>

### Ime projekta

Opširno ime projekta, koristi se za prikaz imena projekta.

#### SEE ALSO
[`PROJECT_NAME_RESTRICT_RE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_NAME_RESTRICT_RE)

<a id="project-slug"></a>

### URL identifikator

Prikladno ime projekta za URL-ove.

<a id="project-web"></a>

### Web-stranica projekta

URL na kojem prevoditelji mogu pronaći više informacija o projektu.

Ovo je obavezan parametar ukoliko nije isključen postavkom [`WEBSITE_REQUIRED`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-WEBSITE_REQUIRED).

#### SEE ALSO
* [`PROJECT_WEB_RESTRICT_HOST`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_HOST)
* [`PROJECT_WEB_RESTRICT_ALLOWLIST`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_ALLOWLIST)
* [`PROJECT_WEB_RESTRICT_NUMERIC`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_NUMERIC)
* [`PROJECT_WEB_RESTRICT_PRIVATE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_PRIVATE)
* [`PROJECT_WEB_RESTRICT_RE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_RE)

<a id="project-instructions"></a>

### Upute za prevođenje

Tekst koji opisuje proces lokalizacije u projektu i sve druge korisne informacije za prevoditelje. Markdown se može koristiti za formatiranje teksta ili umetanje poveznica.

Good translation instructions explain how contributors should submit
translations, what review they should expect, how they can report problems with
source strings, and where translations can be tested or when they are released.

<a id="project-license"></a>

### Licenca prijevoda

Default translation license for components in this project.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Licenca prijevoda](#component-license)

<a id="project-agreement"></a>

### Licencni ugovor za doprinositelje

Default contributor license agreement for components in this project. Markdown
can be used for text formatting or inserting links.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Licencni ugovor za doprinositelje](#component-agreement)

<a id="project-use-shared-tm"></a>

### Koristi dijeljenu prevodilačku memoriju

Whether to use shared translation memory, see [Dijeljena prevodilačka memorija](https://docs.weblate.org/hr/latest/admin/memory.md#shared-tm) for more details.

Standardna vrijednost se može promijeniti pomoću [`DEFAULT_SHARED_TM`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_SHARED_TM).

<a id="project-contribute-shared-tm"></a>

### Doprinesi dijeljenoj prevodilačkoj memoriji

Whether to contribute to shared translation memory, see [Dijeljena prevodilačka memorija](https://docs.weblate.org/hr/latest/admin/memory.md#shared-tm) for more details.

This also affects whether the project can be used as source for [Automatsko prevođenje](https://docs.weblate.org/hr/latest/admin/continuous.md#automatic-translation).

Standardna vrijednost se može promijeniti pomoću [`DEFAULT_SHARED_TM`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_SHARED_TM).

#### NOTE
This option is unavailable on Hosted Weblate, it is toggled together with [Koristi dijeljenu prevodilačku memoriju](#project-use-shared-tm).

<a id="project-use-workspace-tm"></a>

### Use workspace translation memory

Whether to use translation memory shared by projects in the same workspace,
see [Translation-memory scopes](https://docs.weblate.org/hr/latest/admin/memory.md#memory-scopes) for more details. The workspace has to allow workspace
translation memory as well.

<a id="project-contribute-workspace-tm"></a>

### Contribute to workspace translation memory

Whether to contribute translations to the translation memory shared by
projects in the same workspace. The workspace has to allow contribution as
well.

#### NOTE
This option is unavailable on Hosted Weblate, it is toggled together with [Use workspace translation memory](#project-use-workspace-tm).

<a id="project-autoclean-tm"></a>

### Automatski očisti prevodilačku memoriju

#### Versionadded
Added in version 5.13.

Whether to replace older automatically created translation memory entries when a
translation becomes active.

Matching is based on the same source string, component, context, and
source/target language pair. Uploaded translation memory files are not
affected.

#### SEE ALSO
* [Stanje prevodilačke memorije](https://docs.weblate.org/hr/latest/admin/memory.md#memory-status)
* [Automatski očisti prevodilačku memoriju](https://docs.weblate.org/hr/latest/admin/memory.md#autoclean-tm)

<a id="project-access-control"></a>

### Kontrola pristupa

Configure per project access control, see [Kontrola pristupa projektu](https://docs.weblate.org/hr/latest/admin/access.md#acl) for more details.

The default value can be changed by [`DEFAULT_ACCESS_CONTROL`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_ACCESS_CONTROL).

<a id="project-public-sharing"></a>

### Public sharing

Allow anonymous access to the project’s engage pages and rendered status
widgets. This setting applies to Private and Custom
projects; Public and Protected projects are always
publicly shareable.

Public sharing exposes project and component names, including restricted
components, together with translation statistics, languages, and progress. It
does not grant access to project pages, translations, repositories, or the API.

Changing this setting has no immediate effect while the project is
Public or Protected, but the stored value is retained
and applies if the project is later changed to Private or
Custom. Sitemaps for project, component, and translation pages only
include pages that are directly accessible anonymously. Engage sitemaps follow
the public sharing setting.

Changing this setting requires the Manage project access
permission. The status widget configuration page continues to use normal
project access control.

When [`REQUIRE_LOGIN`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-REQUIRE_LOGIN) is enabled, [`PUBLIC_ENGAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PUBLIC_ENGAGE) must also be
enabled for anonymous access to engage pages and sitemaps.

<a id="project-enforced-2fa"></a>

### Nametnuta dvofaktorska autentifikacija

#### Versionadded
Added in version 5.7.

Enforce [Dvofaktorska autentifikacija](https://docs.weblate.org/hr/latest/admin/auth.md#fa) for all contributors. Users won’t be allowed
to perform any operations within the project without having it configured.

<a id="project-translation-review"></a>

### Aktiviraj preglede

Aktiviraj radni tok pregleda za prijevode, pogledaj [Određeni pregledatelji](https://docs.weblate.org/hr/latest/workflows.md#reviews).

#### SEE ALSO
* [`DEFAULT_TRANSLATION_REVIEW`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_TRANSLATION_REVIEW)
* [Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization)

<a id="project-source-review"></a>

### Aktiviraj preglede izvora

Aktiviraj radni tok pregleda za izvorne izraze, pogledaj [Pregledi izvornih izraza](https://docs.weblate.org/hr/latest/workflows.md#source-reviews).

#### SEE ALSO
* [`DEFAULT_SOURCE_REVIEW`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_SOURCE_REVIEW)
* [Receiving source string feedback](https://docs.weblate.org/hr/latest/devel/review.md#report-source)
* [Komentari](https://docs.weblate.org/hr/latest/user/translating.md#user-comments)

<a id="project-commit-policy"></a>

### Filtar za kvalitetu prijevoda

#### Versionadded
Added in version 5.13.

The commit policy determines which translations are included when committing changes
to the version control system. This setting is available at the project level and
supports the following options:

* **Commit all translations regardless of quality**: All translations will be committed,
  including those marked as needing editing or not reviewed.
* **Skip translations marked as needing editing**: Only translations that don’t have the
  „needs editing”, „needs rewriting” or „needs checking” state will be committed.
* **Only include approved translations**: Only translations that have been approved by a
  reviewer will be committed. This option requires [Aktiviraj preglede](#project-translation-review)
  to be enabled.

The approved-only policy applies only to translations with reviews enabled.
Languages with reviews disabled through [Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization) commit all
translations, including those marked as needing editing. Source strings follow
the same rule using [Aktiviraj preglede izvora](#project-source-review).

Components linked to a repository in another project follow their own project’s
commit policy.

If the editor shows “Only approved translations are written to the translation
file.” or “Approval is required before this translation can be written to the
translation file.”, the quality filter prevents writing the translation to the
file until it is approved. This notice does not confirm that your current edit
was saved; resolve any validation errors before leaving the editor. The project
policy description qualifies this as “For languages with reviews enabled, only
approved translations are written to the translation file.” Having permission
to approve translations does not automatically approve your edits.

For a language that does not use reviews, open its page in the project and
choose Settings. Enable Customize translation workflow for
this language in this project, then turn Enable reviews off. This
requires permission to edit project settings. See [Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization).
With the approved-only policy, this makes all translation states eligible for
writing to files for that language, including those needing editing.

If reviews are needed, users with both review and bulk-edit permissions can use
[Skupno uređivanje](https://docs.weblate.org/hr/latest/user/translating.md#bulk-edit) to approve existing translations they have reviewed. Eligibility
for writing to a translation file does not mean the change is immediately
committed or pushed; see [Lazy commits](https://docs.weblate.org/hr/latest/admin/continuous.md#lazy-commit) and [Prenesi pri spremanju izmjene](#component-push-on-commit).

<a id="project-enable-hooks"></a>

### Aktiviraj petlje

Whether unauthenticated [Pokretači obavijesti](https://docs.weblate.org/hr/latest/api.md#hooks) are to be used for this repository.

#### SEE ALSO
* [Datoteka posrednog jezika](#component-intermediate)
* [Sustav za provjeru kvalitete izvornih izraza](https://docs.weblate.org/hr/latest/workflows.md#source-quality-gateway)
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [Definicije jezika](https://docs.weblate.org/hr/latest/admin/languages.md#languages)

<a id="project-language-aliases"></a>

### Aliasi jezika

Define language codes mapping when importing translations into Weblate. Use
this when language codes are inconsistent in your repositories and you want to
get a consistent view in Weblate or in case you want to use non-standard naming
of your translation files.

The typical use case might be mapping American English to English: `en_US:en`

Multiple mappings to be separated by comma: `en_GB:en,en_US:en`

Using non standard code: `ia_FOO:ia`

#### HINT
The language codes are mapped when matching the translation files and the
matches are case sensitive, so ensure you use the source language codes
in same form as used in the filenames.

#### SEE ALSO
* [Dodavanje novih prijevoda](https://docs.weblate.org/hr/latest/devel/translations.md#adding-translation)
* [Kod jezika](https://docs.weblate.org/hr/latest/admin/languages.md#language-code)
* [Obrada jezičnih kodova](https://docs.weblate.org/hr/latest/admin/languages.md#language-parsing-codes)

<a id="project-new-lang"></a>

### Dodavanje novog prijevoda

Default behavior for requests to create new translations in components in this
project.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Dodavanje novog prijevoda](#component-new-lang)
* [Limiting translation languages](https://docs.weblate.org/hr/latest/workflows.md#workflow-language-restrictions)

<a id="project-language-code-style"></a>

### Stil jezičnog koda

Default language code style for translations created by Weblate in components
in this project.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Stil jezičnog koda](#component-language-code-style)

<a id="project-secondary-language"></a>

### Sekundarni jezik

#### Versionadded
Added in version 5.11.

Dodatni jezik koji će se prikazivati zajedno s izvornim jezikom prilikom prevođenja.

Optionally, it can be also used as a source for the machine translation.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Sekundarni jezici](https://docs.weblate.org/hr/latest/user/profile.md#secondary-languages)
* [Izvorni izrazi za strojno prevođenje](https://docs.weblate.org/hr/latest/admin/machine.md#mt-sources)

<a id="project-check-flags"></a>

### Prevodilačke oznake

#### Versionadded
Added in version 5.11.

Customization of quality checks and other Weblate behavior, see [Customizing behavior using flags](https://docs.weblate.org/hr/latest/admin/checks.md#custom-checks).

Workspace, project, component, and translation flags are merged.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)

<a id="project-commit-message"></a>

<a id="project-add-message"></a>

<a id="project-delete-message"></a>

<a id="project-merge-message"></a>

<a id="project-addon-message"></a>

<a id="project-pull-message"></a>

### Commit, add, delete, merge, add-on, and merge request messages

Default commit and merge request message templates for components in this
project.

The default values can be changed by [`DEFAULT_ADD_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_ADD_MESSAGE),
[`DEFAULT_ADDON_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_ADDON_MESSAGE), [`DEFAULT_COMMIT_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_COMMIT_MESSAGE),
[`DEFAULT_DELETE_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_DELETE_MESSAGE), [`DEFAULT_MERGE_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_MERGE_MESSAGE),
[`DEFAULT_PULL_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_PULL_MESSAGE).

The built-in defaults follow Conventional Commits and include
Weblate links where available. Use Restore site default next to a
message editor to restore the current installation default for that message;
for inherited values, this also disables inheritance for that message.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Označavanje u predlošcima](#markup)

<a id="component"></a>

## Konfiguracija komponente

A component is a grouping of something for translation. You enter a VCS repository location
and file mask for which files you want translated, and Weblate automatically fetches from this VCS,
and finds all matching translatable files.

#### SEE ALSO
[Integracija s Weblateom](https://docs.weblate.org/hr/latest/devel/integration.md)

You can find some examples of typical configurations in the [Localization file formats](https://docs.weblate.org/hr/latest/formats.md#formats).

#### NOTE
It is recommended to keep translation components to a reasonable size - split
the translation by anything that makes sense in your case (individual
apps or add-ons, book chapters or websites).

Weblate easily handles translations with 10000s of strings, but it is harder
to split work and coordinate among translators with such large translation components.

Should the language definition for a translation be missing, an empty definition is
created and named as „cs_CZ (generated)”. You should adjust the definition and
report this back to the Weblate authors, so that the missing languages can be included in
next release.

The component contains all important parameters for working with the VCS, and
for getting translations out of it:

<a id="component-name"></a>

### Ime komponente

Verbose component name, used to display the component name.

<a id="component-slug"></a>

### Identifikator komponente

Ime komponente prikladno za URL-ove.

<a id="component-project"></a>

### Projekt komponente

[Konfiguracija projekta](#project) where the component belongs.

<a id="component-vcs"></a>

### Sustav za kontrolu verzija

VCS to use, see [Integracija kontrole verzija](https://docs.weblate.org/hr/latest/vcs.md#vcs) for details.

#### SEE ALSO
[Pushing changes from Weblate](https://docs.weblate.org/hr/latest/admin/code-hosting.md#code-hosting-push-options)

<a id="component-vcs-params"></a>

### Version control parameters

Parameters tuning how Weblate interacts with the repository, for example
whether to force push or to open pull requests. Only parameters applicable to
the selected [Sustav za kontrolu verzija](#component-vcs) are shown, see also [Version control parameters](https://docs.weblate.org/hr/latest/vcs.md#vcs-params).

#### NOTE
The settings form silently drops parameters which do not apply to the
selected version control system, but the REST API rejects them. When
changing [Sustav za kontrolu verzija](#component-vcs) over the API, clear or replace `vcs_params`
in the same request. The same applies to
[Parametri formata datoteke](#component-file-format-params) and [Format datoteke](#component-file-format).

<a id="component-repo"></a>

### Repozitorij izvornog koda

VCS repository used to pull changes.

#### SEE ALSO
See [Pristup repozitorijima](https://docs.weblate.org/hr/latest/vcs.md#vcs-repos) for more details on specifying URLs.

#### HINT
This can either be a real VCS URL or `weblate://project/component`
indicating that the repository should be shared with another component.
See [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls) for more details.

<a id="component-push"></a>

### URL repozitorija za prijenos

Repository URL used for pushing. The behavior of this depends on
[Sustav za kontrolu verzija](#component-vcs), and this is in more detail covered in
[Pushing changes from Weblate](https://docs.weblate.org/hr/latest/admin/code-hosting.md#code-hosting-push-options).

For linked repositories, this is not used and setting from linked component applies.

#### SEE ALSO
See [Pristup repozitorijima](https://docs.weblate.org/hr/latest/vcs.md#vcs-repos) for more details on how to specify a repository URL and
[Pushing changes from Weblate](https://docs.weblate.org/hr/latest/admin/code-hosting.md#code-hosting-push-options) for more details on pushing changes from
Weblate.

<a id="component-repoweb"></a>

### Preglednik repozitorija

URL of repository browser used to display source files (location of used messages).
When empty, no such links will be generated. You can use [Označavanje u predlošcima](#markup).

Naprimjer na GitHubu, koristi nešto poput: `https://github.com/WeblateOrg/hello/blob/{{branch}}/{{filename}}#L{{line}}`

In case your paths are relative to different folder (path contains `..`), you
might want to strip leading directory by `parentdir` filter (see
[Označavanje u predlošcima](#markup)):
`https://github.com/WeblateOrg/hello/blob/{{branch}}/{{filename|parentdir}}#L{{line}}`

#### SEE ALSO
* [`PROJECT_WEB_RESTRICT_PRIVATE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_PRIVATE)

<a id="component-repoweb-translations"></a>

### Repository browser for translations

URL of repository browser used to display translation files. When empty, the
[Preglednik repozitorija](#component-repoweb) URL will be used as a fallback. This is useful when
source-code files and translation files are hosted in different repositories.
It applies to all translation files, including source-language, intermediate,
template, and target files. You can use [Označavanje u predlošcima](#markup).

For example on GitHub, use something like:
`https://github.com/WeblateOrg/translations/blob/{{branch}}/{{filename}}#L{{line}}`

#### SEE ALSO
* [`PROJECT_WEB_RESTRICT_PRIVATE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-PROJECT_WEB_RESTRICT_PRIVATE)

<a id="component-git-export"></a>

### URL izvezenog repozitorija

URL where changes made by Weblate are exported. This is important when
[Kontinuirana lokalizacija](https://docs.weblate.org/hr/latest/admin/continuous.md#continuous-translation) is not used, or when there is a need to manually
merge changes. You can use [Git exporter](https://docs.weblate.org/hr/latest/admin/optionals.md#git-exporter) to automate this for Git
repositories.

<a id="component-branch"></a>

### Grana repozitorija

Which branch to checkout from the VCS, and where to look for translations.

For linked repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls), this setting is controlled
by the linked component that owns the repository. Linked child components use
the value from that component.

<a id="component-push-branch"></a>

### Prenesi granu

Branch for pushing changes, leave empty to use [Grana repozitorija](#component-branch).

For linked repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls), this setting is controlled
by the linked component that owns the repository. Linked child components use
the value from that component.

#### NOTE
This setting is ignored for Mercurial and Subversion.

For Gerrit, this selects the target branch for the review request. Leave it
empty to review against [Grana repozitorija](#component-branch). Use the short branch name,
not `refs/heads/<branch>` or `refs/for/<branch>`. Gerrit push options
can be appended after `%` in either setting, for example
`main%topic=l10n`; Gerrit interprets them as the configured Weblate Gerrit
account.

#### SEE ALSO
[Pushing changes from Weblate](https://docs.weblate.org/hr/latest/admin/code-hosting.md#code-hosting-push-options)

<a id="component-filemask"></a>

### Maska datoteke

Mask of files to translate, including path. It should include one „\*”
replacing language code (see [Definicije jezika](https://docs.weblate.org/hr/latest/admin/languages.md#languages) for info on how this is
processed). In case your repository contains more than one translation
file (e.g. more gettext domains), you need to create a component for
each of them.

Na primjer `po/*.po` ili `locale/*/LC_MESSAGES/django.po`.

In case your filename contains special characters such as `[`, `]`, these need
to be escaped as `[[]` or `[]]`.

#### SEE ALSO
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [What does mean „There are more files for the single language (en)”?](https://docs.weblate.org/hr/latest/faq.md#faq-duplicate-files)

<a id="component-screenshot-filemask"></a>

### Maska snimke ekrana

This feature allows the discovery and updating of screenshots through screenshot file masks, using paths from the VCS repository.
This operates at the component level and necessitates the use of an asterisk „\*” to replace the screenshot file name.

Dozvoljeni formati su WebP, JPEG, PNG, APNG i GIF.

Napomena:

1. The file mask and screenshot file mask are not related. Configure them separately.
2. It is a manual job to link a discovered screenshot in a component to a specific translation key.

For example:

Let’s assume your VCS repository has a structure like this:

```text
component_A
└── docs
    ├── image1.png
    └── image2.jpg
```

For component_A, you want to allow discovery and updates of PNG screenshots.
You’d set the screenshot file mask for component_A as `component_A/docs/*.png`.
This means any PNG images under docs in component_A can be discovered and updated.
So, if you want to update `image1.png`, the new screenshot you provide should be named `image1.png`,
matching the existing `filename`, and stored under `component_A/docs/`.

For Android projects using Fastlane metadata, a source-language screenshot mask
can point to the metadata screenshot folder, for example
`fastlane/metadata/android/en-US/images/phoneScreenshots/*.png`. Weblate will
discover matching screenshots on repository update. The discovered screenshots
still need to be associated with source strings in the screenshot management
interface; use OCR or source string search there to assign them in bulk.

<a id="component-template"></a>

### Jednojezična datoteka osnovnog jezika

Base file containing string definitions for [Project and component creation](https://docs.weblate.org/hr/latest/admin/admin.md#monolingual).

#### SEE ALSO
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [What does mean „There are more files for the single language (en)”?](https://docs.weblate.org/hr/latest/faq.md#faq-duplicate-files)

<a id="component-edit-template"></a>

### Uredi osnovnu datoteku

Da li dopustiti uređivanje izraza u [Jednojezična datoteka osnovnog jezika](#component-template).

#### SEE ALSO
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [Project and component creation](https://docs.weblate.org/hr/latest/admin/admin.md#monolingual)
* [What does mean „There are more files for the single language (en)”?](https://docs.weblate.org/hr/latest/faq.md#faq-duplicate-files)
* [Upravljaj izrazima](#component-manage-units)

<a id="component-intermediate"></a>

### Datoteka posrednog jezika

Međujezična datoteka za [Project and component creation](https://docs.weblate.org/hr/latest/admin/admin.md#monolingual). U većini slučajeva ovo je prevodilačka datoteka koju pružaju programeri i koristi se pri stvaranju stvarnih izvornih izraza.

Kada je postavljeno, izvorni izrazi se temelje na ovoj datoteci, ali svi ostali jezici se temelje na [Jednojezična datoteka osnovnog jezika](#component-template). U slučaju da izraz nije preveden na izvorni jezik, prevođenje na druge jezike je zabranjeno. To omogućuje [Sustav za provjeru kvalitete izvornih izraza](https://docs.weblate.org/hr/latest/workflows.md#source-quality-gateway).

The intermediate file can match an existing language file. While it is configured
as intermediate, Weblate does not list it as a regular language in the component
language list. Clearing this setting makes the file appear as a regular language
again on the next component scan.

Target strings can become read-only while the intermediate file is configured.
This happens for strings where the matching source string in the
[Jednojezična datoteka osnovnog jezika](#component-template) is not translated yet.

#### SEE ALSO
* [Sustav za provjeru kvalitete izvornih izraza](https://docs.weblate.org/hr/latest/workflows.md#source-quality-gateway)
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [What does mean „There are more files for the single language (en)”?](https://docs.weblate.org/hr/latest/faq.md#faq-duplicate-files)

<a id="component-new-base"></a>

### Predložak za nove prijevode

Osnovna datoteka za generiranje novih prijevoda.

* Keep this field empty for most of the monoligual formats. Those are typically able to start from an empty file.
* Odaberi `.pot` datoteku s GNU gettext PO datotekama.
* Ako imaš, odaberi praznu datoteku bez prijevoda.
* Choose [Jednojezična datoteka osnovnog jezika](#component-template) for monolingual formats that need a full set of keys present.
* Odaberi [Jednojezična datoteka osnovnog jezika](#component-template) za prijevode dokumenta.
* Odaberi bilo koju prevodilačku datoteku za druge.
* Datoteka predloška u većini slučajeva može biti ista kao osnovna datoteka.

#### HINT
In many monolingual formats Weblate starts with empty file by default. Use
this in case you want to have all strings present with empty value when
creating new translation.

#### SEE ALSO
* [Dodavanje novih prijevoda](https://docs.weblate.org/hr/latest/devel/translations.md#adding-translation)
* [Dodavanje novog prijevoda](#component-new-lang)
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [What does mean „There are more files for the single language (en)”?](https://docs.weblate.org/hr/latest/faq.md#faq-duplicate-files)

<a id="component-file-format"></a>

### Format datoteke

Format prevodilačke datoteke, pogledaj [Localization file formats](https://docs.weblate.org/hr/latest/formats.md#formats).

<a id="component-file-format-params"></a>

### Parametri formata datoteke

Parameters used to configure how translation files are processed, see also [Parametri formata datoteke](https://docs.weblate.org/hr/latest/formats.md#file-format-params).

<a id="component-report-source-bugs"></a>

### Adresa za prijavu grešaka u izvornom izrazu

Email address used for reporting upstream bugs. This address will also receive
notification about any source string comments made in Weblate.

With the [GNU gettext PO (Portable Object)](https://docs.weblate.org/hr/latest/formats/gettext.md#gettext) format, this address is also saved by Weblate in the
*Report-Msgid-Bugs-To* header of the file.

<a id="component-hide-glossary-matches"></a>

### Ne prikazuj podudaranja s glosarom

Hides the glossary panel and its matches in the translation editor for this component.
When enabled, glossary suggestions for this component are not computed, and the Glossary
panel (including its “Add term to glossary” action) is hidden in the editor.

#### NOTE
Glossary self-references are always excluded from matches even when this option is disabled.

#### SEE ALSO
* [Glosar](https://docs.weblate.org/hr/latest/user/glossary.md#glossary)
* [Koristi kao glosar](#component-is-glossary)

<a id="component-contribute-project-tm"></a>

### Doprinesi prevodilačkoj memoriji projekta

Controls whether translations from this component are added to the project
translation memory.

#### SEE ALSO
[Prevodilačka memorija](https://docs.weblate.org/hr/latest/admin/memory.md)

<a id="component-allow-translation-propagation"></a>

### Dopusti dijeljenje prijevoda

You can turn off propagation of translations to this component from other
components within same project. This really depends on what you are
translating, sometimes it’s desirable to have make use of a translation more than once.

It’s usually a good idea to turn this off for monolingual translations, unless
you are using the same IDs across the whole project.

The default value can be changed by [`DEFAULT_TRANSLATION_PROPAGATION`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_TRANSLATION_PROPAGATION).

#### SEE ALSO
[Keeping translations same across components](https://docs.weblate.org/hr/latest/admin/continuous.md#translation-consistency)

<a id="component-enable-suggestions"></a>

### Omogući prijedloge

Da li se prihvaćaju prijedlozi prijevoda za ovu komponentu.

#### SEE ALSO
[Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization)

<a id="component-suggestion-voting"></a>

### Glasanje za prijedlog

Uključuje glasanja za prijedloge, pogledaj [Glasanje za prijedlog](https://docs.weblate.org/hr/latest/admin/translating.md#voting).

#### SEE ALSO
[Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization)

<a id="component-suggestion-autoaccept"></a>

### Automatski prihvati prijedloge

Automatski prihvati izglasane prijedloge, pogledaj [Glasanje za prijedlog](https://docs.weblate.org/hr/latest/admin/translating.md#voting).

#### SEE ALSO
[Prilagođavanje radnog toka](https://docs.weblate.org/hr/latest/workflows.md#workflow-customization)

<a id="component-check-flags"></a>

### Prevodilačke oznake

Customization of quality checks and other Weblate behavior, see [Customizing behavior using flags](https://docs.weblate.org/hr/latest/admin/checks.md#custom-checks).

Workspace, project, component, and translation flags are merged.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)

<a id="component-enforced-checks"></a>

### Obavezne provjere

Popis provjera koje se ne mogu odbaciti.

This setting can be inherited from the workspace, project, or category (see
[Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)). When a new enforced check is inherited,
existing failing translations are reverted to the Needs editing
state in the background.

#### SEE ALSO
[Enforcing checks](https://docs.weblate.org/hr/latest/admin/checks.md#enforcing-checks)

<a id="component-license"></a>

### Licenca prijevoda

License of the translation (does not need to be the same as the source code license).

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)

<a id="component-agreement"></a>

### Licencni ugovor za doprinositelje

Licencni ugovor za doprinositelje koji se mora prihvatiti prije nego što korisnik može prevesti ovu komponentu.

Markdown can be used for text formatting or inserting links.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)

<a id="component-new-lang"></a>

### Dodavanje novog prijevoda

Kako postupati sa zahtjevima za stvaranje novih jezika. Dostupne opcije:

Obrati se održavateljima
: User can select desired language and the project maintainers will receive a
  notification about this. It is up to them to add (or not) the language to the
  repository.

Odredi URL s uputama za prijevod
: User is presented a link to page which describes process of starting new
  translations. Use this in case more formal process is desired (for example
  forming a team of people before starting actual translation).

Stvori novu jezičnu datoteku
: User can select language and Weblate automatically creates the file for it
  and translation can begin.

Create existing project languages; contact maintainers for new languages
: Users can create translations for languages already used as target languages
  in another non-glossary component in the project. Other languages are requested
  from maintainers, who approve them by creating the first target translation.
  See [Limiting translation languages](https://docs.weblate.org/hr/latest/workflows.md#workflow-language-restrictions) for eligibility and API behavior.

Deaktiviraj dodavanje novih prijevoda
: There will be no option for user to start new translation.

#### HINT
The project admins can add new translations even if it is disabled here when
it is possible (either [Predložak za nove prijevode](#component-new-base) or the file format supports
starting from an empty file).

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Dodavanje novih prijevoda](https://docs.weblate.org/hr/latest/devel/translations.md#adding-translation)
* [Predložak za nove prijevode](#component-new-base)
* [Limiting translation languages](https://docs.weblate.org/hr/latest/workflows.md#workflow-language-restrictions)

<a id="component-manage-units"></a>

### Upravljaj izrazima

#### Versionadded
Added in version 4.5.

Configures whether users in Weblate will be allowed to add new strings and
remove existing ones. It also enables [editing source strings and keys](https://docs.weblate.org/hr/latest/user/translating.md#edit-source) in supported formats. Adjust this to match your localization
workflow — how strings are introduced and maintained.

For bilingual formats, the strings are typically extracted from the source code
(for example by using **xgettext**) and adding new strings in Weblate
should be disabled (they would be discarded next time you update the
translation files). In Weblate you can manage strings for every translation and
it does not enforce the strings in all translations to be consistent.

For monolingual formats, the strings are managed only on source language and
are automatically added or removed in the translations. The strings appear in
the translation files once they are translated.

#### HINT
You might want to turn on [Uredi osnovnu datoteku](#component-edit-template) together with
Manage strings for monolingual formats.

#### SEE ALSO
* [Dvojezični i jednojezični formati](https://docs.weblate.org/hr/latest/formats.md#bimono)
* [Dodavanje novih izraza](https://docs.weblate.org/hr/latest/devel/integration.md#adding-new-strings)
* [`POST /api/translations/(string:project)/(string:component)/(string:language)/units/`](https://docs.weblate.org/hr/latest/api.md#post--api-translations-(string-project)-(string-component)-(string-language)-units-)

<a id="component-language-code-style"></a>

### Stil jezičnog koda

Prilagodi jezični kod koji se koristi za generiranje imena datoteke za prijevode koji su stvoreni s Weblateom.

#### NOTE
Weblate recognizes any of the language codes when parsing translation files,
following settings only influences how new files are created.

Standard na osnovi datotečnog formata
: Ovisno o formatu datoteka, za većinu se koristi POSIX.

POSIX stil koristeći podvlaku kao znak razdvajanja
: Obično ga koristi gettext i srodni alati, stvara jezične kodove poput `hr_HR`.

POSIX stil koristeći podvlaku kao znak razdvajanja, mala slova
: Obično ga koristi gettext i srodni alati, stvara jezične kodove poput `hr_HR`.

POSIX stil koristeći podvlaku kao znak razdvajanja, uključujući kôd zemlje
: POSIX stil koda jezika uključujući kôd zemlje čak i kada nije potreban (na primjer `hr_HR`).

POSIX stil koristeći podvlaku kao znak razdvajanja, uključujući kôd zemlje, mala slova
: POSIX stil koda jezika uključujući kôd zemlje čak i kada nije potreban (mala slova) (na primjer `hr_hr`).

BCP stil koristeći crticu kao znak razdvajanja
: Obično ga koriste web platforme, stvara jezične kodove poput `hr-HR`.

BCP stil koristeći crticu kao znak razdvajanja, uključujući kôd zemlje
: BCP stil koda jezika uključujući kôd zemlje čak i kada nije potreban (na primjer `hr-HR`).

BCP stil koristeći crticu kao znak razdvajanja, stari kodovi jezika
: Uses legacy codes for Chinese and BCP style notation.

BCP stil koristeći crticu kao znak razdvajanja, mala slova
: BCP stil notacije, sve malim slovima (na primjer `hr-hr`).

Apple App Store stil metapodataka
: Prikladni stil za prijenos metapodataka u Apple App Store.

Google Play stil metapodataka
: Prikladni stil za prijenos metapodataka u Google Play Store.

Android stil
: Koristi se samo u Android aplikacijama, stvara jezične kodove poput `pt-rBR`.

Linux stil
: Locales as used by Linux, uses legacy codes for Chinese and POSIX style notation.

Linux stil, mala slova
: Locales as used by Linux, uses legacy codes for Chinese and POSIX style notation. Lower cased.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Dodavanje novih prijevoda](https://docs.weblate.org/hr/latest/devel/translations.md#adding-translation)
* [Kod jezika](https://docs.weblate.org/hr/latest/admin/languages.md#language-code)
* [Obrada jezičnih kodova](https://docs.weblate.org/hr/latest/admin/languages.md#language-parsing-codes)
* [Aliasi jezika](#project-language-aliases)

<a id="component-merge-style"></a>

### Stil sjedinjavanja

You can configure how updates from the upstream repository are handled.
The actual implementation depends on VCS, see [Integracija kontrole verzija](https://docs.weblate.org/hr/latest/vcs.md).

Presloži
: Rebases Weblate commits on top of upstream repository on update. This
  provides clean history without extra merge commits.
  <br/>
  Rebasing can cause you trouble in case of complicated merges, so carefully
  consider whether or not you want to enable them.
  <br/>
  You might need to turn on [force pushing](https://docs.weblate.org/hr/latest/vcs.md#vcs-git-force-push) in
  [Version control parameters](#component-vcs-params), especially when pushing to a different branch.

Sjedini
: Upstream repository changes are merged into Weblate one. This setting utilizes
  fast-forward when possible. This is the safest way, but might produce a lot
  of merge commits.

Sjedini bez funkcije fast-forward
: Upstream repository changes are merged into Weblate one with doing a merge
  commit every time (even when fast-forward would be possible). Every Weblate
  change will appear as a merge commit in Weblate repository.

The default value can be changed by [`DEFAULT_MERGE_STYLE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_MERGE_STYLE).

<a id="component-commit-message"></a>

<a id="component-add-message"></a>

<a id="component-delete-message"></a>

<a id="component-merge-message"></a>

<a id="component-addon-message"></a>

<a id="component-pull-message"></a>

### Commit, add, delete, merge, add-on, and merge request messages

Message used when committing a translation, see [Označavanje u predlošcima](#markup).

The default value can be changed by [`DEFAULT_ADD_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_ADD_MESSAGE),
[`DEFAULT_ADDON_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_ADDON_MESSAGE), [`DEFAULT_COMMIT_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_COMMIT_MESSAGE),
[`DEFAULT_DELETE_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_DELETE_MESSAGE), [`DEFAULT_MERGE_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_MERGE_MESSAGE),
[`DEFAULT_PULL_MESSAGE`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_PULL_MESSAGE).

The built-in defaults follow Conventional Commits and include
Weblate links where available. Use Restore site default next to a
message editor to restore the current installation default for that message;
for inherited values, this also disables inheritance for that message.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)

<a id="component-push-on-commit"></a>

### Prenesi pri spremanju izmjene

Whether committed changes should be automatically pushed to the upstream
repository. When enabled, the push is initiated once Weblate commits
changes to its underlying repository (see [Lazy commits](https://docs.weblate.org/hr/latest/admin/continuous.md#lazy-commit)). To actually
enable pushing Repository push URL has to be configured as
well.

For linked repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls), this setting is controlled
by the linked component that owns the repository. Linked child components use
the value from that component.

<a id="component-commit-pending-age"></a>

### Starost promjena koje želiš spremiti

Sets how old (in hours) changes have to be before they are committed by
background task or the [`commit_pending`](https://docs.weblate.org/hr/latest/admin/management.md#weblate-admin-commit_pending) management command. All
changes in a component are committed once there is at least one change
older than this period.

For linked repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls), this setting is controlled
by the linked component that owns the repository. Linked child components use
the value from that component.

The default value can be changed by [`COMMIT_PENDING_HOURS`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-COMMIT_PENDING_HOURS).

#### HINT
There are other situations where pending changes might be committed, see
[Lazy commits](https://docs.weblate.org/hr/latest/admin/continuous.md#lazy-commit).

<a id="component-auto-lock-error"></a>

### Zaključaj kad dođe do greške

Locks the component (and linked components, see [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls))
upon the first failed push or merge into its upstream repository, or pull from it.
This avoids adding another conflicts, which would have to be resolved manually.

The component will be automatically unlocked once there are no repository
errors left.

For linked repositories using [Weblate interni URL-ovi](https://docs.weblate.org/hr/latest/vcs.md#internal-urls), this setting is controlled
by the linked component that owns the repository. Linked child components use
the value from that component.

<a id="component-source-language"></a>

### Izvorni jezik

Jezik koji se koristi za izvorne izraze. Promijeni ovo ako prevodiš iz jednog drugog jezika koji nije engleski.

#### HINT
In case you are translating bilingual files from English, but want to be
able to do fixes in the English translation as well, choose
English (Developer) as a source language to avoid conflict
between the name of the source language and the existing translation.

For monolingual translations, you can use intermediate translation in this
case, see [Datoteka posrednog jezika](#component-intermediate).

<a id="component-language-regex"></a>

### Filtar jezika

Regular expression used to filter the translation when scanning for file mask.
It can be used to limit the list of languages managed by Weblate.

The filter also applies when creating a new translation file. In this case,
it checks the language code generated according to
[Stil jezičnog koda](#component-language-code-style).

#### NOTE
Moraš navesti jezične kodove kako se pojavljuju u imenu datoteke.

Neki primjeri filtriranja:

| Opis filtra                       | Regularni izraz    |
|-----------------------------------|--------------------|
| Samo odabrani jezici              | `^(cs|de|es)$`     |
| Isključi jezike                   | `^(?!(it|fr)$).+$` |
| Filtriraj samo dvoslovne kodove   | `^..$`             |
| Isključi nejezične datoteke       | `^(?!(blank)$).+$` |
| Uključi sve datoteke (standardno) | `^[^.]+$`          |

#### SEE ALSO
[Limiting translation languages](https://docs.weblate.org/hr/latest/workflows.md#workflow-language-restrictions)

<a id="component-key-filter"></a>

### Filtar ključeva

#### Versionadded
Added in version 5.8.

A regular expression that is used to filter units by their keys. It displays only
those units whose keys match the regular expression that was set
as the value of this field.

Neki primjeri filtriranja:

| Opis filtra                  | Regularni izraz          |
|------------------------------|--------------------------|
| Selected keys only           | `^(one|two|other)$`      |
| Exclude app store changelogs | `^(?!changelogs/.*$).+$` |
| Filter prefixed strings      | `^translatable`          |

#### NOTE
This filter is only available for components with monolingual file formats.

<a id="component-variant-regex"></a>

### Varijante regularnog izraza

Regularni izraz koji se koristi za određivanje varijanti izraza, pogledaj [String variants](https://docs.weblate.org/hr/latest/devel/translations.md#variants).

#### NOTE
Most of the fields can be edited by project owners or administrators, in the
Weblate interface.

#### SEE ALSO
* [Does Weblate support other VCSes than Git and Mercurial?](https://docs.weblate.org/hr/latest/faq.md#faq-vcs)
* [Dijagnoza prevodilačke komponente](https://docs.weblate.org/hr/latest/devel/alerts.md#alerts)

<a id="component-secondary-language"></a>

### Sekundarni jezik

#### Versionadded
Added in version 5.11.

Dodatni jezik koji će se prikazivati zajedno s izvornim jezikom prilikom prevođenja.

Optionally, it can be also used as a source for the machine translation.

#### NOTE
This setting can be inherited from the project.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Sekundarni jezici](https://docs.weblate.org/hr/latest/user/profile.md#secondary-languages)
* [Izvorni izrazi za strojno prevođenje](https://docs.weblate.org/hr/latest/admin/machine.md#mt-sources)

<a id="component-priority"></a>

### Prioritet

Prevodiocima se najprije predlažu komponente s višim prioritetom.

#### Versionchanged
Promijenjeno u verziji 4.15: Ovo sada također utječe na redoslijed poklapajućih izraza glosara.

<a id="component-restricted"></a>

### Ograničen pristup

#### NOTE
On Hosted Weblate, this requires a billing plan which permits private
projects.

By default the component is visible to anybody who has access to the project,
even if the person can not perform any changes in the component. This makes it
easier to keep translation consistency within the project.

Restricting access at a component, or component-list level takes over
access permission to a component, regardless of project-level permissions.
You will have to grant access to it explicitly. This can be done through
granting access to a new user group and putting users in it,
or using the default custom or private access control groups.

The default value can be changed in [`DEFAULT_RESTRICTED_COMPONENT`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-DEFAULT_RESTRICTED_COMPONENT).

Restricted access controls direct access to component pages, translations,
files, APIs, and translation memory. It is not an isolation boundary for
administrative capabilities whose documented scope includes the component. For
example, project backups contain all project components, and project- or
category-level add-ons process restricted components in their configured scope.
Component add-ons can also use cross-component inputs documented by the add-on.
Grant the corresponding management permissions only to users trusted with
these effects. See [Opseg timova](https://docs.weblate.org/hr/latest/admin/access.md#perm-check) and [Dodaci](https://docs.weblate.org/hr/latest/admin/addons.md#addons).

#### HINT
This applies to project admins as well — please ensure you will not
lose access to the component after toggling the status.

Restricted components do not contribute new entries to [Dijeljena prevodilačka memorija](https://docs.weblate.org/hr/latest/admin/memory.md#shared-tm).
Project and workspace translation memory entries attributed to an existing
restricted component follow the component restriction. Unattributed legacy
entries follow the access rules of their translation memory scope. On Hosted
Weblate, shared translation memory and restricted components can not be enabled
in the same project.

<a id="component-links"></a>

### Dijeli u projektima

You can choose additional projects where the component will be visible.
Useful for shared libraries which you use in several projects.

#### NOTE
Sharing a component doesn’t change its access control. It only makes it
visible when browsing other projects. Users still need access to the
actual component to browse or translate it.

<a id="component-is-glossary"></a>

### Koristi kao glosar

#### Versionadded
Added in version 4.5.

Allows using this component as a glossary. Use when you want to manage
terminology separately from normal translations.

Glossaries are best for:

- Ensuring consistent use of terms (e.g., UI labels, product names).
- Sharing preferred translations across multiple components or projects.
- Supporting translators with definitions and context.

#### NOTE
Glossaries are not for regular translations—they are for managing terms only.

Weblate automatically adds missing glossary languages for languages used in the
project. See [Language files and synchronization](https://docs.weblate.org/hr/latest/user/glossary.md#glossary-language-sync) for details.

You can configure how it will be listed using [Boja glosara](#component-glossary-color).

The glossary will be accessible in all projects defined by [Dijeli u projektima](#component-links).

It is recommended to enable [Upravljaj izrazima](#component-manage-units) on glossaries in
order to allow adding new words to them.

#### SEE ALSO
[Glosar](https://docs.weblate.org/hr/latest/user/glossary.md#glossary)

<a id="component-glossary-color"></a>

### Boja glosara

Color used when displaying terms from this glossary. Useful to distinguish glossaries when using more of them.

#### SEE ALSO
[Glosar](https://docs.weblate.org/hr/latest/user/glossary.md#glossary)

<a id="category"></a>

## Kategorija

Categories are there to give structure to components within a project. You can
nest them to achieve a more complex structure.

<a id="category-settings"></a>

### Category settings

Categories can override the same inherited settings as projects and components,
including translation license, contributor agreement, adding new translations,
secondary language, translation flags, and commit messages.

Nested categories inherit from their parent category by default. Top-level
categories inherit from the project. Components in a category inherit from that
category by default.

#### SEE ALSO
* [Settings inheritance](https://docs.weblate.org/hr/latest/admin/workspaces.md#workspace-inherited-settings)
* [Licenca prijevoda](#project-license)
* [Licenca prijevoda](#component-license)

<a id="markup"></a>

## Označavanje u predlošcima

Weblate koristi jednostavan jezik označavanja na nekoliko mjesta za prikaz teksta. Temelji se na [The Django template language](https://docs.djangoproject.com/en/stable/ref/templates/language/), stoga može biti vrlo moćan.

Trenutačno se koristi u:

* Commit message formatting, see [Konfiguracija komponente](#component)
* Nekoliko dodataka
  : * [Otkrivanje komponenti](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-discovery-discovery)
    * [Generator statistike](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-generate-generate)
    * [Izvršavanje skripta dodatka](https://docs.weblate.org/hr/latest/admin/addons.md#addon-script)

The following variables are available in the component templates:

`{{ language_code }}`
: Kod jezika

`{{ language_name }}`
: Ime jezika

`{{ component_name }}`
: Ime komponente

`{{ component_slug }}`
: Identifikator komponente

`{{ project_name }}`
: Ime projekta

`{{ project_slug }}`
: URL identifikator projekta

`{{ url }}`
: URL prijevoda

`{{ filename }}`
: Ime datoteke prijevoda

`{{ stats }}`
: Statistika prijevoda. Sadrži dodatne atribute. Primjeri u nastavku.

`{{ stats.all }}`
: Ukupni broj izraza

`{{ stats.fuzzy }}`
: Broj izraza koji se moraju pregledati

`{{ stats.fuzzy_percent }}`
: Postatak izraza koji se moraju pregledati

`{{ stats.translated }}`
: Broj prevedenih izraza

`{{ stats.translated_percent }}`
: Postatak prevedenih izraza

`{{ stats.allchecks }}`
: Broj izraza s neuspjelim provjerama

`{{ stats.allchecks_percent }}`
: Postotak izraza s neuspjelim provjerama

`{{ author }}`
: Author of current commit, available only in the commit scope.

`{{ addon_name }}`
: Name of currently executed add-on, available only in the add-on commit message.

The [Statistics generator](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-generate-generate) additionally
supports a collection of languages and their statistics in component mode.
Use the `json` or `python` filter to serialize template values into JSON or
Python literals, including the necessary quoting and escaping.

The following variables are available in the repository browser or editor templates:

`{{branch}}`
: trenutačna grana

`{{line}}`
: redak u datoteci

`{{filename}}`
: filename, you can also strip leading parts using the `parentdir` filter, for example `{{filename|parentdir}}`

#### HINT
In some places additional variables can be available, see [Otkrivanje komponenti](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-discovery-discovery).

You can combine them with filters:

```django
{{ component|title }}
```

You can use conditions:

```django
{% if stats.translated_percent > 80 %}Well translated!{% endif %}
```

There is additional tag available for replacing characters:

```django
{% replace component "-" " " %}
```

You can combine it with filters:

```django
{% replace component|capfirst "-" " " %}
```

There are also additional filter to manipulate with filenames:

```django
Directory of a file: {{ filename|dirname }}
File without extension: {{ filename|stripext }}
File in parent dir: {{ filename|parentdir }}
It can be used multiple times: {{ filename|parentdir|parentdir }}
```

…and other Django template features.

<a id="import-speed"></a>

## Brzina uvoza

Fetching VCS repository and importing translations to Weblate can be a lengthy
process, depending on size of your translations. Here are some tips:

### Optimiraj konfiguraciju

The default configuration is useful for testing and debugging Weblate, while
for a production setup, you should do some adjustments. Many of them have quite
a big impact on performance. Please check [Production setup](https://docs.weblate.org/hr/latest/admin/install.md#production) for more details,
especially:

* Configure Celery for executing background tasks (see [Background tasks using Celery](https://docs.weblate.org/hr/latest/admin/install.md#celery))
* [Configure cache](https://docs.weblate.org/hr/latest/admin/install.md#production-cache)
* [Use a powerful database engine](https://docs.weblate.org/hr/latest/admin/install.md#production-database)
* [Disable debug mode](https://docs.weblate.org/hr/latest/admin/install.md#production-debug)

### Check resource limits

If you are importing huge translations or repositories, you might be hit by
resource limitations of your server.

* Check the amount of free memory, having translation files cached by the operating system will greatly improve performance.
* Disk operations might be bottleneck if there is a lot of strings to process—the disk is pushed by both Weblate and the database.
* Additional CPU cores might help improve performance of background tasks (see [Background tasks using Celery](https://docs.weblate.org/hr/latest/admin/install.md#celery)).

### Onemogući nepotrebne provjere

Some quality checks can be quite expensive, and if not needed,
can save you some time during import if omitted. See [`CHECK_LIST`](https://docs.weblate.org/hr/latest/admin/config.md#std-setting-CHECK_LIST) for
info on configuration.

<a id="autocreate"></a>

## Automatsko stvaranje komponenata

In case your project has dozen of translation files (e.g. for different
gettext domains, or parts of Android apps), you might want to import them
automatically. This can either be achieved from the command-line by using
[`import_project`](https://docs.weblate.org/hr/latest/admin/management.md#weblate-admin-import_project) or [`import_json`](https://docs.weblate.org/hr/latest/admin/management.md#weblate-admin-import_json), or by installing the
[Otkrivanje komponenti](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-discovery-discovery) add-on.

To use the add-on, you first need to create a component for one translation
file (choose the one that is the least likely to be renamed or removed in future),
and install the add-on on this component.

For the management commands, you need to create a project which will contain all
components and then run [`import_project`](https://docs.weblate.org/hr/latest/admin/management.md#weblate-admin-import_project) or
[`import_json`](https://docs.weblate.org/hr/latest/admin/management.md#weblate-admin-import_json).

#### SEE ALSO
* [Management commands](https://docs.weblate.org/hr/latest/admin/management.md#manage)
* [Otkrivanje komponenti](https://docs.weblate.org/hr/latest/admin/addons.md#addon-weblate-discovery-discovery)
