Adding localization

Hoochie Hoochie · 2 months ago

Hi!
Thanks for the mod!
Please add localization to the mod 😅

iserik · 2 months ago

Hi!
Thank you for the suggestion. The next mod version will have localisation

👍 1
iserik · 1 month ago

Hi! Version 0.3.0 now has localization! The current Russian translation was made by an AI. Since I saw your Russian translations on the forums, I would be very grateful if you could check my ru.json file and fix any errors. Thank you.

Hoochie Hoochie · 1 month ago

Hi, Boss!
Sorry for the late reply, and thanks for the update—especially the new style of counters; it looks great now!

Regarding the translation, here are a few small tweaks :)

[
    [ "FlowMeter__LooseMeterName", "Счётчик материалов" ],
    [ "FlowMeter__LooseMeterDesc", "Отслеживает пропускную способность, и измеряет точный объём сыпучих материалов." ],
    ["FlowMeter__BeltMeterName", "Счётчик изделий" ],
    [ "FlowMeter__BeltMeterDesc", "Отслеживает пропускную способность, и измеряет точное количество штучных изделий." ],
    [ "FlowMeter__LiquidMeterName", "Счётчик жидкостей" ],
    [ "FlowMeter__LiquidMeterDesc", "Отслеживает пропускную способность, и измеряет точный расход жидкостей. Труба приподнята на 1 уровень выше земли, чтобы под ней могли проходить конвейерные ленты или желоба." ],
    [ "FlowMeter__RegulateFlow", "Включить ограничение" ],
    [ "FlowMeter__TargetFlowRate", "Лимит счётчика:" ],
    [ "FlowMeter__FlowRegulatorTitle", "Ограничитель пропускной способности" ],
    [ "FlowMeter__StatisticsTitle", "Общая статистика подсчёта" ],
    [ "FlowMeter__ResetTooltip", "Сбросить историю показаний" ],
    [ "FlowMeter__NoProduct", "<align=\"center\">Продукции для подсчёта не обнаружено.</align>" ],
    [ "FlowMeter__Overall", "Итого" ],
    [ "FlowMeter__PerSixty", " / 60 сек." ],
    [ "FlowMeter__StatsTooltip", "<align=\"center\">{0}</align><br>В среднем за месяц / В среднем за год / Всего" ],
    [ "FlowMeter__ChartXAxisNow", "Сейчас" ],
    [ "FlowMeter__ChartTimeYears", "Год(лет)" ],
    [ "FlowMeter__ChartTimeMonths", "Месяц(ев)" ],
    [ "FlowMeter__ChartTimeCurrent", "Текущий" ],
    [ "FlowMeter__ChartTimePast", "-{0} {1}" ],
    [ "FlowMeter__ChartHoverFormat", "{0}  |  {1} / мин." ],
    [ "FlowMeter__WidgetMonthlyTitle", "{0} СРЕДНЕМЕСЯЧНАЯ ПРОПУСКНАЯ СПОСОБНОСТЬ" ],
    [ "FlowMeter__WidgetAnnualTitle", "{0} СРЕДНЕГОДОВАЯ ПРОПУСКНАЯ СПОСОБНОСТЬ" ],
    [ "FlowrateAlert__BtnTitle", "Оповещения счётчиков" ],
    [ "FlowrateAlert_BelowPrefix", "Минимальный порог" ],
    [ "FlowrateAlert_BelowTooltip", "<align=\"center\">Создать оповещение, если среднемесячный подсчёт <b>падает</b> ниже выбранного процента от установленного порога.</align>" ],
    [ "FlowrateAlert_AbovePrefix", "Максимальный порог" ],
    [ "FlowrateAlert_AboveTooltip", "<align=\"center\">Создать оповещение, если среднемесячный подсчёт <b>превышает</b> выбранный процент от установленного порога.</align>" ],
    [ "FlowrateAlert__OpenTooltip", "Настроить оповещения подсчёта" ],
    [ "FlowrateAlert_NoFlow", "Нет" ],
    [ "FlowrateAlert__BelowFormat", "< {0}" ],
    [ "FlowrateAlert__AboveFormat", "> {0}" ],
    [ "FlowMeter__NotificationLowFlowName", "Подсчёт {0} на «{entity}» ниже предела" ],
    [ "FlowMeter__NotificationLowFlowDesc", "Скорость подсчёта этой продукции упала ниже заданного минимального порога." ],
    [ "FlowMeter__NotificationHighFlowName", "Подсчёт {0} на «{entity}» выше предела" ],
    [ "FlowMeter__NotificationHighFlowDesc", "Скорость подсчёта этой продукции превысила заданный максимальный порог." ],
    [ "FlowMeter__NotificationFallbackProduct", "Продукт" ]
]

And a small request: if possible, please slightly widen the lines of the counter block itself. If I add "sec." to get "xxx/ 60 sec.", the numbers wrap to the next line—the column width is likely constrained.

image.png

Edited 1 month ago
iserik · 1 month ago

Hoochie wrote:

Hi, Boss!
Sorry for the late reply, and thanks for the update—especially the new style of counters; it looks great now!

Regarding the translation, here are a few small tweaks :)


And a small request: if possible, please slightly widen the lines of the counter block itself. If I add "sec." to get "xxx/ 60 sec.", the numbers wrap to the next line—the column width is likely constrained.

image.png

Hi Hoochie,

Thanks a lot for the feedback and for fixing up the Russian translation! I really appreciate you taking the time to improve it.

Good catch with the counters wrapping onto a second line. The problem was caused by fixed-width boxes not having enough room for the longer / 60 сек. text.

I've updated the inspector so these boxes can expand when needed and the text stays on one line. This should give all languages enough room for their longer text.

The fix and your translation updates are included in the v0.3.3 build.

Thanks again for helping make the mod better!

🤝 1
100 Showing 1–5 of 5