OpenXcom Forum

Contributions => Translations => Topic started by: Wild Penguin on February 27, 2024, 07:32:33 pm

Title: How to use translations (in nightlies / git)?
Post by: Wild Penguin on February 27, 2024, 07:32:33 pm
Hi!

OpenXCOM does not come with any translations (at least the Linux version doesn't). I'm using the GIT version.

It seems the instructions in https://openxcom.org/downloads-extras/ and https://www.ufopaedia.org/index.php?title=Translations_(OpenXcom) are out of date (what on earth does for_use_openxcom_x-com-1 -part even mean, how does one get this file, why is it mentioned twice???).

First, it seems the game does not look for translations at all in the user home directory, or if it does, I don't know which folder I should use. This would be kind of mandatory when testing translations or pulling the most recent translation zip. I could not get the release nor the git version to find translations from there.

... which brings us to the folder structure and discrepancies in the latest.zip and the installation.

In /usr/share/openxcom I have:
Out of which all contain only en-GB.yml and en-US.yml;

but the latest.zip contains a [countrycode].yml files in:
I.e. four files per translation. Now where is a user supposed to put these files? Is one of them for the release and the rest three for the nightlies / GIT?

I can get it to load translations but only partially, by extraction the zip in common/Language -folder (there is no data/Language -folder), but only menus and options are translated, while all other parts of the game are not. The translations do seem to work correctly in the release, however.
Title: Re: How to use translations (in nightlies / git)?
Post by: Wild Penguin on February 27, 2024, 07:42:25 pm
Ok, by trial-and-error I found out that (on GIT version) from latest.zip:

; presumably the root .yml only works with the latest release  :).
Title: Re: How to use translations (in nightlies / git)?
Post by: SoaT on June 12, 2024, 02:31:41 am
Ok, by trial-and-error I found out that (on GIT version) from latest.zip:

  • openxcom.openxcom/*yml goes into [DATADIR]/common/language and
  • openxcom.x-com-[12]/*yml does into [DATADIR]/standard/xcom[12]
; presumably the root .yml only works with the latest release  :).
Thanks a lot. You helped me a lot
Title: Re: How to use translations (in nightlies / git)?
Post by: Leosky on September 16, 2024, 07:22:26 pm
An alternative is to use transifex project (i can't post link so you have to search a bit).
you will find every translation at they latest state.
Title: Re: How to use translations (in nightlies / git)?
Post by: Meridian on September 16, 2024, 07:50:29 pm
In the meantime, the nightlies contain translations again, it was just a temporary problem.