{% extends 'base.html.twig' %} {% block title %}Comparaison Wiki OSM - {{ key }}{% endblock %} {% block body %}
{% include 'admin/_wiki_navigation.html.twig' %}

Comparaison Wiki OpenStreetMap - {{ key }} {% if en_page.is_specific_page is defined and en_page.is_specific_page %} fr en {% else %} fr en {% endif %}

{% if en_page.is_specific_page is defined and en_page.is_specific_page %} Comparaison détaillée des pages wiki en français et en anglais pour "{{ key }}". {% else %} Comparaison détaillée des pages wiki en français et en anglais pour la clé OSM "{{ key }}". {% endif %}

Page anglaise

{% if en_page.description_img_url is defined and en_page.description_img_url %} {{ key }} {% else %}
Pas d'image d'illustration
{% endif %}

Page française

{% if fr_page is defined and fr_page is not null and fr_page.description_img_url is defined and fr_page.description_img_url %} {{ key }} {% else %}
Pas d'image d'illustration
{% endif %}
{# suggestions de grammalecte #} {% if fr_page is defined and fr_page is not null %} {% if fr_page is defined and fr_page is not null and detailed_comparison['grammar_suggestions'] is defined and detailed_comparison['grammar_suggestions'] is not null and detailed_comparison['grammar_suggestions']|length > 0 %}

Suggestions de corrections grammaticales

Ces suggestions sont générées automatiquement par l'outil Grammalecte et peuvent contenir des erreurs.

{% for suggestion in detailed_comparison['grammar_suggestions'] %} {% endfor %}
Texte Message Suggestions
{% if suggestion.before is defined and suggestion.text is defined and suggestion.after is defined %}
{{ suggestion.before|slice(-20)|trim }} {{ suggestion.text }} {{ suggestion.after|slice(0, 20)|trim }}
{% endif %}
{% if suggestion.paraghraph is defined %} $ {{ suggestion.paragraph }} {{ suggestion.start }} - {{ suggestion.end }} {% endif %} {% if suggestion.message is defined %} {{ suggestion.message }} {% endif %} {#
 #}
                                        {#                                                                                    {{ dump(suggestion) }} #}
                                        {#                                                                                
#}
{% if suggestion.suggestions is defined and suggestion.suggestions is iterable and suggestion.suggestions|length > 0 %} {% else %} Aucune suggestion {% endif %}
{% endif %} {# fin des suggestions de grammalecte #} {% if fr_page is defined and fr_page is not null and fr_page.categories is defined and (fr_page.categories|length == 0) and en_page is defined and en_page.categories is defined and (en_page.categories|length > 0) %}

Suggestion d'ajout de catégories

La page française ne contient aucune catégorie.

Les catégories aident à organiser les pages wiki et à les rendre plus facilement découvrables. Considérez ajouter les catégories suivantes de la page anglaise :

Catégories suggérées

    {% for category in en_page.categories %}
  • {{ category }}
  • {% endfor %}

Comment ajouter des catégories

Pour ajouter des catégories à la page wiki :

  1. Éditez la page française sur le wiki OSM
  2. Ajoutez les catégories à la fin de la page en utilisant la syntaxe suivante :
[[Category:Nom de la catégorie]]
[[Category:Autre catégorie]]

Vous pouvez également utiliser l'interface d'édition du wiki pour ajouter des catégories.

{% endif %} {% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %}

Comparaison des sections

Sections en anglais

{% if detailed_comparison.adjusted_en_section_count is defined %} {{ detailed_comparison.adjusted_en_section_count }} sections ({{ en_page.sections|default(0) }} avec "Contents") {% else %} {{ en_page.sections|default(0) }} sections {% endif %}
    {% if detailed_comparison['section_comparison']['en_only'] is defined and detailed_comparison['section_comparison']['en_only'] is iterable %} {% for section in detailed_comparison['section_comparison']['en_only'] %}
  • h{{ section.level|default(1) }} {% if section.title is defined and section.title is not empty %} {{ section.title }} {% endif %}
  • {% endfor %} {% endif %}

Sections en français

{% if detailed_comparison.adjusted_fr_section_count is defined %} {{ detailed_comparison.adjusted_fr_section_count }} sections ({{ fr_page.sections|default(0) }} avec "Sommaire") {% else %} {{ fr_page.sections|default(0) }} sections {% endif %}
    {% if detailed_comparison['section_comparison']['fr_only'] is defined and detailed_comparison['section_comparison']['fr_only'] is iterable %} {% for section in detailed_comparison['section_comparison']['fr_only'] %}
  • h{{ section.level|default(1) }} {% if section.title is defined and section.title is not empty %} {{ section.title }} {% endif %}
  • {% endfor %} {% endif %}
{% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %} {% endif %}
{% endif %} {% if detailed_comparison and detailed_comparison.media_comparison %}

Comparaison des médias

Images en anglais

{{ en_page.media_count|default(0) }} images

Images uniquement en anglais ({{ detailed_comparison.media_comparison.en_only|length }} uniques sur {{ detailed_comparison.media_comparison.en_only_count }} total)

{% for media in detailed_comparison.media_comparison.en_only %}
{{ media.alt }}

{{ media.alt }}

{% endfor %}

Images en français

{{ fr_page.media_count|default(0) }} images

Images uniquement en français ({{ detailed_comparison.media_comparison.fr_only|length }} uniques sur {{ detailed_comparison.media_comparison.fr_only_count }} total)

{% for media in detailed_comparison.media_comparison.fr_only %}
{{ media.alt }}

{{ media.alt }}

{% endfor %}
{% endif %} {# {% if detailed_comparison and detailed_comparison.link_comparison %} #} {#
#} {#
#} {#

Comparaison des liens

#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Liens en anglais

#} {# {{ en_page.link_count }} liens #} {#
#} {#
#} {#

Comparaison des liens côte à côte

#} {#
#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% set en_links = detailed_comparison.link_comparison.en_only %} #} {# {% set fr_links = detailed_comparison.link_comparison.fr_only %} #} {# {% set max_links = max(en_links|length, fr_links|length) %} #} {# {% for i in 0..(max_links - 1) %} #} {# #} {# {% if i < en_links|length %} #} {# #} {# #} {# {% else %} #} {# #} {# #} {# {% endif %} #} {# {% if i < fr_links|length %} #} {# #} {# #} {# {% else %} #} {# #} {# #} {# {% endif %} #} {# #} {# {% endfor %} #} {# #} {#
Texte ENURL ENTexte FRURL FR
{{ en_links[i].text }}{{ en_links[i].href|slice(0, 30) }} #} {# ...{{ fr_links[i].text }}{{ fr_links[i].href|slice(0, 30) }} #} {# ...
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {# {% endif %} #} {# {% if detailed_comparison and detailed_comparison.category_comparison %} #} {#
#} {#
#} {#

Comparaison des catégories

#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Catégories en anglais

#} {# #} {# {{ (detailed_comparison.category_comparison.en_only|length + detailed_comparison.category_comparison.common|length) }} catégories #} {# #} {#
#} {#
#} {#

Catégories communes #} {# ({{ detailed_comparison.category_comparison.common|length }})

#} {#
    #} {# {% for category in detailed_comparison.category_comparison.common %} #} {#
  • {{ category }}
  • #} {# {% endfor %} #} {#
#} {#

Catégories uniquement en anglais #} {# ({{ detailed_comparison.category_comparison.en_only|length }})

#} {#
    #} {# {% for category in detailed_comparison.category_comparison.en_only %} #} {#
  • {{ category }}
  • #} {# {% endfor %} #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Catégories en français

#} {# #} {# {{ (detailed_comparison.category_comparison.fr_only|length + detailed_comparison.category_comparison.common|length) }} catégories #} {# #} {#
#} {#
#} {#

Catégories communes #} {# ({{ detailed_comparison.category_comparison.common|length }})

#} {#
    #} {# {% for category in detailed_comparison.category_comparison.common %} #} {#
  • {{ category }}
  • #} {# {% endfor %} #} {#
#} {#

Catégories uniquement en français #} {# ({{ detailed_comparison.category_comparison.fr_only|length }})

#} {#
    #} {# {% for category in detailed_comparison.category_comparison.fr_only %} #} {#
  • {{ category }}
  • #} {# {% endfor %} #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {# {% endif %} #} {# {% else %} #} {#
#} {#
#} {#

Traduction française manquante

#} {#
#} {#
#} {#
#} {#

La page wiki pour la clé "{{ key }}" #} {# n'existe pas en français.

#} {#

Vous pouvez contribuer en créant cette page sur le wiki OpenStreetMap.

#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Version anglaise

#} {#

#} {# Dernière modification: {{ en_page.last_modified }} #} {#

#} {#
#} {#
#} {#
    #} {#
  • #} {# Sections #} {# #} {# {% if detailed_comparison.adjusted_en_section_count is defined %} #} {# {{ detailed_comparison.adjusted_en_section_count }} #} {# {% else %} #} {# {{ en_page.sections }} #} {# {% endif %} #} {# #} {#
  • #} {#
  • #} {# Mots #} {# {{ en_page.word_count }} #} {#
  • #} {#
  • #} {# Liens #} {# {{ en_page.link_count }} #} {#
  • #} {#
#} {#
#} {# #} {# Voir la page anglaise #} {# #} {# #} {# #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Créer la version française

#} {#
#} {#
#} {#

Vous pouvez créer la page française en suivant ces étapes :

#} {#
    #} {#
  1. Consultez la version anglaise pour comprendre le contenu
  2. #} {#
  3. Créez une nouvelle page avec le préfixe "FR:" sur le wiki OSM
  4. #} {#
  5. Traduisez le contenu en respectant la structure de la page anglaise
  6. #} {#
  7. Ajoutez des exemples pertinents pour le contexte français
  8. #} {#
#} {# #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {# {% endif %} #} {#
#} {#
#} {#

Score de décrépitude

#} {#
#} {#
#} {#

Le score de décrépitude est calculé en prenant en compte plusieurs facteurs, avec une pondération #} {# plus importante pour la différence de nombre de mots :

#} {#
#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% for key, component in score_components %} #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% endfor %} #} {# #} {# #} {# #} {# #} {# #} {#
FacteurValeurPoidsContribution
{{ component.description }}{{ component.value }}{{ component.weight * 100 }}%{{ component.component|round(2) }}
Score total #} {# {% set total_score = 0 %} #} {# {% for key, component in score_components %} #} {# {% set total_score = total_score + component.component %} #} {# {% endfor %} #} {# {{ total_score|round(2) }} #} {#
#} {#
#} {#
#} {#

Comment interpréter ce score :

#} {#
    #} {#
  • Plus le score est élevé, plus la page française est considérée comme "décrépite" par rapport #} {# à la version anglaise. #} {#
  • #} {#
  • La différence de nombre de mots compte pour 50% du score, car c'est l'indicateur le plus #} {# important de la complétude de la traduction. #} {#
  • #} {#
  • Les différences de sections (15%), de liens (15%) et de date de modification (20%) #} {# complètent le score. #} {#
  • #} {#
#} {#
#} {#
#} {#
#} {#
#} {# #} {# Retour à la liste des pages wiki #} {# #} {#
#} {#
#} {#
#} {#

Comparaison des versions

#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Version anglaise

#} {#

#} {# Dernière modification: {{ en_page.last_modified }} #} {#

#} {#
#} {#
#} {#
    #} {#
  • #} {# Sections #} {# #} {# {% if detailed_comparison.adjusted_en_section_count is defined %} #} {# {{ detailed_comparison.adjusted_en_section_count }} #} {# {% else %} #} {# {{ en_page.sections }} #} {# {% endif %} #} {# #} {#
  • #} {#
  • #} {# Mots #} {# {{ en_page.word_count }} #} {#
  • #} {#
  • #} {# Liens #} {# {{ en_page.link_count }} #} {#
  • #} {#
#} {#
#} {# #} {# Voir la page #} {# #} {# #} {# #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#

Version française

#} {#

#} {# Dernière modification: {{ fr_page.last_modified }} #} {#

#} {#
#} {#
#} {#
    #} {#
  • #} {# Sections #} {# #} {# {% if detailed_comparison.adjusted_fr_section_count is defined %} #} {# {{ detailed_comparison.adjusted_fr_section_count }} #} {# {% else %} #} {# {{ fr_page.sections }} #} {# {% endif %} #} {# #} {#
  • #} {#
  • #} {# Mots #} {# {{ fr_page.word_count }} #} {#
  • #} {#
  • #} {# Liens #} {# {{ fr_page.link_count }} #} {#
  • #} {#
#} {#
#} {# #} {# Voir la page #} {# #} {# #} {# #} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#} {#
#}
{% if fr_page is defined and fr_page is not null %} {% endif %} {% block javascripts %} {% endblock %} {% endif %} {% endblock %}