Localization work

This commit is contained in:
Falkvinge
2016-11-28 17:39:06 +01:00
parent a28f0dfe3c
commit 3aa15857b0
5 changed files with 172 additions and 19 deletions
+65 -2
View File
@@ -1474,7 +1474,7 @@ namespace Resources {
}
/// <summary>
/// Looks up a localized string similar to &lt;strong&gt;BITID SUCCESSFULLY ENABLED&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;When logging on to this system from now on, you need to use the BitId application you just used to scan the code..
/// Looks up a localized string similar to &lt;strong&gt;BITID TWO-FACTOR AUTHENTICATION SUCCESSFULLY ENABLED&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;When logging on to this system from now on, you need to use the BitId application you just used to scan the code..
/// </summary>
internal static string Master_BitIdRegistered {
get {
@@ -1491,6 +1491,15 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Scan this code to enable BitID.
/// </summary>
internal static string Master_BitIdRegister_Header {
get {
return ResourceManager.GetString("Master_BitIdRegister_Header", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;h3&gt;What is this?&lt;/h3&gt;
/// &lt;p&gt;BitID is a way to log on securely with less hassle than entering a password. Its simplicitly cannot be explained, only experienced, and it is a two-factor authentication since it uses your phone.&lt;/p&gt;
@@ -1506,7 +1515,7 @@ namespace Resources {
}
/// <summary>
/// Looks up a localized string similar to Two-factor authentication (disabling quarantines login).
/// Looks up a localized string similar to BitID (bitcoin signature) two-factor authentication.
/// </summary>
internal static string Master_EditPerson2FAEnable {
get {
@@ -1514,6 +1523,24 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to BitID Two-factor authentication (disabling quarantines login).
/// </summary>
internal static string Master_EditPerson2FAEnableProvisioning {
get {
return ResourceManager.GetString("Master_EditPerson2FAEnableProvisioning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to BitID two-factor auth.
/// </summary>
internal static string Master_EditPerson2FAEnableShort {
get {
return ResourceManager.GetString("Master_EditPerson2FAEnableShort", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;strong&gt;CANNOT PROVISION 2FA&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;You cannot turn on two-factor authentication for someone else. They must do it by themselves, thereby being alone in having their secret keys..
/// </summary>
@@ -1568,6 +1595,15 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Type current password to enable changes.
/// </summary>
internal static string Master_EditPersonCurrentPassword {
get {
return ResourceManager.GetString("Master_EditPersonCurrentPassword", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Account.
/// </summary>
@@ -1577,6 +1613,15 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Your Security.
/// </summary>
internal static string Master_EditPersonHeaderSecurity {
get {
return ResourceManager.GetString("Master_EditPersonHeaderSecurity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Security Provisioning.
/// </summary>
@@ -1586,6 +1631,24 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Set new password.
/// </summary>
internal static string Master_EditPersonNewPassword1 {
get {
return ResourceManager.GetString("Master_EditPersonNewPassword1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Retype new password.
/// </summary>
internal static string Master_EditPersonNewPassword2 {
get {
return ResourceManager.GetString("Master_EditPersonNewPassword2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unable to set new password: The old password is incorrect..
/// </summary>
+25 -4
View File
@@ -739,8 +739,8 @@
<data name="Global_TwitterId" xml:space="preserve">
<value>Twitter ID</value>
</data>
<data name="Master_EditPerson2FAEnable" xml:space="preserve">
<value>Two-factor authentication (disabling quarantines login)</value>
<data name="Master_EditPerson2FAEnableProvisioning" xml:space="preserve">
<value>BitID Two-factor authentication (disabling quarantines login)</value>
<comment>This means that a disabling of two-factor authentication will notify the user and lock them out from logging back on for a while, typically 48 hours or seven days.</comment>
</data>
<data name="Master_EditPersonHeaderAccount" xml:space="preserve">
@@ -817,11 +817,14 @@
<value>Two weeks</value>
</data>
<data name="Master_BitIdRegistered" xml:space="preserve">
<value>&lt;strong&gt;BITID SUCCESSFULLY ENABLED&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;When logging on to this system from now on, you need to use the BitId application you just used to scan the code.</value>
<value>&lt;strong&gt;BITID TWO-FACTOR AUTHENTICATION SUCCESSFULLY ENABLED&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;When logging on to this system from now on, you need to use the BitId application you just used to scan the code.</value>
</data>
<data name="Master_BitIdRegister_Fail" xml:space="preserve">
<value>BitID two-factor authentication has not been enabled.</value>
</data>
<data name="Master_BitIdRegister_Header" xml:space="preserve">
<value>Scan this code to enable BitID</value>
</data>
<data name="Master_BitIdRegister_Sidebar" xml:space="preserve">
<value>&lt;h3&gt;What is this?&lt;/h3&gt;
&lt;p&gt;BitID is a way to log on securely with less hassle than entering a password. Its simplicitly cannot be explained, only experienced, and it is a two-factor authentication since it uses your phone.&lt;/p&gt;
@@ -830,9 +833,27 @@
&lt;h3&gt;Do I need an app for this?&lt;/h3&gt;
&lt;p&gt;Maybe. Some mobile bitcoin wallets have BitID built in. The most common one hasn't. If yours doesn't, look for an app called "BitID Authenticator" or similar.&lt;/p&gt;
&lt;h3&gt;How do I enable BitID?&lt;/h3&gt;
&lt;p&gt;Just use the phone app to scan this code. After that, you can scan a similar code to log in.&lt;/p&gt;</value>
&lt;p&gt;Just use the phone app to scan this code. After that, you can scan a similar code to log in to this system.&lt;/p&gt;</value>
<comment>This text is displayed as a sidebar when registering a BitID address.</comment>
</data>
<data name="Master_EditPerson2FAEnable" xml:space="preserve">
<value>BitID (bitcoin signature) two-factor authentication</value>
</data>
<data name="Master_EditPerson2FAEnableShort" xml:space="preserve">
<value>BitID two-factor auth</value>
</data>
<data name="Master_EditPersonCurrentPassword" xml:space="preserve">
<value>Type current password to enable changes</value>
</data>
<data name="Master_EditPersonHeaderSecurity" xml:space="preserve">
<value>Your Security</value>
</data>
<data name="Master_EditPersonNewPassword1" xml:space="preserve">
<value>Set new password</value>
</data>
<data name="Master_EditPersonNewPassword2" xml:space="preserve">
<value>Retype new password</value>
</data>
<data name="Master_EditPersonNewPassword_CannotChange_SecurityError" xml:space="preserve">
<value>Unable to set new password: The old password is incorrect.</value>
</data>
+20 -7
View File
@@ -257,10 +257,10 @@
</div>
</div>
<div class="entryLabels">
Type current password to enable changes<br/>
<div class="divMasterPersonEditSecurityRolldown" style="display:none">Enable BitId (bitcoin signature login)<br/>
Set new password<br/>
Retype new password</div>
<asp:Label ID="MasterLabelEditPersonCurrentPerson" runat="server" Text="#Type current password to enable changes#"/><br/>
<div class="divMasterPersonEditSecurityRolldown" style="display: none"><asp:Label runat="server" ID="MasterLabelEditPerson2FA" Text="#2FALoc#"/><br/>
<asp:Label runat="server" ID="MasterLabelEditPersonNewPassword1"/><br/>
<asp:Label runat="server" ID="MasterLabelEditPersonNewPassword2"/></div>
</div>
</div>
<div title="<img src='/Images/Icons/iconshock-lock-256px.png' height='64' width='64' />">
@@ -272,7 +272,7 @@
</div>
<div class="entryLabels">
<asp:Label runat="server" ID="MasterLabelEditPersonResetPassword" /><br/>
<asp:Label runat="server" ID="MasterLabelEditPersonSecurity2FASwitch" />
<asp:Label runat="server" ID="MasterLabelEditPerson2FAProvisioning" />
</div>
</div>
<!--
@@ -361,7 +361,7 @@
<Swarmops5:ModalDialog ID="ModalMasterEnableBitId" runat="server" OnClientClose="onBitIdRegisterFail">
<DialogCode>
<h2>Scan this code to enable BitId login</h2>
<h2><asp:Label runat="server" ID="MasterLabelBitIdRegisterHeader"/></h2>
<div id="divBitIdEnable" style="height: 280px; margin: 50px; float:left"></div>
<div class="modal-sidebar" style="margin-top:50px">
@@ -477,6 +477,19 @@
personId: parseInt(personId) // parseInt to force passing integer over JSON
};
if (personId == 0) // self
{
// Show security, hide security provisioning
$('#divTabsEditPerson').tabs('disableTab', 2);
$('#divTabsEditPerson').tabs('enableTab', 1);
} else {
// other way around
$('#divTabsEditPerson').tabs('disableTab', 1);
$('#divTabsEditPerson').tabs('enableTab', 2);
}
$('#div').tabs();
_master_PersonEditLoading = false;
_master_PersonEditedId = personId;
@@ -667,7 +680,7 @@
function onBitIdRegisterRecheck() {
SwarmopsJS.ajaxCall("/Automation/SwarmFunctions.aspx/TestBitIdRegister", {}, function(result) {
alertify.log(result.Success);
if (result.Success) {
_master_bitIdRecheckTimer = null;
_master_bitIdRegisterSuccess = true; // suppress failure from close event below
+15 -4
View File
@@ -231,16 +231,25 @@ namespace Swarmops.Frontend
// this.LiteralCurrentlyLoggedIntoSwitch.Text = string.Format(Resources.Global.Master_SwitchOrganizationDialog, _currentOrganization.Name);
this.MasterLabelEditPersonHeaderAccount.Text = Resources.Global.Master_EditPersonHeaderAccount;
this.MasterLabelEditPersonHeaderSecurityProvisioning.Text =
Resources.Global.Master_EditPersonHeaderSecurityProvisioning;
this.MasterLabelEditPersonMail.Text = Resources.Global.Global_Mail;
this.MasterLabelEditPersonName.Text = Resources.Global.Global_Name;
this.MasterLabelEditPersonPhone.Text = Resources.Global.Global_Phone;
this.MasterLabelEditPersonResetPassword.Text = Resources.Global.Master_EditPersonResetPasswordLabel;
this.MasterLabelEditPersonSecurity2FASwitch.Text = Resources.Global.Master_EditPerson2FAEnable;
this.MasterLabelEditPersonTwitter.Text = Resources.Global.Global_TwitterId;
this.MasterLabelEditPersonHeaderSecurity.Text = Resources.Global.Master_EditPersonHeaderSecurity;
this.MasterLabelEditPerson2FA.Text = Resources.Global.Master_EditPerson2FAEnable;
this.MasterLabelEditPersonNewPassword1.Text = Resources.Global.Master_EditPersonNewPassword1;
this.MasterLabelEditPersonNewPassword1.Text = Resources.Global.Master_EditPersonNewPassword1;
this.MasterEditPerson2FA.Label = Resources.Global.Master_EditPerson2FAEnableShort;
this.MasterLabelEditPersonHeaderSecurityProvisioning.Text =
Resources.Global.Master_EditPersonHeaderSecurityProvisioning;
this.MasterEditPerson2FAProvisioning.Label = Resources.Global.Master_EditPerson2FAEnableShort;
this.MasterLabelEditPersonResetPassword.Text = Resources.Global.Master_EditPersonResetPasswordLabel;
this.MasterLabelEditPerson2FAProvisioning.Text = Resources.Global.Master_EditPerson2FAEnable;
this.MasterLabelBitIdRegisterHeader.Text = Resources.Global.Master_BitIdRegister_Header;
}
protected string _cacheVersionMark; // this is just a cache buster for style sheets on new versions
@@ -501,6 +510,8 @@ namespace Swarmops.Frontend
get { return CommonV5.JavascriptEscape(Resources.Global.Error_AjaxCallException); }
}
public string GenerateBitIdToken
{
get
+47 -2
View File
@@ -408,6 +408,42 @@ namespace Swarmops.Frontend {
/// </remarks>
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox MasterEditPersonNewPassword2;
/// <summary>
/// MasterLabelEditPersonCurrentPerson control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonCurrentPerson;
/// <summary>
/// MasterLabelEditPerson2FA control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPerson2FA;
/// <summary>
/// MasterLabelEditPersonNewPassword1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonNewPassword1;
/// <summary>
/// MasterLabelEditPersonNewPassword2 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonNewPassword2;
/// <summary>
/// MasterLabelEditPersonHeaderSecurityProvisioning control.
/// </summary>
@@ -436,13 +472,13 @@ namespace Swarmops.Frontend {
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonResetPassword;
/// <summary>
/// MasterLabelEditPersonSecurity2FASwitch control.
/// MasterLabelEditPerson2FAProvisioning control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonSecurity2FASwitch;
protected global::System.Web.UI.WebControls.Label MasterLabelEditPerson2FAProvisioning;
/// <summary>
/// MasterEditPersonOrgMail control.
@@ -533,5 +569,14 @@ namespace Swarmops.Frontend {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Swarmops.Frontend.Controls.Base.ModalDialog ModalMasterEnableBitId;
/// <summary>
/// MasterLabelBitIdRegisterHeader control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelBitIdRegisterHeader;
}
}