Jump to content

yota13

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by yota13

  1. Quote

    Opinion from @tipun about GUI mod traification:


    I don't understand why GUI mods need to leave text in lua files? Infinity_FetchString pretty much pulls text from dialog.tlk. 

    The interface text inside the lua files is used. This interferes with translation, because if you need different versions of the mod for different translations:
    Let's say:

    text lua 'My text'


    translate as

    text lua 'Мой текст'


    Then on all variants of installation text specified in tp2/tph, etc. will be displayed.
    And if you do the following in the tp2/tph file:

    SET mytext = RESOLVE_STR_REF( @1001 )

     
    specify in the lua file

    text lua 'Infinity_FetchString(%mytext%)'

    and use command "EVALUATE_BUFFER" when copying it, and move line "My text\Мой текст" to tra-file, everything will work properly.

    It's just that some modders are too lazy, I think, to change the code after everything works. No, I'm not accusing. I get lazy sometimes too. But for translations it has to be done...

    There are also L_ru_RU.lua and other L_language.lua, which are loaded differently for each language. In EE itself, all translatable strings from the lua are moved to these files.

  2. On 2/21/2022 at 8:00 PM, lefreut said:

    This mod modify the UI, it does not add any new lines to the dialog.tlk. Most components either use no strings or use string ref so they are language agnostic.

    There are some components that use new string and they come with a/some lua file(s) (in the form of en_XXX.lua), that one could translate.

    Oh and the setup is traified.

     

        elseif currentlanguage == "ru_RU" then            -- Russian
                JFStrings = {
                JF_All = "Все",
                JF_Active = "Активные",
                JF_Completed = "Завершенные",
                JF_Notes = "Мои заметки:",
                JF_Edited = "Изменено:"
            }

    This block must be added to the file: EEUITweaks\copy\Mr2150JrnlFix\M_JFlang.lua.

    Otherwise, when Mr2150's Journal Fixes component is installed, the diary titles are displayed in English when using the Russian language.

    Baldr001.png

    Baldr002.png

  3. 9 minutes ago, morpheus562 said:

    I just took a look at it and the only part not translated to Russian is the setup file. Is there an intent to update this file?

    setup file no need to translate, because this is the file with the names of the components of the mod and if it is translated, then the installation will be unreadable characters instead of Russian words, so this file remains in English.

×
×
  • Create New...