Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 13 14 [15] 16 17

Author Topic: Dwarf Fortress localization patch  (Read 112998 times)

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #210 on: July 05, 2017, 07:20:34 am »

There is Korean translation of DF using modified SDL_ttf.dll. (page: http://nethack.byus.net/gnu4/bbs/board.php?bo_table=df_ko )
Spoiler (click to show/hide)

The issues
  • multi-line report/announcement is translated improperly, due to word order and grammer differences between English and Korean.
  • "Help", DFHack helper functions and "Thoughts and Prefences" aren't translated. They use graphic font.
  • masterwork mark(☼) is broken(?). dunno why.
  • descriptions in symbol screen
output looks simmilar to translation using ChangeTextPy alone.

I have questions about Russian version DF, insolor. How is the TTF output project on "Thoughts and Preferences" screen coming along? How did you manage long combat reports, like named noble dorf hits long-named guy with artifact weapon? Thank you.

Looks cool  :)

I'll answer you after about 5 hours.
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #211 on: July 05, 2017, 05:02:45 pm »

Spoiler (click to show/hide)

As for output of Thougths and Prefences and similar screens in TTF.
Spoiler: some technical info (click to show/hide)

As for long complex sentences (eg. in combat log), now they are looking rather ugly in Russian, even when they fit into one line, but we are working on it. I also tried to transfer some morphological information from each current line to the further line, but the result is still far from ideal.

I don't know what's the problem with the masterwork mark in your case. In case of Russian translation it is broken because it has the same code as Russian letter р (r) in cp1251. I'm thinking of using cp866 instead. In your case I don't see any reason why it could be broken.
Logged

maxjonata

  • Escaped Lunatic
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #212 on: July 27, 2017, 06:25:27 am »

Portuguese translation are almost completely unrevised, we have a brazillian community here trying to translate some things but would like some attention for us to use it properly if possible
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #213 on: July 27, 2017, 11:59:55 pm »

Portuguese translation are almost completely unrevised, we have a brazillian community here trying to translate some things but would like some attention for us to use it properly if possible

I've added you to reviewers for Portuguese (Brazil) (pt_BR).
« Last Edit: July 28, 2017, 12:03:03 am by insolor »
Logged

Hessed.Elohim

  • Bay Watcher
  • Spanish Translator
    • View Profile
    • Spanish DF Wiki
Re: Dwarf Fortress localization patch
« Reply #214 on: August 21, 2017, 11:42:42 am »

Any idea what it might be?

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #215 on: August 21, 2017, 01:35:28 pm »

Any idea what it might be?

Spoiler (click to show/hide)

This is a type hint. Type hints in Python are supported since Python 3.3 as far as I remember. The code itself was tested on Python 3.4

Btw. I see you use "bleeding edge" dfrus, so I must warn you that it's usage is changed:

1. Say, you download it as dfrus.zip
2. You must install it with pip install dfrus.zip (I suppose it must be pip3 install dfrus.zip on Linux)
3. Then you can use it from any directory like this:
python -m dfrus.dfrus -p "d:\Games\df_43_05_win32_s\Dwarf Fortress.exe" -n "Dwarf Fortress develop.exe" --debug -d trans_utf8.csv --codepage cp1251
(or python3 for Linux)
« Last Edit: August 21, 2017, 01:48:24 pm by insolor »
Logged

Hessed.Elohim

  • Bay Watcher
  • Spanish Translator
    • View Profile
    • Spanish DF Wiki
Re: Dwarf Fortress localization patch
« Reply #216 on: November 25, 2017, 10:09:18 am »

Hi.. another problem when running po2csv  :-\

Quote
Traceback (most recent call last):
  File "po2csv.py", line 7, in <module>
    from .po import load_po, escape_string
SystemError: Parent module '' not loaded, cannot perform relative import

try with the df-translate app and show me this:

Quote
Copying 'D:/****/df_44_02_win/Dwarf Fortress.exe'
To 'D:/****/df_44_02_win\Dwarf Fortress Patched.exe'...
Success.
Finding cross-references...

[PROCESS FINISHED]

But nothing in the game appears translated

CLARIFIED:
  • I have Py 3.4.4
  • try with cp850 and cp819 (default in the app)

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #217 on: November 26, 2017, 04:26:50 am »

Hi.. another problem when running po2csv  :-\

Quote
Traceback (most recent call last):
  File "po2csv.py", line 7, in <module>
    from .po import load_po, escape_string
SystemError: Parent module '' not loaded, cannot perform relative import

try with the df-translate app and show me this:

Quote
Copying 'D:/****/df_44_02_win/Dwarf Fortress.exe'
To 'D:/****/df_44_02_win\Dwarf Fortress Patched.exe'...
Success.
Finding cross-references...

[PROCESS FINISHED]

But nothing in the game appears translated

CLARIFIED:
  • I have Py 3.4.4
  • try with cp850 and cp819 (default in the app)

I will check the first issue. As for the second one, ensure that you are trying to patch 32 bit version of DF. 64 bit versions are not supported yet.
Logged

keynux

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #218 on: February 23, 2018, 08:15:30 pm »

Quote
Hi.. another problem when running po2csv  :-\

Quote

    Traceback (most recent call last):
      File "po2csv.py", line 7, in <module>
        from .po import load_po, escape_string
    SystemError: Parent module '' not loaded, cannot perform relative import

Hi Isolador. I have the same error, can't put the Spanish traduction. Is Load_po and escape_string a command or need .py archive?

Sorry my bad english! :P
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #219 on: February 25, 2018, 12:17:46 pm »

Well, the instruction is rather outdated. Untill I update it, try to use df translation client from this post

Here the first testing version of df-translate tool:
https://bitbucket.org/dfint/df-translation-client/downloads/df-translate.7z

Only two tabs are implemented for now (I posted screenshots of them earlier in this thread).
GUI hangs during downloading of files on the first tab, I will try to make downloading to be performed in the separate process later. Fixed.
The second tab is functional, so you can use this tool as a replacement of command-line dfrus-py.
The application remembers state of controls between session. Configuration file is stored in user's home directory (c:\users\username\.df-translate.json), you can remove it manually to restore default settings.

I'm planning to implement the third tab in the future to apply translation to external files of DF. I don't know how long it will take.

Source code is located here: https://bitbucket.org/dfint/df-translation-client/src
Logged

keynux

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #220 on: February 25, 2018, 01:37:38 pm »

Df translation client isn't 64 bit compatible.  :'(
I tried but nothing change in the new .exe
« Last Edit: February 25, 2018, 01:41:13 pm by keynux »
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #221 on: February 25, 2018, 01:51:42 pm »

Df translation client isn't 64 bit compatible.  :'(
I tried but nothing change in the new .exe

Df translation client uses the same dfrus-py tool which is mentioned in the instruction. It doesn't matter how you use dfrus-py - directly or from df translation client, it doesn't support 64 bit DF anyway.
« Last Edit: February 26, 2018, 11:19:57 am by insolor »
Logged

keynux

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #222 on: February 25, 2018, 07:59:14 pm »

Mmm i see, last question.
Hessed.Elohim tries to put the translation in linux, żis running good on Linux?

Thanks isolor!
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #223 on: February 25, 2018, 08:35:51 pm »

For Linux there is different project which is supported by other person: https://github.com/kateBy/df_rus_linux
Logged

Hessed.Elohim

  • Bay Watcher
  • Spanish Translator
    • View Profile
    • Spanish DF Wiki
Re: Dwarf Fortress localization patch
« Reply #224 on: April 19, 2018, 05:39:30 pm »

Hi.. I have this message:



any ideas?

EDIT: I wrote "cp819" manually and get this..

« Last Edit: April 19, 2018, 10:59:10 pm by Hessed.Elohim »
Logged
Pages: 1 ... 13 14 [15] 16 17