Gender neutral German translation

(Erik Seethaler) #1

Hi, we’re planning to do a gender neutral German translation of discourse, based on the “official” German translation. Can anybody tell me, how we can achieve this? Is there a way to use Transifex, or is it smart to edit the YAML file directly? Can we commit our version to Github, so others can use it? Of course we also want to make sure, that we can keep the gender neutral translation up to date as discourse evolves.
thank you, zking

(Sam Saffron) #2

@gerhard any idea how something like this could be done?

(Gerhard Schlager) #3

First of all I suggest you create our own repository on Transifex. Since Transifex doesn’t support language variations you’ll need to trick it into doing what you want. :wink:

  1. Use English as source language (since it has the same pluralization rules as German), but upload the German locale files.
  2. Configure auto update for the source files by pointing them to the German locale files (raw) on Github.
  3. Add German as a language you want to translate.
  4. Upload the current German locale files since you don’t want to translate everything again.
  5. Change all the translations that refer to gender.
  6. Replace the existing German locale files with the new ones in your Discourse instance.

In an ideal world Discourse would allow multiple language fallbacks and language variations (locale customizations in the admin area -> de [gender neutral] -> de -> en), but that’s not possible at the moment. If that were possible you would only need to translate some of the strings on Transifex. So, it would work without step 4 and 6.

(Erik Seethaler) #4

Hi @gerhard , thank you for your reply. I’ve created a new project on Transifex and set everything up as you suggested. The project is, if anybody is interested in joining in ;-). Thank you for your advice!