Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7 8 ... 17

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

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #75 on: August 04, 2014, 06:56:38 am »

I should've known that your code was more robust than I knew. Still, uniform formatting is great for WinMerge shit. That thing hiccups on the dumbest things.

Thanks for doing the drudge work for us again.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #76 on: August 04, 2014, 07:03:07 am »

Yeah, its lovely. I tried that formatting trick with 'B' for linebreaks, and suddenly all the coins, artefacts and items are very readable. :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

BatCountry

  • Bay Watcher
  • We can't stop here...
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #77 on: August 06, 2014, 08:50:27 pm »

Still, uniform formatting is great for WinMerge shit. That thing hiccups on the dumbest things.

For the sake of sanity, check out a tool called DiffMerge from SourceGear.  Works on Windows and Linux.

I used it constantly at work to unravel ugly diffs in code.  The killer feature is being able to insert manual alignment markers - in other words you can tell the diff algorithm "no, dammit, this line is the same as this line, stupid."
Logged

Roses

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #78 on: August 06, 2014, 09:31:55 pm »

Yeah, its lovely. I tried that formatting trick with 'B' for linebreaks, and suddenly all the coins, artefacts and items are very readable. :)

So I don't quite understand, what do I do to make it look pretty?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #79 on: August 06, 2014, 09:38:44 pm »

You know that descriptions always start with the same words. "It is decorated with blabla" "On the item is a" "The artwork relates to"

And if you add a
Code: [Select]
[B] in front of that, you get a linebreak. Just like adding a tag here on the board. I made a post about it here, including all lines I altered: http://www.bay12forums.com/smf/index.php?topic=141686.0

You just open the string dump, find the lines you want, add that 'B', and patch the exe. And then it looks like this:
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Roses

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #80 on: August 06, 2014, 09:56:57 pm »

Hmm, that is very nice, is it possible to do something similar for creature descriptions? If I had directly into the creatures description will it create a linebreak? Or do I need to use the stringdump replace?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #81 on: August 06, 2014, 10:20:46 pm »

It doesnt work in the creature descriptions, because the
Code: [Select]
[] itself are read out by DF, it thinks you are ending the descriptions tag. It only works in the string dump, or in the weird-text-files, which are the diplomat texts and the embark text. And the ingame manual.

Edit: It does work on descriptions that are procedually generated, because they are not in the raws, but also in the .exe. :) So titans, megabeasts, fbs...

Edit: these are the most likely candidates: All the "Its" with capital I could get a linebreak.
Code: [Select]
|soot|soot|
|embers|embers|
|cinders|cinders|
|composed of ash|composed of ash|
|shade|shade|
|sludge|sludge|
|composed of mud|composed of mud|
|brown|brown|
|slick|slick|
|quagmire|quagmire|
|composed of vomit|composed of vomit|
|green|green|
|disgusting appearance|disgusting appearance|
|brine|brine|
|composed of salt|composed of salt|
|white|white|
|composed of grime and filth|composed of grime and filth|
|waste|waste|
|composed of snow|composed of snow|
|blizzard|blizzard|
|sleet|sleet|
|composed of water|composed of water|
|flood|flood|
|tear|tear|
| of tears| of tears|
|composed of steam|composed of steam|
|boiling|boiling|
|flame|flame|
|composed of flame|composed of flame|
|red|red|
|inferno|inferno|
|flare|flare|
|flash|flash|
|flaming|flaming|
|scorching|scorching|
|composed of amber|composed of amber|
|composed of coral|composed of coral|
|composed of green glass|composed of green glass|
|composed of clear glass|composed of clear glass|
|composed of crystal glass|composed of crystal glass|
|composed of coke|composed of coke|
|composed of charcoal|composed of charcoal|
|black|black|
|composed of solid salt|composed of solid salt|
|composed of ice|composed of ice|
|composed of |composed of |
| great| great|
| gigantic| gigantic|
| towering| towering|
|n enormous|n enormous|
| huge| huge|
| large| large|
| small| small|
| very small| very small|
|hairy |hairy |
|feathered |feathered |
|scaly |scaly |
|armored |armored |
|fleshy |fleshy |
|eyeless |eyeless |
|one-eyed |one-eyed |
|three-eyed |three-eyed |
|beakless |beakless |
|noseless |noseless |
|skinless |skinless |
|six-legged |six-legged |
|eight-legged |eight-legged |
| twisted into humanoid form| twisted into humanoid form|
| in humanoid form| in humanoid form|
| with external ribs| with external ribs|
| with lidless eyes| with lidless eyes|
|  It has |  It has |
|thin wings of stretched skin|thin wings of stretched skin|
|wings|wings|
|feathered wings|feathered wings|
|lacy wings|lacy wings|
|  It has two |  It has two |
|  It has three |  It has three |
|  It has a |  It has a |
|long, hanging|long, hanging|
|long, straight|long, straight|
|long, curly|long, curly|
|short|short|
|stubby|stubby|
|narrow|narrow|
| tails| tails|
| tail| tail|
|  It has a proboscis|  It has a proboscis|
|  It has a long, swinging trunk|  It has a long, swinging trunk|
|  It has a short trunk|  It has a short trunk|
|  It has a fat, bulging trunk|  It has a fat, bulging trunk|
|  It has a twisting, jointed trunk|  It has a twisting, jointed trunk|
|  It has a curling trunk|  It has a curling trunk|
|  It has a knobby trunk|  It has a knobby trunk|
|  It has a round shell|  It has a round shell|
|  It has a spiral shell|  It has a spiral shell|
|  It has a square shell|  It has a square shell|
|  It has a knobby shell|  It has a knobby shell|
|  It has an enormous shell|  It has an enormous shell|
|  It has a broad shell|  It has a broad shell|
|  It has a pair of long antennae|  It has a pair of long antennae|
|  It has a pair of fan-like antennae|  It has a pair of fan-like antennae|
|  It has a pair of spindly antennae|  It has a pair of spindly antennae|
|  It has a pair of squat antennae|  It has a pair of squat antennae|
|  It has a pair of branching antennae|  It has a pair of branching antennae|
|  It has a pair of knobby antennae|  It has a pair of knobby antennae|
|  It has four |  It has four |
|long, spiral|long, spiral|
|long, curving|long, curving|
|broad|broad|
| horns| horns|
| horn| horn|
|  It has large mandibles|  It has large mandibles|
|it mutters to itself as it moves aimlessly|it mutters to itself as it moves aimlessly|
|muttering|muttering|
|grumbling|grumbling|
|whispering|whispering|
|brooding|brooding|
|it groans from time to time|it groans from time to time|
|groaning|groaning|
|moaning|moaning|
|it howls into high winds|it howls into high winds|
|screaming|screaming|
|howling|howling|
|baying|baying|
|bellowing|bellowing|
|shrieking|shrieking|
|wailing|wailing|
|it shambles sluggishly|it shambles sluggishly|
|it stamps the ground and snorts|it stamps the ground and snorts|
|it has a bloated body|it has a bloated body|
|bloated|bloated|
|it lumbers along steadily from place to place|it lumbers along steadily from place to place|
|lumbering|lumbering|
|hulking|hulking|
|its joints are backward|its joints are backward|
|backward|backward|
|it moves with uneven jerking motions|it moves with uneven jerking motions|
|its limbs jut out at asymmetric angles|its limbs jut out at asymmetric angles|
|crooked|crooked|
|twisted|twisted|
|it lopes quickly along the ground|it lopes quickly along the ground|
|it strides in silence with purpose|it strides in silence with purpose|
|starved|starved|
|emaciated|emaciated|
|it hurls vicious insults constantly|it hurls vicious insults constantly|
|it bears a look of unbelievable peace|it bears a look of unbelievable peace|
|peaceful nature|peaceful nature|
|it emanates an aura of giving and kindness|it emanates an aura of giving and kindness|
|kind nature|kind nature|
|joy marks its every movement|joy marks its every movement|
|joyful nature|joyful nature|
|it moves its will in accordance with the truth of things|it moves its will in accordance with the truth of things|
|it is ravening|it is ravening|
|it is slavering|it is slavering|
|it belches and croaks|it belches and croaks|
|it undulates rhythmically|it undulates rhythmically|
|rhythmic undulations|rhythmic undulations|
|it squirms and fidgets|it squirms and fidgets|
|bloated appearance|bloated appearance|
|it has a gaunt appearance|it has a gaunt appearance|
|it appears to be emaciated|it appears to be emaciated|
|it chants ceaselessly|it chants ceaselessly|
|it murmurs horrible curses|it murmurs horrible curses|
|it spouts gibberish periodically|it spouts gibberish periodically|
|it knows and intones the names of all it encounters|it knows and intones the names of all it encounters|
|it repeatedly makes threats of torture and death|it repeatedly makes threats of torture and death|
|it has a regal bearing|it has a regal bearing|
|it has an austere look about it|it has an austere look about it|
|it moves deliberately|it moves deliberately|
|it moves about carelessly|it moves about carelessly|
« Last Edit: August 06, 2014, 10:23:50 pm by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Roses

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #82 on: August 06, 2014, 10:29:30 pm »

Ah right... but we should be able to do something like put abcdef in the creature description and do a string replace for |abcdef||

I forgot all about string replaces, opens up a lot of different possibilities for modders.

Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #83 on: August 06, 2014, 11:13:59 pm »

No, you cant. The string dump is in the exe, it patches the exe. It doesnt change the process after it started, so you can do anything about the raw texts it reads out. Insolor posted an alternate way to translate content that is displayed, but it wouldnt add linebreaks into the text.

The strings are all in the template.lng, which is included in the download. Its a lot of text... but nothing except that can be altered.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #84 on: August 11, 2014, 09:03:34 am »

An all-new string dump ready for us?? What a kind man.
Logged

Roses

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #85 on: August 15, 2014, 03:10:39 pm »

No, you cant. The string dump is in the exe, it patches the exe. It doesnt change the process after it started, so you can do anything about the raw texts it reads out. Insolor posted an alternate way to translate content that is displayed, but it wouldnt add linebreaks into the text.

The strings are all in the template.lng, which is included in the download. Its a lot of text... but nothing except that can be altered.

Bummer, could really use some line breaks in some of my creatures descriptions. Oh well. Still at a lot that can be done.
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #86 on: August 16, 2014, 05:48:18 am »

I didn't add string dump for 0.40.08 to downloads, because it exactly matches to the previous one. Anyway, you can see all the files on the source page
Logged

TioFuna

  • Escaped Lunatic
    • View Profile
    • DF Localization Tool
Re: Dwarf Fortress localization patch
« Reply #87 on: August 28, 2014, 08:42:52 pm »

Very Nice Topic!!! Thanks insolor by this localization patch.

I´ll try localize to Brazilian Portuguese (PT-BR), but I have a problem...

How I can insert characters like ' ç ã â ó ' ?

I see its possible, because appear to me these characters in game like 'ó'.

â = ├ó
ç = ├º

Code: [Select]
Dwarf Fortress Brasil
|Continue Playing|Continuar Jogando|
|Start Playing|Começar a Jogar|
|Create New World!|Criar Novo Mundo!|
|Design New World with Advanced Parameters|Projetar Novo Mundo com Parâmetros Avançados|
|Object Testing Arena|Arena para Testar Objetos|
|About DF|Sobre DF|
|Quit|Sair-|

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #88 on: August 28, 2014, 08:49:46 pm »

Thats the ttf fonts fault. Try pressing F12 (you probably get very strange icons, but is worth a try). Otherwise replace the font.ttf in data/art with any true-type font that is freely available online that supports portuguese characters.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Pidgeot

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #89 on: August 29, 2014, 12:10:10 pm »

â = ├ó
ç = ├º

The font likely needs to be swapped, but this particular set of characters also suggests you have saved your file as UTF-8, but the game and/or the utility doesn't handle that encoding correctly (I don't know which one.). It seems you need to save the file in the appropriate single-byte code page (which your editor will likely call something like Windows-1252, Latin1, or possibly ANSI).
« Last Edit: August 29, 2014, 12:12:25 pm by Pidgeot »
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 17