Sommaire

Cette page décrit les détails techniques de la solution choisie.

Structure de données

  • tiki_pages_translation_bits
    • translation_bit_id
    • page_id
    • version
    • source_translation_bit
    • original_translation_bit
    • flags

Pour chaque nouvelle contribution à la page, un nouveau "translation bit" est enregistré. Les bits peuvent avoir des caractéristiques spéciales, telles que critique. Dans le cas d'une nouvelle contribution, les bits source et original demeurent vide.

Quand la mise à jour d'une traduction existante est effectuée, tous les bits de la page source sont transférés à la destination en spécifiant la source de la traduction. Le bit de traduction original réfère toujours au premier bit où le contenu est apparu.

Obtenir de l'information

La simple structure décrite ci-haut permet d'obtenir toute l'information requise sur les traductions. Voici comment procéder.

Déterminer si la page a un besoin critique de mise àjour

Si l'ensemble des traductions de la page courrante contient un bit avec la caractéristique critical qui n'est pas disponible dans la page courrante, la page doit affiché son manque d'information.

Déterminer si la page courrante nécessite une mise àjour

Si l'ensemble des traductions de la page courrante contiens des bits de traduction qui ne sont pas disponible dans la page courrante, la page a besoin de traduction.

Dans un modèlede langue pivot, la langue pivot pourrait regarder les bits de toutes ses traductions. Les autres langues regarderaient seulement les bits de la langue pivot.

Vérification de la qualité d'une page

Une page dont il manque trop de bits de traduction pourrait être marqué comme inadéquate. L'age des bits de traduction manquant peut aussi être un indicateur.

Statistiques variées

La source des contributions ainsi que leur parcourt de propagation peuvent être obtenus.

Collecter l'information

Pour que les bits de traductions soient propagés correctement, le processus de sauvegarde des pages doit être intercepté de plusieurs manières:

  • Lors de la création d'une nouvelle page ou enregistrement d'une modification, un nouveau bit de traduction vide doit être créé
  • Lors de l'enregistrement d'une modification critique, le bit de traduction créé doit avoir la caractéristique critical
  • Lors de la création d'une nouvelle traduction, tous les bits de la source doivent être propagés à la nouvelle page
  • Lors de la mise à jour d'une traduction, tous les bits jusqu'à la version source sélectionnée doivent être propagés

Summary

This page describes the technical details of the selected implementation.

Data structure

  • tiki_pages_translation_bits
    • translation_bit_id
    • page_id
    • version
    • source_translation_bit
    • original_translation_bit
    • flags

For each new contribution to the page, a translation bit will be recorded. Bits may have special flags, such as critical. In the case of a new contribution, source and original translation bits will be left null.

When a translation update is performed, all translation bits from the source page will be added to the target page by specifying the source translation bit. The original translation bit will always refer to the translation bit first appeared.

The resulting data collected is very similar to a directed graph. The graph is simplified by the fact that there will never be loops in the paths.

Fetching information

The simple structure above allows to get all the information required. Here is how to proceed.

Determine if the page requires a critical update

If the current page's translation set contain a translation bit flagged as critical which is not available for the current page, the page must advertise it's innaccuracy.

Determine if the page requires translation

If the current set of translations contains translation bits that are not in the current page, the page needs translation.

In a pivot language model, the pivot language could look for translation bits in all other languages of the set. Other languages would only look for bits in the pivot language.

Quality assessment

A page with too many missing translation bits could be marked as out of date. The age of the oldest missing translation bit could also be used as an indicator.

Various statistics

The source of content contribution and their propagation paths can be obtained.

Collecting information

For the translation bits to be propagated properly, the page saving process must be hooked in multiple ways:

  • Creating a new page or saving an update, create a new blank translation bit
  • Saving an update with the critical flag, the created translation bit must have the critical flag
  • Creating a new page translation, propagate all translation bits from the source
  • Updating a translation, propagate all translation bits from the source up to the selected version

Translate Updates

Up-to-date-ness: 0%
 
 0.00 
Translate from:

Upcoming Events

No records to display