Skip to content

Translations

Pablo Peña edited this page Aug 10, 2021 · 1 revision

Starting V.3 I've changed a lot of the files to make life easier for translators, at this moment there are only one package with translations ready and is meant for users from South América (español latino), can also suit for Neutral Spanish (spain).

If you want to translate LFFVP to other languages such french, you can do it, just start to translate and when you have some files ready to share ask me permissions to contribute to this repo.

I will make some guides on how to use GitHub for contributors when someone ask me for the permissions.

For a start you should Translate any of the files on /Text and /UI folders, and don't change anything on /wip folder (that files are work in progress for next versions, any change yo do on those files is most likely will be deleted when a new version is released)

Requeriments For Translate:

In fact you only need to know your language to translate, but these knowledges and apps will be helpfull if you have it:

  • SQLite knowledge (this is a pure sql mod, you don't need to know sql to translate but is a plus, if you want to learn something you can check the manual on https://sqlite.org/ )
  • A good Code editor (This mod is made from scratch, by directly editing the files, I don't use ModBuddy or any of these Civs apps, so I'm not sure if you can use it these apps to translate, and I don't recommend it anyway because these kind of software ussually inject uneeded code and is a mess to read if you need change somethiing later, I recommend to use VSCode for it's searching tools and it's integration with GitHub, with some configuration you can sync this repo on VSCode, translate and update the repo with a few clicks. There are more software to translate, almost any other code editor will be just fine some of them are: Notepad++, SublimeText, Brackets, Atom. I use Codium that is a Free Open Source Clone from VSCode).
  • A SQLite Browser, it's optional, but if you have it you can check the DB for the changes are you making in no time I use "SqliteBrowser" for linux, but there are plenty options for windows and mac, you can use even a firefox addon for this.

Workflow

It's very easy to translate even if you don't know anything about sqlite, just edit directly the files with a code editor, you will see strings like this:

UPDATE Language_es_ES SET Text = '+1 [ICON_PEACE] Faith from Monuments and +1 [ICON_CULTURE] in [ICON_CAPITAL] Capital. +1 [ICON_FOOD] Food, [ICON_PRODUCTION] Production, [ICON_GOLD] Gold, and [ICON_RESEARCH] Science in [ICON_CAPITAL] Capital for every two Pantheons ever founded (caps at 8 Pantheons total)' WHERE Tag = 'TXT_KEY_BELIEF_TEARS_OF_GODS' AND EXISTS (SELECT * FROM COMMUNITY WHERE Type='COMMUNITY_CORE_BALANCE_RELIGION' AND Value= 1 );

You have to translate everything inside SET Text = 'Your translation here'

INSERT INTO Language_es_ES (Tag, Text) SELECT 'TXT_KEY_BUILDING_GROVE', 'Council' WHERE EXISTS (SELECT * FROM COMMUNITY WHERE Type='COMMUNITY_CORE_BALANCE_BUILDINGS' AND Value= 1 );

This one should be translated in this way: SELECT 'TXT_KEY_BUILDING_GROVE', 'Translation here'

You can see differences in some queries, if you are in doubt check sqlite.org or just ask me. I will be make some more accurate guide on the future (when some contributor need it).

Clone this wiki locally