LEGO® Universe Newly Imagined
Menu
  • Home
  • Download
    • Musik
  • Foren
  • Info
    • Mitwirkende
    • Welt
    • FAQ
    • Objects
  • Tutorial
    • Kompilieren in Visual Studio
    • Server 0.3
    • Server 0.4 (Pre-2)
    • Server 0.5.1
  • Home
  • Download
    • Musik
  • Foren
  • Info
    • Mitwirkende
    • Welt
    • FAQ
    • Objects
  • Tutorial
    • Kompilieren in Visual Studio
    • Server 0.3
    • Server 0.4 (Pre-2)
    • Server 0.5.1

The locale.xml of LUTranslator


Home › Foren › General Discussion › The locale.xml of LUTranslator

Schlagwörter: LUTranslator language selection custom locale.xml

  • Dieses Thema hat 9 Antworten sowie 4 Teilnehmer und wurde zuletzt vor vor 8 Jahren, 4 Monaten von Timtech aktualisiert.
Ansicht von 10 Beiträgen – 1 bis 10 (von insgesamt 10)
  • Autor
    Beiträge
  • Dezember 11, 2016 um 4:51 pm Uhr #7125
    Jonny
    Teilnehmer

    Hey, Tim! 😀

    I was trying to use your custom locale.xml with my client and I’m having some serious bugs.
    Idk if it’s the locale.xml or my client but I really think it’s the file.

    Screenshot (using French)

    Without these bugs fixed I really don’t want to release JALUP (my new game patcher) which will provide (amongst other things) a language selection.
    I really want people to play LU in their native language so I hope you can provide a working version of it.

    Sincerely
    Jonny

    Dezember 11, 2016 um 5:47 pm Uhr #7126
    Timtech
    Administrator

    Thanks for asking, Jonny.

    I started translating to Spanish by hand, but ended up figuring out how to use the Google Translate API to translate the rest of it. Then, I figured I might as well try to add some other languages. The only problem is, LU seems to have a different font file for each language (English, German, and Russian, although Russian translations were never added). So, except for Russian, I set the rest of the languages to the English font file, which seemed to cause some problems with the box/missing/error characters you’re seeing on the screen.

    If you open client\locale\locale.xml manually, like with Notepad++, you will see that all the characters are displaying correctly there. At the bottom of the file is all of the interesting stuff that I think would be the only way to mess with the fonts and stuff. My locale.xml has it looking something like this:

        <fonts count="7">
            <phrase id="FONTMAP_BOLD_NAME">
                <translation locale="en_US">Arial Rounded MT Bold</translation>
                <translation locale="pl_US">Times New Roman</translation>
                <translation locale="de_DE">Arial Rounded MT Bold</translation>
                <translation locale="es_ES">Arial Rounded MT Bold</translation>
                <translation locale="pt_PT">Arial Rounded MT Bold</translation>
                <translation locale="fr_FR">Arial Rounded MT Bold</translation>
                <translation locale="it_IT">Arial Rounded MT Bold</translation>
                <translation locale="ru_RU">Times New Roman</translation>
                <translation locale="nl_NL">Arial Rounded MT Bold</translation>
                <translation locale="ms_MY">Arial Rounded MT Bold</translation>
                <translation locale="tl_PH">Arial Rounded MT Bold</translation>
            </phrase>
            <phrase id="FONTMAP_BOLD_STYLE">
                <translation locale="en_US">Normal</translation>
                <translation locale="pl_US">Bold</translation>
                <translation locale="de_DE">Bold</translation>
                <translation locale="es_ES">Bold</translation>
                <translation locale="pt_PT">Bold</translation>
                <translation locale="fr_FR">Bold</translation>
                <translation locale="it_IT">Bold</translation>
                <translation locale="ru_RU">Bold</translation>
                <translation locale="nl_NL">Bold</translation>
                <translation locale="ms_MY">Bold</translation>
                <translation locale="tl_PH">Bold</translation>
            </phrase>
            <phrase id="FONTMAP_FONTLIB">
                <translation locale="en_US">fonts_en.swf</translation>
                <translation locale="pl_US">fonts_pl.swf</translation>
                <translation locale="de_DE">fonts_de.swf</translation>
                <translation locale="es_ES">fonts_en.swf</translation>
                <translation locale="pt_PT">fonts_en.swf</translation>
                <translation locale="fr_FR">fonts_en.swf</translation>
                <translation locale="it_IT">fonts_en.swf</translation>
                <translation locale="ru_RU">fonts_ru.swf</translation>
                <translation locale="nl_NL">fonts_en.swf</translation>
                <translation locale="ms_MY">fonts_en.swf</translation>
                <translation locale="tl_PH">fonts_en.swf</translation>
            </phrase>
            <phrase id="FONTMAP_ITALIC_NAME">
                <translation locale="en_US">Arial Rounded MT Bold</translation>
                <translation locale="pl_US">Times New Roman</translation>
                <translation locale="de_DE">Arial Rounded MT Bold</translation>
                <translation locale="es_ES">Arial Rounded MT Bold</translation>
                <translation locale="pt_PT">Arial Rounded MT Bold</translation>
                <translation locale="fr_FR">Arial Rounded MT Bold</translation>
                <translation locale="it_IT">Arial Rounded MT Bold</translation>
                <translation locale="ru_RU">Times New Roman</translation>
                <translation locale="nl_NL">Arial Rounded MT Bold</translation>
                <translation locale="ms_MY">Arial Rounded MT Bold</translation>
                <translation locale="tl_PH">Arial Rounded MT Bold</translation>
            </phrase>
            <phrase id="FONTMAP_ITALIC_STYLE">
                <translation locale="en_US">Normal</translation>
                <translation locale="pl_US">Italic</translation>
                <translation locale="de_DE">Italic</translation>
                <translation locale="es_ES">Italic</translation>
                <translation locale="pt_PT">Italic</translation>
                <translation locale="fr_FR">Italic</translation>
                <translation locale="it_IT">Italic</translation>
                <translation locale="ru_RU">Italic</translation>
                <translation locale="nl_NL">Italic</translation>
                <translation locale="ms_MY">Italic</translation>
                <translation locale="tl_PH">Italic</translation>
            </phrase>
            <phrase id="FONTMAP_NORMAL_NAME">
                <translation locale="en_US">Arial Rounded MT Bold</translation>
                <translation locale="pl_US">Times New Roman</translation>
                <translation locale="de_DE">Arial Rounded MT Bold</translation>
                <translation locale="es_ES">Arial Rounded MT Bold</translation>
                <translation locale="pt_PT">Arial Rounded MT Bold</translation>
                <translation locale="fr_FR">Arial Rounded MT Bold</translation>
                <translation locale="it_IT">Arial Rounded MT Bold</translation>
                <translation locale="ru_RU">Times New Roman</translation>
                <translation locale="nl_NL">Arial Rounded MT Bold</translation>
                <translation locale="ms_MY">Arial Rounded MT Bold</translation>
                <translation locale="tl_PH">Arial Rounded MT Bold</translation>
            </phrase>
            <phrase id="FONTMAP_NORMAL_STYLE">
                <translation locale="en_US">Normal</translation>
                <translation locale="pl_US">Normal</translation>
                <translation locale="de_DE">Normal</translation>
                <translation locale="es_ES">Normal</translation>
                <translation locale="pt_PT">Normal</translation>
                <translation locale="fr_FR">Normal</translation>
                <translation locale="it_IT">Normal</translation>
                <translation locale="ru_RU">Normal</translation>
                <translation locale="nl_NL">Normal</translation>
                <translation locale="ms_MY">Normal</translation>
                <translation locale="tl_PH">Normal</translation>
            </phrase>
        </fonts>
    

    Perhaps we could figure out if these are really the optimal settings for each language. I only had limited knowledge of what I was doing. Also, I don’t have access to the GTranslate API anymore but I don’t think we would need it to fix this, if it can be fixed. Maybe try switching the font to Times New Roman to see if anything changes?

    • Diese Antwort wurde vor 8 Jahren, 5 Monaten von Timtech geändert.
    Dezember 12, 2016 um 11:14 am Uhr #7131
    CookieMonst3r123
    Teilnehmer

    So JALUS = Just Another Lego Universe Server
    Is JALUP = Just Another Lego Universe Patcher

    BTW good work Jonny

    Dezember 14, 2016 um 12:59 am Uhr #7142
    WheresMyMailbox
    Teilnehmer

    I have no freaking clue what you just said? Or typed. lol

    Dezember 14, 2016 um 2:06 pm Uhr #7144
    Jonny
    Teilnehmer

    Hallo and thanks for the information, Tim!

    After some trial and error with the font libs and the available fonts I found out that the German font pack provides all the characters we need to display every language except for Russian properly using LU’s normal font. Russian requires to use New Times Roman though. But that’s nothing new I guess.

    All I need to implement now to have JALUP ready for its release is the possibility to run the client on macOS.

    Hope I’ll get to install a macOS VM on my computer within the next few days.
    Cuz then we’ll have a perfect patcher-client-combination.

    Sincerely
    Jonny

    Dezember 14, 2016 um 5:54 pm Uhr #7145
    Timtech
    Administrator

    Glad to hear that, Jonny!

    I had similar thinking when I set up the locale.xml but I don’t exactly understand what you did when you messed with the font libs. Could you explain what you changed in locale.xml or in the files in order to set everything up properly? That way I can update LU Translator for all the people that use it.

    Thanks, and I’m looking forward to JALUP 🙂

    Dezember 14, 2016 um 6:54 pm Uhr #7146
    Jonny
    Teilnehmer

    There actually is a way for you to get the locale.xml I am using.
    Just do the following:

    Step 1: Use [WINDOWS] + [R].

    Step 2: Type „\\jalup.jonnyvps.de\“ into the text field.

    Step 3: Click „OK“.

    Step 4: Log in with ANY username-password-combination.

    Step 5: Copy the locale.xml from the client files to your desktop.

    Dezember 14, 2016 um 7:34 pm Uhr #7147
    Timtech
    Administrator

    Hmm, it seems that I’m unable to connect to your server right now. That’s not a huge deal, though, but I’m assuming that you only had to change the locale.xml and not add or change the actual game fonts? (Because that’s the only thing that the LU Translator script will update). Maybe you could upload it to pastebin or something.

    Dezember 19, 2016 um 1:59 am Uhr #7162
    Jonny
    Teilnehmer

    It should work now.

    Dezember 19, 2016 um 7:28 pm Uhr #7164
    Timtech
    Administrator

    Strange, still doesn’t seem to work. Maybe I’m doing something wrong. Anyway, don’t worry about it, there is no rush. Just wanted to see how you changed the locale fonts.

  • Autor
    Beiträge
Ansicht von 10 Beiträgen – 1 bis 10 (von insgesamt 10)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Anmelden

Comments are currently closed.

Bevorzugte Sprache


  • English (en) English (en)
  • Deutsch (de) Deutsch (de)
  • Español (es) Español (es)

Die Foren durchsuchen


Neueste Themen


  • Happy New Year
  • FORUMS CLOSED

Foren

  • General Discussion

Andere Seiten

  • LU Server Projects Github online
  • Community Discord online
  • Suche im LUNIversum

    Bitte zur Kenntnis nehmen!

    Die LEGO Group hat den Betrieb dieses Spiels nicht offiziell genehmigt und übernimmt in keiner Weise Verantwortung für mögliche Sicherheitsprobleme im Zusammenhang mit diesem Spiel.

    Urheberrecht © 2015-2021 LUNI™ Server Projekt

    Gehostet von TimTech Software