On Wednesday 11 July 2007, Dennis Schridde wrote:
>
> The patch is already commited (r2053).
> The translation has a few locations I am not sure about. So before clearing
> those parts and commiting the remainders, I think it is better to talk
> about it first. (Saves me some effort. ;) )

Thanks for your feedback.
I know some translations are completely out of scope as I had the problem that 
I did not know the "scope" (where/when the text is displayed).
I still have to play the game more often to find it ;-)

To do this and to find all the tanslation errors, I also want to make sure all 
things are translatable.
This leads me to the next point:

I found that the files which define which other resource files to load are 
the ".wrf" files.
E.g. fontend.wrf contains
directory       "messages/strings"
file            STR_RES "strings.txt"
file            STR_RES "names.txt"

Which means: currently there is no translation foreseen, as the parser just 
looks up exactly what is given here.

I'd like to modify the loading code so that one can - optionally - include 
translations to all resourcefiles; which shall not limit the translation to 
strings but shall also allow one to translate the speech files, etc.

So I propose to modify resLoadFile() to not only check for the given file as 
given, but it shall also try to locate the file below a directory named after 
the current locale, e.g.

resLoadFile() shall check for
<locale-name>/messages/strings/strings.txt
and if that does not exist, fall back to:
messages/strings/strings.txt

Whereby <locale-name> shall either be getlocale(LC_MESSAGES, 0) (e.g. 
de_AT.UTF-8) or probably I shall check also/only for the language part ("de" 
in this example)

I'll implement this and will come up with a patch.
If you think this approach is completely nonsens, please tell me.

-- 
Best regards/Schöne Grüße

Martin    ()  ascii ribbon campaign - against html mail 
          /\                        - against microsoft attachments

Computers and Internet gave you freedom.
TCPA would TAKE your FREEDOM!  http://www.againsttcpa.com

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to