GenderDysphoria / GenderDysphoria.fyi

Site code
Other
224 stars 63 forks source link

Add Portuguese translation (light version) #111

Closed gjvnq closed 1 year ago

gjvnq commented 1 year ago

This is a trimed down version of pull request #109.

I still need to double check the translation to find any mistakes, mispellings, that sort of thing. But I believe it's already possible to review the code changes.

There are two changes not really necessary for the translation itself but that I felt should be included:

  1. The changes on _global.scss that make the fragment links work better.
  2. The partial replacement of the Gothic A1 font with the Inter font as the previous lacks just a few characters necessary in Portuguese, namely á, í, ó, ú, ã, õ, and their upper case versions.

Notes about the translation:

  1. I added info specifically about the situation in Brazil in Diagnosticando Disforia de Gênero (Diagnosing Gender Dysphoria) and Tratando Disforia de Gênero (Treating Gender Dysphoria).
    1. I commented on how the Brazilian Federal Medicine Council (CFM) changed its definition of transsexualism [sic] over time.
    2. I summarized the current rules of CFM for gender affirming care.
  2. I inserted myself on Intro. Segunda Puberdade Estrogênica (Estrogenic Second Puberty 101). Where it said “including by yours truly” it became “incluindo a autora e a tradutora desse documento” (including the author-♀ and the translator-♀ of this document). (the -♀ notation means that the original word was of the feminine gramatical gender)
  3. In some places I replaced the -sexual and -philic suffixes with -afetiv(o/a/e) which encompass both sexual and romantic love. E.g. gynosexual became ginoafetiva instead of ginofílica. E.g. monosexual became monoafetiva.
  4. I haven't translated all the images but I think that this doesn't compromise the understanding of the text and I plan to fix this in a future PR.

The attached file gdb---pt-light.wacz.txt (remember to rename .wacz.txt to .wacz before trying to view it on https://replayweb.page) is a preview of what the website will look like after this PR.

gjvnq commented 1 year ago

In my experience it didn't break anything but I'll write a short testing program just to be safe.

I had made this change on slugify.js because the links to section headers were not working properly.

On Sun., Oct. 23, 2022, 14:23 Jocelyn Badgley, @.***> wrote:

@.**** commented on this pull request.

In build/lib/slugify.js https://github.com/GenderDysphoria/GenderDysphoria.fyi/pull/111#discussion_r1002742529 :

@@ -1,6 +1,6 @@ const slugs = require('slugify');

module.exports = exports = function slugify (s) {

  • const result = slugs(s, { remove: /[*+~.,()'"!?:@/\]/g }).toLowerCase();
  • const result = s.trim().replace(/[^\p{L}\p{N}]+/ug, '-').replace(/^-+/, '').replace(/-+$/, '').toLowerCase();

Have you checked if this changes any of the existing urls? I don't want to break any links.

— Reply to this email directly, view it on GitHub https://github.com/GenderDysphoria/GenderDysphoria.fyi/pull/111#pullrequestreview-1152338125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXIYHC7NMZLN7JAGMDHIODWEVYAVANCNFSM6AAAAAARCA4LNA . You are receiving this because you authored the thread.Message ID: @.*** com>

Twipped commented 1 year ago

I did a diff of the build from master vs this branch, and it's looking like they're all identical. We're good to merge, great work!

gjvnq commented 1 year ago

We're good to merge, great work!

Thanks! I'm flattered!