Author Topic: How to use translations (in nightlies / git)?  (Read 4350 times)

Offline Wild Penguin

  • Sergeant
  • **
  • Posts: 14
    • View Profile
How to use translations (in nightlies / git)?
« 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:
  • ./common/Language
  • ./standard/xcom1/Language
  • ./standard/xcom2/Language
Out of which all contain only en-GB.yml and en-US.yml;

but the latest.zip contains a [countrycode].yml files in:
  • . (the root)
  • openxcom.openxcom
  • openxcom.x-com-1
  • openxcom.x-com-2
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.
« Last Edit: February 27, 2024, 09:44:28 pm by Wild Penguin »

Offline Wild Penguin

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: How to use translations (in nightlies / git)?
« Reply #1 on: February 27, 2024, 07:42:25 pm »
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  :).

Offline SoaT

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Re: How to use translations (in nightlies / git)?
« Reply #2 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

Offline Leosky

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: How to use translations (in nightlies / git)?
« Reply #3 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: How to use translations (in nightlies / git)?
« Reply #4 on: September 16, 2024, 07:50:29 pm »
In the meantime, the nightlies contain translations again, it was just a temporary problem.