Skip to content

Commit

Permalink
Added imperial unit foot #128
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Jan 6, 2022
1 parent d5cdedb commit 439c14d
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 8 deletions.
5 changes: 4 additions & 1 deletion scripts/ai/parameters/AIParameterSettingList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ function AIParameterSettingList.getSpeedText(value)
end

function AIParameterSettingList.getDistanceText(value)
return string.format("%.1f %s",g_i18n:getDistance(value),g_i18n:getText("CP_unit_meter"))
if g_i18n.useMiles then
return string.format("%.2f %s",value*0.3048,g_i18n:getText("CP_unit_foot"))
end
return string.format("%.1f %s",value,g_i18n:getText("CP_unit_meter"))
end

function AIParameterSettingList.getAreaText(value)
Expand Down
1 change: 1 addition & 0 deletions translations/translation_br.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="ativado" />
<text name="CP_deactivated" text="desativado" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Para ajuda, reportar bug ou notas de patch, favor visitar: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_cs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_cz.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="Aktivní" />
<text name="CP_deactivated" text="Neaktivní" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Pro pomoc, chyby nebo poznámky o opravách se prosím navštivte: https://github.com/Courseplay/Courseplay_FS22. Český překlad: SniperKittenCZ" />
<text name="CP_error_no_course" text="Před zahájením práce vygenerujte kurz." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="aktiviert" />
<text name="CP_deactivated" text="deaktiviert" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Für Hilfe, Fehler oder Patch Notes, bitte hier vorbei schauen: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_es.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="activado" />
<text name="CP_deactivated" text="desactivado" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s):Para obtener ayuda, informar de errores o notas de parches, visite:https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_fr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="activé" />
<text name="CP_deactivated" text="désactivé" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Pour toute demande d'assistance, signalement de bug ou suivi des mises à jour, rendez vous sur le site officiel : https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_hu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_it.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<text name="CP_activated" text="Attivato" />
<text name="CP_deactivated" text="Disattivato" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay (%s): Per aiuto, report bug o note sulla patch, visita: https://github.com/Courseplay/Courseplay_FS22 " />
<text name="CP_error_no_course" text="Genera il percorso prima di iniziare il lavoro sul campo!" />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_jp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
<text name="CP_error_no_course" text="Generate a course before starting the job." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_nl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="geactiveerd" />
<text name="CP_deactivated" text="gedeactiveerd" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Ga voor hulp, bugrapporten of patch-opmerkingen naar: https://github.com/Courseplay/Courseplay_FS22." />
<text name="CP_error_no_course" text="Generate a course before starting the job." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_pl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="Aktywne" />
<text name="CP_deactivated" text="Nieaktywne" />
<text name="CP_unit_meter" text="m" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): Aby uzyskać pomoc, zgłosić błąd lub przeczytać informacje o aktualizacji, odwiedź: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_pt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
<text name="CP_error_no_course" text="Generate a course before starting the job." />
Expand Down
1 change: 1 addition & 0 deletions translations/translation_ru.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<text name="CP_activated" text="активно" />
<text name="CP_deactivated" text="неактивно" />
<text name="CP_unit_meter" text="м" />
<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): За помощью, для отправки отчета об ошибках или исправлениях, пожалуйста, посетите: https://github.com/Courseplay/Courseplay_FS22." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_sl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="activated" />
<text name="CP_deactivated" text="deactivated" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): For help, bug reports or patch notes, please visit: https://github.com/Courseplay/Courseplay_FS22." />
<text name="CP_error_no_course" text="Generate a course before starting the job." />
Expand Down
3 changes: 2 additions & 1 deletion translations/translation_sv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<text name="CP_activated" text="Aktiverad" />
<text name="CP_deactivated" text="Avaktiverad" />
<text name="CP_unit_meter" text="m" />

<text name="CP_unit_foot" text="ft" />

<!-- User info text -->
<text name="CP_infoText" text="Courseplay(%s): För hjälp, bug rapport och uppdaterings info, vänligen besök: https://github.com/Courseplay/Courseplay_FS22." />
<text name="CP_error_no_course" text="Generera en kurs innan du startat ett arbete." />
Expand Down

0 comments on commit 439c14d

Please sign in to comment.