From 2608b11eadfd89347d3728cfcd358bf825327db6 Mon Sep 17 00:00:00 2001 From: Wyrrrd Date: Wed, 6 Nov 2024 13:05:51 +0100 Subject: [PATCH] Added russian locale, small fixes --- README.md | 4 +++- changelog.txt | 6 ++++++ control.lua | 2 +- info.json | 2 +- locale/de/config.cfg | 1 - locale/en/config.cfg | 8 +++++++- locale/fr/config.cfg | 1 - locale/ru/config.cfg | 26 ++++++++++++++++++++++++++ locale/uk/config.cfg | 1 - 9 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 locale/ru/config.cfg diff --git a/README.md b/README.md index 6560aec..f6199eb 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,7 @@ If you want to contribute by translating this mod, you can view the existing tra ### Credit Thanks to [unhott](https://mods.factorio.com/user/unhott) for the [original mod](https://mods.factorio.com/mod/GunTurretAlerts). -Thanks to [snouz](https://mods.factorio.com/user/snouz) for the new icons and thumbnail. +Thanks to [snouz](https://mods.factorio.com/user/snouz) for the new icons and thumbnail. Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french locale. +Thanks to [eugenikus8](https://github.com/eugenikus8) for the russian locale. +Thanks to [Met_en_Bouldry](https://crowdin.com/profile/Met_en_Bouldry) for the ukranian locale. diff --git a/changelog.txt b/changelog.txt index 27f1bee..6c46a59 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.1 +Date: 2024-11-06 + Locale: + - Added ukranian locale (thanks to Met_en_Bouldry) + - Added russian locale (thanks to eugenikus8) +--------------------------------------------------------------------------------------------------- Version: 2.0.0 Date: 2024-10-27 Changes: diff --git a/control.lua b/control.lua index dd3e345..476fd66 100644 --- a/control.lua +++ b/control.lua @@ -120,7 +120,7 @@ local function remove_force_from_list(event) elseif event.source and event.destination then param.force = event.destination add_force_to_list(param) - force = source + force = event.source end if force and not force.connected_players then diff --git a/info.json b/info.json index f7bd5b1..9a525c0 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "Gun_Turret_Alerts", - "version": "2.0.0", + "version": "2.0.1", "title": "Ammo Alerts", "author": "Wyrrrd", "factorio_version": "2.0", diff --git a/locale/de/config.cfg b/locale/de/config.cfg index c42778a..899da45 100644 --- a/locale/de/config.cfg +++ b/locale/de/config.cfg @@ -24,4 +24,3 @@ message-low=__1__ hat wenig Munition [virtual-signal-name] ammo-icon-red=Hat keine Munition ammo-icon-yellow=Hat wenig Munition - diff --git a/locale/en/config.cfg b/locale/en/config.cfg index 503e3f2..ecec6ff 100644 --- a/locale/en/config.cfg +++ b/locale/en/config.cfg @@ -23,4 +23,10 @@ message-low=__1__ low ammo [virtual-signal-name] ammo-icon-red=Out of ammo signal -ammo-icon-yellow=Low ammo signal \ No newline at end of file +ammo-icon-yellow=Low ammo signal + +[mod-name] +Gun_Turret_Alerts=Ammo Alerts + +[mod-description] +Gun_Turret_Alerts=Adds map alerts for players when a gun turret, vehicle or artillery is either out of ammo or has low ammo. \ No newline at end of file diff --git a/locale/fr/config.cfg b/locale/fr/config.cfg index 7b9dba9..ad41447 100644 --- a/locale/fr/config.cfg +++ b/locale/fr/config.cfg @@ -24,4 +24,3 @@ message-low=__1__ peu de munitions [virtual-signal-name] ammo-icon-red=Signal d'absence de munition ammo-icon-yellow=Signal de manque de munitions - diff --git a/locale/ru/config.cfg b/locale/ru/config.cfg new file mode 100644 index 0000000..d079992 --- /dev/null +++ b/locale/ru/config.cfg @@ -0,0 +1,26 @@ +[mod-setting-name] +gun-turret-alerts-enabled=Включить оповещения о боезапасе турелей +gun-turret-alerts-car-enabled=Включить оповещения о боезапасе транспортных средств +gun-turret-alerts-artillery-enabled=Включить оповещения о боезапасе артиллерии +gun-turret-alerts-mode=Режим с несколькими слотами +gun-turret-alerts-threshold=Порог низкого уровня боеприпасов + +[mod-setting-description] +gun-turret-alerts-enabled=Показать оповещения о боеприпасах в турелях для вашего игрока. +gun-turret-alerts-car-enabled=Показать оповещения о боеприпасах в транспортных средствах для вашего игрока. +gun-turret-alerts-artillery-enabled=Показать оповещения о боеприпасах в артиллерии для вашего игрока. +gun-turret-alerts-mode=Управляет тем, как учитываются слоты для боеприпасов: суммируются ли все слоты, подсчитывается ли каждый слот отдельно или учитывается только выбранный слот.\n(Применяется только для случаев с несколькими слотами для боеприпасов, например, в транспортных средствах.) +gun-turret-alerts-threshold=Если боезапас меньше этого количества, вам будет показано предупреждение. + +[string-mod-setting] +gun-turret-alerts-mode-added=В сумме +gun-turret-alerts-mode-individually=По отдельности +gun-turret-alerts-mode-selected=Выбранный + +[gun-turret-alerts] +message-empty=__1__ - нет боеприпасов +message-low=__1__ - мало боеприпасов + +[virtual-signal-name] +ammo-icon-red=Сигнал отсутствия боеприпасов +ammo-icon-yellow=Сигнал о низком боезапасе diff --git a/locale/uk/config.cfg b/locale/uk/config.cfg index 5c59411..82e23af 100644 --- a/locale/uk/config.cfg +++ b/locale/uk/config.cfg @@ -24,4 +24,3 @@ message-low=__1__ мало боєприпасів [virtual-signal-name] ammo-icon-red=Сигнал про закінчення набоїв ammo-icon-yellow=Сигнал про низький рівень набоїв -