-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localization fixes + ru #57
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// ru.cfg v1.0.0.0 | ||
// Kaboom! (BOOM) | ||
// created: 13 Oct 2021 by flart | ||
|
||
Localization | ||
{ | ||
ru | ||
{ | ||
// ********** Type: Kaboom.ModuleKaboom, KSP Actions | ||
#BOOM-modname = Kaboom! | ||
#BOOM-modnameV = Kaboom! v<<1>> | ||
|
||
// ********** Type: Kaboom.ModuleKaboom, KSP Fields, Events | ||
#BOOM-delay = Задержка взрыва // Kaboom delay | ||
#BOOM-delay-Units = \u0020сек. | ||
#BOOM-KaboomEvent = Бабах! // Kaboom! | ||
#BOOM-Cancel = Отмена взрыва // Cancel Kaboom! | ||
#BOOM-SafetyCover = Меню взрыва // Kaboom Safety Cover | ||
#BOOM-SafetyCoverColor = <color=red>Меню взрыва</color> | ||
#BOOM-KaboomItMsg = Взрыв установлен на <<1>> сек. | ||
#BOOM-CancelKoboomIt = Взрыв отменён. | ||
#BOOM-ThankYou = Thank you for using Kaboom! <<1>> for all your explosive needs!\n <b><i>Have a booming day!</b></i> | ||
|
||
// ********** Type: Kaboom.Welding | ||
#BOOM-MergePartsMsg = You cannot weld the root part! | ||
#BOOM-WeldingData-A = Docked vessels detected, unable to explode the docking port.\nTrying to explode both docking ports | ||
#BOOM-WeldingData-B = This part need to have 2 parts on attachment nodes | ||
|
||
// ********** Type: Kaboom.ModuleKaboom, KSP Fields | ||
#BOOM-GluedEvent = Суперклей | ||
|
||
// ********** Global strings | ||
#BOOM-settings-titl = Kaboom! Настройки | ||
#BOOM-settings-sect = Kaboom! (BOOM) | ||
#BOOM-settings-disp = Kaboom! | ||
|
||
#BOOM-settings-softExplode = Мягкий взрыв | ||
#BOOM-settings-softExplode-tt = Меньше шума и огня при взрыве. | ||
|
||
#BOOM-settings-coloredPaw = Меню взрыва красное | ||
#BOOM-settings-coloredPaw-tt = Меню безопасности взыва в PAW красное.\nОбновляется после смены сцены. | ||
|
||
#BOOM-settings-xDebug = Отладка | ||
#BOOM-settings-xDebug-tt = Включить отладку (если предусмотрено) (выкл. по-умолчанию) | ||
|
||
#BOOM-settings-xLogging = Расширенное логирование | ||
#BOOM-settings-xLogging-tt = Включить дополнительное логирование (если предусмотрено) (выкл. по-умолчанию)\nНегативно влияет на производительность. | ||
} | ||
} | ||
|
||
// GPLv2 BY | ||
// zer0Kerbal |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ namespace Kaboom | |
public class ModuleKaboom : PartModule | ||
{ | ||
[KSPField(isPersistant = true, | ||
guiName = "#BOOM-delay", groupName = "KaboOm", groupStartCollapsed = true, guiUnits = " Seconds", | ||
guiName = "#BOOM-delay", groupName = "KaboOm", groupStartCollapsed = true, guiUnits = "#BOOM-delay-Units", | ||
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 10f, guiActiveEditor = true), | ||
UI_FloatRange(minValue = 0f, maxValue = 30f, stepIncrement = 1f)] | ||
public float delay = 0; | ||
|
@@ -58,11 +58,11 @@ public override void OnStart(StartState state) | |
base.OnStart(state); | ||
|
||
if (HighLogic.CurrentGame.Parameters.CustomParams<KaboomSettings>().coloredPAW) | ||
//Fields["delay"].group.displayName = Localizer.Format("<color=red>#BOOM-SafetyCover</color>"); | ||
Fields["delay"].group.displayName = "<color=red>Kaboom Safety Cover</color>"; | ||
Fields["delay"].group.displayName = Localizer.Format("#BOOM-SafetyCoverColor"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would prefer the color to remain in the code; keeps things simple for those who translate IMHO.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I usually put color tag to the loc file, so users could change colors if needed |
||
//Fields["delay"].group.displayName = "<color=red>Kaboom Safety Cover</color>"; | ||
else | ||
//Fields["delay"].group.displayName = Localizer.Format("#BOOM-SafetyCover"); | ||
Fields["delay"].group.displayName = "Kaboom Safety Cover"; | ||
Fields["delay"].group.displayName = Localizer.Format("#BOOM-SafetyCover"); | ||
//Fields["delay"].group.displayName = "Kaboom Safety Cover"; | ||
|
||
GUITextUpdate(); | ||
} | ||
|
@@ -111,7 +111,7 @@ private void CancelKaboomIt() | |
{ | ||
Events["CancelKaboomEvent"].active = false; | ||
Events["KaboomEvent"].active = true; | ||
ScreenMessages.PostScreenMessage(Localizer.Format("#BOOM-CancelKoboomIt"), 5.0f, ScreenMessageStyle.UPPER_CENTER); | ||
ScreenMessages.PostScreenMessage(Localizer.Format("#BOOM-CancelKoboomIt")); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#BOOM-modname
probably can be used for multiple instances in order to simplify and streamline.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#BOOM-modname is there, I removed #BOOM-GroupName because GroupName is internal and need to be English