1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

[Community Effort] French Translation

Discussion in 'Rhye's and Fall - Dawn of Civilization' started by Leoreth, Jul 11, 2018.

  1. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    This is the thread for translating the mod into French. See here for the general thread explaining how the translation works and should be organised.

    I will maintain this first thread with the members participating in this translation including the endorsed coordinator, but otherwise leave organisation to you. You don't need to be in this list to participate (I may be slow to update sometimes), but please coordinate with the coordinator.

    Coordinator: Steb
     
    Last edited: Jul 11, 2018
  2. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    All right, allons-y.

    I have created a git branch "traduction_francaise" which will serve as the base for the translation. If you want to help and know git, you can branch off from it, translate stuff, and then submit a pull request. I will merge it and thus collect all the translation work. If you're less comfortable with git, you can edit directly on github and then submit a pull request (it's very easy), or use any method you find simpler, like downloading an XML file, translating, and then posting the edited file here.

    Unlike when writing the XML text in English, we need to worry about le genre et le nombre. A basic entry looks like this:
    Code:
    <French>Nous sommes en l'an 50 avant J.-C. Toute la Gaule est occup&#233;e. Toute? Non!<French>
    
    This is what we want for long text like in my example, since a sentence or paragraph can't be "plural" or "feminine".

    Here's what it might look like for a noun with fixed gender but which can be singular or plural:
    Code:
    <French>
        <Text>Digue:Digues</Text>
        <Gender>Female</Gender>
        <Plural>0:1</Plural>
    </French>
    
    And here for an adjective that can take any gender and number:
    Code:
    <French>
        <Text>grec:grecque:grecs:grecques</Text>
        <Gender>Male:Female:Male:Female</Gender>
        <Plural>0:0:1:1</Plural>
    </French>
    
    Notice the colons separating the words, and the <Gender> and <Plural> lines specifying which entry is which.

    Even when an entry is invariable, we should still specify the gender and number:
    Code:
    <French>
        <Text>Les Grecs</Text>
        <Gender>Male</Gender>
        <Plural>1</Plural>
    </French>
    
    I'd say it's probably not such a big deal if you just use the basic pattern even for words that should be correctly tagged feminine etc. (at worst there'll be a few grammar inconsistencies in the game) but it would be good practice to do them. Look at the original Civ4 code for examples, and when in doubt, ask!

    As Leoreth said, it's better to work on small chunks, so please let everyone here know what you're working on. For now just I think just using this thread for keeping track is fine, if it gets too complex we'll look into other solutions.
     
    Last edited: Jul 11, 2018
    1SDAN and Leoreth like this.
  3. NoShameD

    NoShameD Chieftain

    Joined:
    Oct 13, 2010
    Messages:
    271
    Location:
    Sorgues, France
    I can help, as I'm french and I have some time right now (summer holidays are for teachers too !)
    Just tell me what you want me to translate first, and how should I send it to you.
     
  4. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    You can start with basically any file in XML/Text! You can edit a file and then post it here, or edit it directly in github (e.g. to edit Actions.xml, go here, click the pencil icon, edit the file, and then click "propose file change" at the end).

    To-do list:
    (bolding indicates a big file)
    (greyed out files are done)
    • Actions
    • Barbarians (we can probably skip the Mercenary entries?)
    • Buildings (buildings are done, strategy texts aren't)
    • Civics
    • Civilopedia (low priority)
    • Congress
    • Corporations
    • Dawn of Man
    • Diplomacy
    • Events (only a few events need translation)
    • Features
    • Handicaps
    • Hints
    • Improvements
    • Interface
    • Leaders
    • Modifiers
    • National Wonders
    • Projects
    • Promotions
    • Regions
    • Religions
    • Ressources
    • Stability
    • Strategies
    • Technologies (names and most quotes are done; pedia and some quotes aren't)
    • Unique Powers
    • Units
    • Victory
    • World Wonders (names are done, strategy and help texts aren't)
    Plus the dynamic names of all civilizations (in XML/Text/DynamicNames) and a few things in XML/Text/External. I'll edit the list as we go along.
     
    Last edited: Jul 18, 2018 at 11:15 PM
  5. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    Let me add that most external text is most likely already translated, and that Civilopedia has the lowest priority. It's not as bad if a pedia entry is untranslated as opposed to the name of an actual game element.
     
    Steb likes this.
  6. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    I translated all the Dawn of Man texts! Probably not the most important but it was kinda fun. Also the religions and regions files. See the pull request.
     
    Leoreth likes this.
  7. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    See my recent pull request that fixes the 2 small errors that come up when launching the game.

    Also, when loading the game in French, there is a problem of encoding that prevents playing:
    Code:
    Traceback (most recent call last):
    
      File "CvScreensInterface", line 693, in forceScreenRedraw
    
      File "CvMainInterface", line 1320, in redraw
    
      File "CvMainInterface", line 5158, in updateScoreStrings
    
      File "CvMainInterface", line 5757, in getPaganReligionChar
    
      File "FontUtil", line 164, in getChar
    
      File "FontUtil", line 154, in getSymbol
    
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
    ERR: Python function forceScreenRedraw failed, module CvScreensInterface
    
     
  8. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    This is what happens when the game has to encode a non ASCII character, in this case the code E9 is an é. Check if you haven't converted all your characters.
     
    Last edited: Jul 16, 2018 at 4:39 AM
    1SDAN and Steb like this.
  9. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    Hmm, I don't think that's it. I think I removed the errors and I still get the exception—but only when there is a Pagan civ in the game (e.g. launching a 3000 BC game, or—I just tried this— playing the Byzantines and meeting the Vikings). Maybe related to the Pagan symbol in the scoreboard?

    I noted another important problem. The XML keys of things related to civilizations seem to differ between the languages! For instance, Japan's dynamic name shows up as TXT_KEY_CIV_JAPON_DEFAULT instead of correctly using JAPAN and using the translation. I noticed that for some other civs and also the Dawn of Man texts. How are the keys defined? I assume there's some sort of string manipulation to put the name of the civ in it, and that's sensitive to language. It'd be good to make that name English in all cases.
     
  10. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    Strange, is that problem already present in the develop version? I can try to investigate it.

    I am aware of the text key problem for dynamic names. Some text keys are automatically determined by the code to simplify things, but apparently that is not hard wired to English as I thought. I will look into it.
     
  11. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    Yeah, I'm pretty sure.
     
  12. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    Some questions to fellow French speakers:
    - How should we translate "core" and "core area"? Cœur? Zone centrale?
    - The techs sailing, seafaring and navigation can be called respectively "Navigation à voile", "Navigation en mer" and "Navigation", but then it's weird to discover "Navigation" after the other two. Quelqu'un a un synonyme pour navigation dans le sens de l'art de diriger un navire?
    - Comment traduiriez-vous les technologies "Academia", "Scholarship" et "Statecraft"?
     
  13. need my speed

    need my speed Rex Omnium Imperarium

    Joined:
    Oct 3, 2009
    Messages:
    1,989
    Gender:
    Male
    Location:
    European Union (Magna Batavia)
    Would the third navigation be navigating by the stars, perhaps (I am on holiday, I can't check)? Read the description of the technology, if it exists, to see what it is about, to find ideas?
     
  14. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    Just a few thoughts: maybe sailing could just be The Sail? Or another word that refers to early boating? I see Seafaring as a more general word not just about steering a literal ship, but also economic and military activities using ships, maybe there is a different generic term for that?
     
  15. J422

    J422 Chieftain

    Joined:
    Apr 1, 2013
    Messages:
    83
    Location:
    France
    Heureux de voir que le projet est lancé ! :)
    Pas trop le temps en ce moment avec le boulot, d'autant que je ni le jeu installé ni un bon ordi... Mais j’espère pouvoir m'y mettre bientôt !

    Je dirais tout simplement "centre".

    "Voile" est a mon avis la solution la plus élégante pour sailing, et ensuite "Navigation" pour seafaring. Qu'est ce que tu penses de "Marine" pour navigation ? C'est le plus logique historiquement, et ça englobe tout le système.

    Pour Academia, je pense qu' "Université" marche bien.
    Scholarship je sèche. C'est au moyen age c'est ça ? "Érudition" sonne pas très bien, "Scholastique" est trop précis a mon avis...
    Pour Statecraft, "Gouvernement" est surement trop large. "Centralisation" ?
     
    Steb likes this.
  16. Leoreth

    Leoreth That's rough buddy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    30,933
    Gender:
    Male
    Location:
    Fire Nation
    Semi serious response but actual usage in the context of France suggests "métropole".
     
    J422 likes this.
  17. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    From my understanding, "navigation" refers to anything being used to direct ships others than landmarks on the shore, e.g. the stars. That's also called "navigation" in French, but the word also has the more general meaning of using a ship in any context.

    Yeah, I'm going to use "Voile" ("Sail") for Sailing.

    Université c'est bon. J'aimerais garder le sens de navigation pour "navigation", mais marine est une bonne option pour "seafaring", merci!

    @Leoreth, what is the Scholarship tech meant to be in the context of the tech tree?

    Interesting thought, but that word is too closely associated with colonialism, I think. It'd be weird for, say, the Iranian Plateau to be the "métropole" of the Persian Empire.
     
    Leoreth likes this.
  18. 1SDAN

    1SDAN Brother Lady

    Joined:
    Oct 27, 2014
    Messages:
    1,559
    When I pulled the latest French translation changes, the à characters were not encoded, despite being encoded on github.
     
  19. Steb

    Steb Chieftain

    Joined:
    May 20, 2009
    Messages:
    553
    Gender:
    Male
    Location:
    Montréal
    Can you tell me where? I noticed some problems with the encoding too, I'll see what I can do.
     
  20. 1SDAN

    1SDAN Brother Lady

    Joined:
    Oct 27, 2014
    Messages:
    1,559
    I've already fixed it on my local version, sorry.
     

Share This Page