<div dir="ltr"><div><div>En effet l'erreur <b>Missing object kind </b>est reportée sur plein d'autres objets comme par exemple où il n'y a que des tag name=<br></div>La, on peut comprendre qu'il manque quelque chose.<br></div>Mais sur les piste de ski ou les tags piste:type, piste:difficulty, name existent, je ne vois pas ce qu'il pourrait manqué d'obligatoire d’où l’incompréhension de cette erreur sur ces objets.<br></div><div class="gmail_extra"><br><div class="gmail_quote">Le 18 octobre 2014 11:30, Yves Pratter <span dir="ltr"><<a href="mailto:yves.pratter@gmail.com" target="_blank">yves.pratter@gmail.com</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>Le 18 oct. 2014 à 10:02, Jean-Baptiste Holcroft <<a href="mailto:jb.holcroft@gmail.com" target="_blank">jb.holcroft@gmail.com</a>> a écrit :</div><span class=""><br><blockquote type="cite"><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><br>Dans le code, l'erreur serait là :<br><a href="https://github.com/osm-fr/osmose-backend/blob/649db8ac4e642e0fdbf065c1012744e627c8e906/plugins/TagFix_MultipleTag.py#L35" target="_blank">https://github.com/osm-fr/osmose-backend/blob/649db8ac4e642e0fdbf065c1012744e627c8e906/plugins/TagFix_MultipleTag.py#L35</a><br></div></div></blockquote><div><br></div></span>J’essai de comprendre le code mais ce n’est pas très clair (en comparaison à d’autres erreurs):</div><div><div>Donc si l’objet à l’attribut « name » et que son parent ne serait pas nommé ?? (je ne pige pas la seconde condition)</div><div><br></div></div><div><table style="border-collapse:collapse;border-spacing:0px;background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:18px"><tbody><tr></tr><tr><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"><span style="font-weight:bold">if</span> <span>tags</span><span style="font-weight:bold">.</span><span>get</span><span>(</span><span style="color:rgb(223,80,0)">"name"</span><span>)</span> <span style="font-weight:bold">and</span> <span style="color:rgb(0,134,179)">len</span><span>(</span><span>key_set</span> <span style="font-weight:bold">&</span> <span style="color:rgb(153,153,153)">self</span><span style="font-weight:bold">.</span><span>name_parent</span><span>)</span> <span style="font-weight:bold">==</span> <span style="color:rgb(148,82,119)">0</span><span>:
    </span><span>err</span><span style="font-weight:bold">.</span><span>append</span><span>((</span><span style="color:rgb(148,82,119)">21101</span><span>,</span> <span style="color:rgb(148,82,119)">1</span><span>,</span> <span>{}))
</span></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"><br></td></tr></tbody></table></div><div><span class=""><br><blockquote type="cite"><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">(si vous parlez des langues étrangères, n'hésitez pas à aider à la traduction d’osmose)<br></div></blockquote></span>Osmose ne semble pas utiliser de bibliothèque de code <a href="http://fr.wikipedia.org/wiki/Internationalisation_(informatique)" target="_blank">i18n</a> (la traduction est faite dans le code source, pas dans des fichiers ressources séparés).</div><div>Bref ça rend la traduction plus difficile à faire et ça explique peut-être pourquoi certaines erreurs apparaissent dans une langue, mais pas dans une autre… ?</div><div><br></div><div>La bibliothèque gtext existe en Python : <a href="https://docs.python.org/2/library/i18n.html" target="_blank">https://docs.python.org/2/library/i18n.html</a></div><div><br></div><div>Est-ce que son utilisation à été envisagée ?</div><div>C’est un gros chantier que de modifier le code source et d’extraire les messages, mais vu l’importance d’Osmose et son utilisation qui semble mondiale, ce travail sera un gain de temps pour le futur.</div><div>Et avec plein de petites fourmis, il n’est peut-être pas si difficile et long à faire.</div><div><br></div><div>—</div><span class="HOEnZb"><font color="#888888"><div>Yves</div></font></span></div><br>_______________________________________________<br>
Talk-fr mailing list<br>
<a href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">https://lists.openstreetmap.org/listinfo/talk-fr</a><br>
<br></blockquote></div><br></div>