[DFUnity/Classic] French Translation
- Jay_H
- Posts: 4070
- Joined: Tue Aug 25, 2015 1:54 am
- Contact:
Re: [DFUnity/Classic] French Translation
Daggerfall Unity's support for other languages of Daggerfall is very suspect. The files won't link up like they're supposed to. It'll be better to do direct translation on DFU instead of translating DF and then imposing DFU.
- pango
- Posts: 3358
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: [DFUnity/Classic] French Translation
Hi Cristalnoir,
A french contributor here, and I'm just starting to find my way around Daggefall Unity sources, so I will probably get some things wrong
Most of the time Daggerfall Unity does not take text resources from the underlying Daggerfall setup.
See HardStrings.cs for all the strings that used to be hardcoded into the executable, and of course the text format quests used instead of the original compiled ones. They're exceptions, for example books are read from Daggerfall classic. And some texts are embedded into graphics (for example dialog boxen) and will be imported from classic, unless that graphic is modded DFU-side. I'm probably missing cases.
Translation support is planned for Alpha stage according to the roadmap, and will require externalizing all texts using TextManager.cs I assume, and then add the possibility to switch between text databases. And use some library (like gettext?) to specify plural forms, those kinds of grammar hints.
So work needs to be done before Daggerfall Unity translation can start.
The good news is that, with program sources and Unicode, translation should then be more flexibility and comfortable than ever.
Moddable interface with variable spaced fonts would benefit languages more verbose than english (including french, but some languages are way more verbose), but looks like a lot of work, and is definitely not a goal for 1.0 release.
A french contributor here, and I'm just starting to find my way around Daggefall Unity sources, so I will probably get some things wrong
Most of the time Daggerfall Unity does not take text resources from the underlying Daggerfall setup.
See HardStrings.cs for all the strings that used to be hardcoded into the executable, and of course the text format quests used instead of the original compiled ones. They're exceptions, for example books are read from Daggerfall classic. And some texts are embedded into graphics (for example dialog boxen) and will be imported from classic, unless that graphic is modded DFU-side. I'm probably missing cases.
Translation support is planned for Alpha stage according to the roadmap, and will require externalizing all texts using TextManager.cs I assume, and then add the possibility to switch between text databases. And use some library (like gettext?) to specify plural forms, those kinds of grammar hints.
So work needs to be done before Daggerfall Unity translation can start.
The good news is that, with program sources and Unicode, translation should then be more flexibility and comfortable than ever.
Moddable interface with variable spaced fonts would benefit languages more verbose than english (including french, but some languages are way more verbose), but looks like a lot of work, and is definitely not a goal for 1.0 release.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: [DFUnity/Classic] French Translation
I think the spanish translation effort is the most advanced, IIRC they have already done many images & quests.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- pango
- Posts: 3358
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: [DFUnity/Classic] French Translation
Translating texts directly in quest files is not without merits (it's simple, for one), but has its own faults.
For example, the change you made to all the quests giving you maps? Now that will have to be ported to each translation...
For example, the change you made to all the quests giving you maps? Now that will have to be ported to each translation...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Cristalnoir
- Posts: 88
- Joined: Sat Apr 09, 2016 4:14 pm
Re: [DFUnity/Classic] French Translation
I thought that DFU was reading the files from the DF folder, but not for everything. We will have to be patient.
I am finishing a French interface of image files in French, it will soon be available on this forum.
I am finishing a French interface of image files in French, it will soon be available on this forum.
Cristalnoir studio
- pango
- Posts: 3358
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: [DFUnity/Classic] French Translation
Externalizing strings looks like a lot of grunt work.
With clear general instructions, I'm sure contributors with some dev skills (myself or otherwise) could work on that before Alpha stage is reached, without taking precious time of main devs.
I assume strings used in interfaces that are currently directly in the sources (in HardStrings or just literal strings) should be replaced by lookups using TextManager; I kinda remember seeing older string lookup class(es) that need to be phased out, but it's a bit fuzzy.
I'd like confirmation before spending time on the wrong task...
With clear general instructions, I'm sure contributors with some dev skills (myself or otherwise) could work on that before Alpha stage is reached, without taking precious time of main devs.
I assume strings used in interfaces that are currently directly in the sources (in HardStrings or just literal strings) should be replaced by lookups using TextManager; I kinda remember seeing older string lookup class(es) that need to be phased out, but it's a bit fuzzy.
I'd like confirmation before spending time on the wrong task...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: [DFUnity/Classic] French Translation
Not sure if you are aware, but a lot of strings are already exposed with the Text folder.
HardStrings contains arrays of strings which are not supported by csv format so is not as simple. I think these fields could be implemented as [a, b, c] or even reusing literals support for "a, b, c" but Interkarma may have a better idea. I believe end of line is also an issue so every row must be on a single line. Some single strings could be already exposed tough.
HardStrings contains arrays of strings which are not supported by csv format so is not as simple. I think these fields could be implemented as [a, b, c] or even reusing literals support for "a, b, c" but Interkarma may have a better idea. I believe end of line is also an issue so every row must be on a single line. Some single strings could be already exposed tough.
- pango
- Posts: 3358
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: [DFUnity/Classic] French Translation
Yes, my "all texts" link points to Text folder in github.
A lot are, the point is to externalize the remaining ones so that everything can be translated
For structured data and control characters encoding I'd go for something standard, like JSON.TheLacus wrote: ↑Wed Oct 31, 2018 5:43 pm HardStrings contains arrays of strings which are not supported by csv format so is not as simple. I think these fields could be implemented as [a, b, c] or even reusing literals support for "a, b, c" but Interkarma may have a better idea. I believe end of line is also an issue so every row must be on a single line. Some single strings could be already exposed tough.
I've seen JSON being reinvented too many times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: [DFUnity/Classic] French Translation
I thought Interkarma intended for the text files in StreamingAssets/Text to eventually replace HardStrings.cs, but maybe I am wrong.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- Deepfighter
- Posts: 138
- Joined: Sun Mar 22, 2015 10:24 am
- Location: Iliac-Bay
- Contact:
Re: [DFUnity/Classic] French Translation
Have to correct you here a bit. At least if we look at Classic Daggerfall, too. The most advanced Daggerfall translation is the French version (99% complete), followed by the German (70%), Spanish, Italian and then Russian translation. Regarding the porting/retranslation of these translations to DFUnity you may be right that the Spanish translation took the most effort so far.
At least for the German version I can say that I still wait until everything is put in place for really translating/porting everything (Interkarma may give the go!). The porting process itself is probably simple C&P work. I would recommend that for everyone else, too. We don't know what happens until the final DFUnity version regarding file handling and accessing. If you are to hasty, then this could lead to much redundant work. Just saying...
Head of the German Daggerfall translation - www.daggerfalldeutsch.de
and German translator for The Elder Scrolls V: Skyrim and Lore-Expert for The Elder Scrolls: Online
and German translator for The Elder Scrolls V: Skyrim and Lore-Expert for The Elder Scrolls: Online