aliens

Author Topic: Allow localization (translation) of mod description strings in metadata file(s)  (Read 2051 times)

Offline VSx86

  • Sergeant
  • **
  • Posts: 29
    • View Profile
Is it possible to have localized metadata fields for separate languages?

Example:

Main technical info for mod in metadata.yml
Quote
id: LongTime
isMaster: true
master: xcom1
loadResources:
  - LONGTIME-DATA
# reservedSpace: 0


metadata-en.yml contains localized strings for English
Quote
name: "Long Time After Us..."
version: "v0.4.2 testing / OpenXCOMv2 nightly 2020-06-01 12:34"
description: "Same universe, same planet. The echoes of human civilization is already faded away in the forgotten past. After entering the Earth atmosphere some research ship crashes because of heavy damage received from unknown beam of artificial origin. Fortunately, the entire crew is survived but spaceship is irrepairable at all. To survive, now they have to look for common language with this world and its inhabitants... who doesn't even suspect of the fateful countdown already begun... So full speed ahead to the 17th year of XXXVI century if you dare."
author: "not known yet"


for Russian language this is a metadata-ru.yml
Quote
name: "Задолго после нас... (Long Time After Us...)"
version: "v0.4.2 тестовая / OpenXCOMv2, ночная сборка от 2020-06-01 12:34"
description: "Та же вселенная, та же планета. Отзвуки человеческой цивилизации уже угасли в позабытом прошлом. После входа в атмосферу Земли какой-то исследовательский корабль терпит крушение из-за сильнейших повреждений, полученных от неизвестного луча искусственного происхождения. К счастью, вся команда выжила, но звездолёт неремонтопригоден совсем. Теперь, чтобы выжить, им придётся искать общий язык с этим миром и его обитателями... которые даже не подозревают, что судьбоносный обратный отсчёт уже начался... Так что полный вперёд, в 17-ый год XXXVI века, если посмеете."
author: "ещё неизвестен"

... and similar translated files for other languages.

 ;)

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
This is on my TODO.