Live data from Hacker News

French civil code now on GitHub

github.com

31–40 of 126 posts

Re: French civil code now on GitHub

#31

Earlier quoted context omitted.

I'm really pleased that I was able to read all of the README despite not having read French for probably a year or more. I guess it was written in a very easy/academic style.

I had the same thought. Perhaps it's also because of the closeness of many terms here to their English equivalents ("collaboration", "code source", "commits", "assemblées", etc).

"commits" and many other words in the text are actually not French.

Re: French civil code now on GitHub

#32
post #24

Earlier quoted context omitted.

You should commit your translation

I can submit a pull request if one would be welcome. I'm not sure, though, as the rest of the repo is in French. There's a Markdown version here, if someone wants it: https://gist.github.com/spinda/282452390bf6d6fbcc5b

Well the rest of the repository is the french civil code so it makes sense for it to be in french, I'm guessing the readme being bilingual would be acceptable (though obviously judging of that is the repo owner's prerogative)

Re: French civil code now on GitHub

#33
post #29

I need to keep in practice with my French, so I've translated the README below. Let me know if I got anything wrong. ------ The French Civil Code, in Git Introduction Here is a little hack, the result of an afternoon of code: the Civil Code in Git. If one considers the law as a set of texts modified by the various assemblies of the state, one can consider them as a set of text files created collaboratively. The membe…

As a native French speaker: very good translation. One small point: I do not understand why you added "it" to the last sentence of the introduction. Your translation of that particular sentence feels weird to me, why not simply: "And source code belongs in source control." Also, maybe "différentes" (in the third sentence) could have been translated to "various" ? * * * Aside, note that the original text itself has se…

One small point: I do not understand why you added "it" to the last sentence of the introduction. Your translation of that particular sentence feels weird to me, why not simply:

"And source code belongs in source control."

You're right, of course. That was left over when I switched from "it goes in" to "it belongs in". Fixed!

For "les différentes assemblées", would you say "various assembliess" or "the various assemblies" in this context?

Re: French civil code now on GitHub

#34

I already made something similar (but more user-friendly) a few years ago using Django: https://criminocorpus.org/fr/legislation/civil/ . And there are similar diff possibilities: https://criminocorpus.org/fr/legislation/versions/689/1/diff... :)

Generated PDF are not really web 2.0 :/

Re: French civil code now on GitHub

#35
post #31

Earlier quoted context omitted.

I had the same thought. Perhaps it's also because of the closeness of many terms here to their English equivalents ("collaboration", "code source", "commits", "assemblées", etc).

"commits" and many other words in the text are actually not French.

Ah, I assumed it was a loanword due to git's English-speaking origins. Didn't realize there was a 'native' French equivalent ("les validations"?).

Re: French civil code now on GitHub

#38
post #31

Earlier quoted context omitted.

"commits" and many other words in the text are actually not French.

Ah, I assumed it was a loanword due to git's English-speaking origins. Didn't realize there was a 'native' French equivalent ("les validations"?).

Despite "message de validation" being the commonly accepted translation for "commit message", normally you should use "modification" to mean "commit".

Many French git users still say "commit" though, me included, but it is definitely not a French word.

Re: French civil code now on GitHub

#39
Legal documents are particularly bad to place under source control, because most of them already reference the previous code they are replacing. And, since the code is basically readonly what's the point of using github? I think legal documents do need a versioning system, but it would have to take into account the peculiarities of the domain (i.e. have each article as a node and amendments as graph links)

Re: French civil code now on GitHub

#40
post #12

Earlier quoted context omitted.

Same here. Diffs published from the Journal Officiel aren't so easy to parse. I am afraid it could be manually generated, which is a dead end.

The author mention he did it in an afternoon of code, so it's definitely not manually generated : "Voici un petit hack, résultat d'une après-midi de code" I do agree that the technical details would be interesting.

I don't think it's possible to generate a general parser for the Journal Officiel in an afternoon.

It would make the author a _very_ efficient worker.

Post reply on HN