DiscoverMeteor / DiscoverMeteor_It

La versione italiana del libro Discover Meteor
http://it.discovermeteor.com
Other
14 stars 12 forks source link

Shoulde we translate text inside code snippets? #50

Closed splendido closed 10 years ago

splendido commented 10 years ago

Hi @SachaG. Just one simple question. What was the general approach about the translation of code snippets? Should we let them as they are in the English version or should we translate text appearing on the rendered page (e.g., buttons' text, headers, sentences, code comments, etc.)?

e.g.

<template name="postItem">
  <div class="post">
    <div class="post-content">
      <h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
      <p>
        submitted by {{author}}
        {{#if ownPost}}<a href="{{pathFor 'postEdit'}}">Edit</a>{{/if}}
      </p>
    </div>
    <a href="{{pathFor 'postPage'}}" class="discuss btn">Discuss</a>
  </div>
</template>

to

<template name="postItem">
  <div class="post">
    <div class="post-content">
      <h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
      <p>
        inviato da {{author}}
        {{#if ownPost}}<a href="{{pathFor 'postEdit'}}">Modifica</a>{{/if}}
      </p>
    </div>
    <a href="{{pathFor 'postPage'}}" class="discuss btn">Discuti</a>
  </div>
</template>

And what about the commits' comment?

For example

<%= commit "2-1", "Created basic microscope project." %>

with

<%= commit "2-1", "Creato progetto base per microscope." %>

This is also to be able to stay consistent through all the book.

Have a nice day, Luca

SachaG commented 10 years ago

I think the book and code should stay consistent so no, I don't think you should translate any of that. Unless you also intend to fork the repo and translate the actual code, but that's a lot of work…

splendido commented 10 years ago

Ok, agreed! We'll roll back to the original content then.

Tnx