Gestione delle Versioni

Mantieni un processo di agile localizzazione ed evita i ritardi di traduzione per testi aggiunti o nuove caratteristiche del prodotto. Integra i rami del tuo progetto con Crowdin e consenti ai traduttori di accedere immediatamente a tutti i nuovi testi.

Rami

When several people work on product development, branches help manage different content versions. If you have a continuous project, you can add project branches to Crowdin and allow translators to translate the texts in parallel with development to avoid deployment delays.

The branch in Crowdin looks like a regular folder marked with a special icon and has specific behavior for duplicated strings.
Esempio di struttura del ramo nel sistema di controllo della versione (VCS) e Crowdin:

Struttura del Ramo

Creazione Ramo

Nota! I primi file che carichi al progetto di Crowdin devono contenere tutte le stringhe originali e dovrebbero esser posti nel ramo corrispondente. For all article examples, a branch with original texts is named Master.

Esistono alcuni modi per aggiungere rami a Crowdin:

  • Integra i progetti di Crowdin con GitLab, GitHub, Bitbucket, o Azure Repos. È un’opzione consigliata, poiché i rami selezionati per la localizzazione nel tuo sistema di controllo della versione (VCS), saranno creati automaticamente su Crowdin.
  • Use CLI or API to add new branches.
  • Create branches manually.
Creazione Ramo usando API

To create a branch via API, use the Add Branch method.

Gestione Branca usando CLI

If you use CLI, you can add and delete version branches with dedicated commands. Alternatively, you can create version branches during the file upload.

Read more about Branch Management with CLI.

Prioritizing Branches

You can set a specific priority for each branch by clicking an arrow icon next to the needed branch. Then translators will see branches sorted according to their priority on the language page and in the Editor.

Branches might have the following priorities:

  • Low Priority– low
  • Normal Priority– normal
  • High Priority– high

To set a priority for your branches, follow these steps:

  1. Open your project and go to Sources > Files.
  2. Click an arrow icon next to the needed branch to set the preferred priority.

Duplicati

Per aiutare i traduttori a tradurre coerentemente le versioni ed evitare i costi aggiuntivi di traduzione, abbiamo l’opzione Mostra in un ramo di versione, che consente di nascondere le stringhe duplicate solo tra versioni. Because branches are different versions of the same product feature, their localization content is usually duplicated. If your source files contain strings with apparent identifiers (keys), it’s better to use a strict version of this option. In other cases, feel free to use a regular one.

When this option is chosen, only the master strings first uploaded to the system should be translated. All duplicated strings will automatically gain translations from the master strings. Duplicates

Flusso di Lavoro Suggerito

Per assicurarti che le versioni funzionino senza intoppi per il tuo progetto di Crowdin, consigliamo il seguente flusso di lavoro:

  1. Upload your project files to the Crowdin project using one of the available methods.
  2. Open your project and go to Settings > Import > Source Strings.
  3. Switch the Duplicate Strings option to Show within a version branch.

Lo screenshot sotto visualizza come funziona il flusso di lavoro in pratica. All texts from Master, Branch 1, and Branch 2 are transferred to the translation server immediately after they appear, even though the branches are not merged to the Master branch yet.

Translation Download

Translations from all version branches are placed in one ZIP archive when downloaded through the web interface. Usa la CLI o l’API per scaricare le traduzioni per ogni ramo individualmente.

Translation Download using API

To download translations of the specific version branch with API, you can use the following API methods:

Translation Download using CLI

Download translations of the specific version branch:

$ crowdin download -b branch_name

Rami Fusione

Il ramo Principale conterrà i nuovi testi dai rami Funzione appena sono uniti. Il ramo Principale conterrà i nuovi testi dai rami Funzione appena sono uniti.

Dopo la sincronizzazione del ramo Principale aggiornato con Crowdin, puoi rimuovere il ramo Funzionalità da Crowdin. Tutte le traduzioni salvate nel ramo Principale rimarranno.

Verifica di Traduzione del Ramo

You can verify translations on production using only the Feature branch before changes are merged with your Master branch. Such test deployment allows you to quickly revert to the original Master branch version if needed.

Vedi Anche

Questo articolo è stato utile?