-
Notifications
You must be signed in to change notification settings - Fork 82
Localization support & translation #372
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
base: master
Are you sure you want to change the base?
Conversation
This thing can't be changed randomly
@title = Procedural Real Fuels Tank | ||
@description ^= :^:Baseline tank type. Accepts most fuels. Can be switched between unpressurised, balloon, cryogenic, ballooon cryo, and service module types. : | ||
@title = #PP_Parts_TankRealFuels_title //Procedural Real Fuels Tank | ||
@description ^= #PP_Parts_TankRealFuels_description //: Baseline tank type. Accepts most fuels. Can be switched between unpressurised, balloon, cryogenic, ballooon cryo, and service module types. |
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.
This changes the meaning of the MM patch
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.
I just saw it now,I'll change it
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.
This changes the meaning of the MM patch
There is already add suffixes (:^: and :) in Localization files.
title = #PP_Parts_ProceduralStackDecoupler_title //Procedural Stack Decoupler | ||
manufacturer = Kerbchem Industries | ||
description = Made from viscoelastic nanopolymers (which were discovered by accident... growing in the back of the office mini-fridge) this decoupler can be stretched to accommodate a range of sizes. | ||
description = #PP_Parts_ProceduralStackDecoupler_description //Made from viscoelastic nanopolymers (which were discovered by accident... growing in the back of the office mini-fridge) this decoupler can be stretched to accommodate a range of sizes. |
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.
Extra space here
Source/ProceduralPart.cs
Outdated
return true; | ||
} | ||
} | ||
} |
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.
You somehow managed to mark every line in this file as changed (different line endings?). This is no good.
</ItemGroup> | ||
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="$(ProjectDir)..\GameData\ProceduralParts\Plugins\" /> | ||
</Target> | ||
</Project> |
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.
Same as above. The entire file is changed.
Source/ProceduralSRB.cs
Outdated
float thrust1 = thrust * isp1 / isp0; | ||
srbISP = $"{isp0:F0}s Vac / {isp1:F0}s ASL"; | ||
thrustStats = $"{thrust0.ToStringSI(unit: "N", exponent: 3)} Vac / {thrust1.ToStringSI(unit: "N", exponent: 3)} ASL"; | ||
srbISP = KSP.Localization.Localizer.Format("#PP_plugin_SRB_ISPInfo", Math.Round(isp0,1), Math.Round(isp1,1)); |
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.
Looks like this used to show 0 decimal digits but now you're rounding to show 1.
Source/TankContentSwitcher.cs
Outdated
using System.Linq; | ||
using UnityEngine; | ||
|
||
|
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.
This shouldn't be here.
Do you have any other opinions? |
Hi!
I Modified some of the source code, Parts configuration of this mod to it can support other language,
And Added Chinese translation.
Looking forward to your review.