Archives mensuelles : octobre 2014

Carte géologique

Frédéric Hamelin, fan de géologie, m’a signalé et fourni les paramètres pour la carte de géologie mise à disposition par le Bureau de Recherches Géologiques et Minières. Il s’agit d’une carte topologique contenant des couches représentant les formations géologiques, servie au format WMS.

Comme de nombreuses couches sont fournies, un peu de tâtonnement est nécessaire pour choisir la bonne. Cette définition vous permettra de créer une carte pré-configurée directement: Carte géologique (FR) (cliquez depuis votre terminal pour l’importer dans MyTrails).

Si comme moi vous n’êtes pas coutumier des cartes géologiques, cette légende vous sera utile.

Carte géologie

Using machine translation to help translate MyTrails

There’s nothing wrong in using the Machine Translation system built into Weblate as a base to help the process of translating each string.

You need to be aware of some issues introduced by the automatic translation system, in particular Google Translate:

  • it may interfere with punctuation, introducing extra spaces before commas or periods, which you’ll need to remove
  • it may interfere with markup:
    • markup such as <i>italic</i> may be tuned into &lt; and other messes; it’s not dangerous but will look very odd to end-users
    • placeholders such as %1$s, %s or %d are replaced with strings generated by the application, and if they are messed up during translation, the application will not only look odd, it may crash (but only in your language, making identification more difficult), please take extra care to make sure no spaces are introduced in these placeholders and that they are not otherwise modified
  • when the source string contains line-breaks (indicated by greyed-out ↵ icons), the automatic translation may introduce non-greyed-out such icons in the translated string, which should be replaced with actual line breaks
  • another source of minor issues is the introduction of double spaces or spaces before or after the string, which I then need to clean up

I have also added support for Microsoft Translate, which may introduce fewer issues.