Page fully localized - committing for the morrow
This commit is contained in:
@@ -141,6 +141,27 @@
|
||||
<value>Dashboard</value>
|
||||
<comment>Title of default page</comment>
|
||||
</data>
|
||||
<data name="Financial_Actuals" xml:space="preserve">
|
||||
<value>Actuals</value>
|
||||
</data>
|
||||
<data name="Financial_ActualsPreliminary" xml:space="preserve">
|
||||
<value>Actuals (prel)</value>
|
||||
</data>
|
||||
<data name="Financial_ActualsToDate" xml:space="preserve">
|
||||
<value>Actuals YTD</value>
|
||||
</data>
|
||||
<data name="Financial_BookkeepingAccountLong" xml:space="preserve">
|
||||
<value>Bookkeeping Account</value>
|
||||
</data>
|
||||
<data name="Financial_BookkeepingAccountShort" xml:space="preserve">
|
||||
<value>Account</value>
|
||||
</data>
|
||||
<data name="Financial_Budget" xml:space="preserve">
|
||||
<value>Budget</value>
|
||||
</data>
|
||||
<data name="Financial_YearlyResult" xml:space="preserve">
|
||||
<value>Yearly result</value>
|
||||
</data>
|
||||
<data name="Global_Cancel" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
<comment>Displayed as cancellation link on changing something</comment>
|
||||
@@ -165,6 +186,13 @@
|
||||
<value>Go there...</value>
|
||||
<comment>Link after describing something.</comment>
|
||||
</data>
|
||||
<data name="Global_NoOwner" xml:space="preserve">
|
||||
<value>Nobody</value>
|
||||
<comment>Displayed when an account/position etc is vacant</comment>
|
||||
</data>
|
||||
<data name="Global_Owner" xml:space="preserve">
|
||||
<value>Owner</value>
|
||||
</data>
|
||||
<data name="Global_ProcessingFile" xml:space="preserve">
|
||||
<value>Processing File...</value>
|
||||
<comment>Displayed while processing an uploaded file (along with a progress bar).</comment>
|
||||
|
||||
@@ -117,10 +117,25 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="SetRootBudgets_BudgetOwnerHeader" xml:space="preserve">
|
||||
<value>Budget, Owner</value>
|
||||
<comment>Displayed above editables</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_Info" xml:space="preserve">
|
||||
<value>This is where the root budgets are set for each budget year. After these are set, each budget owner suballocates funds within their respective budget trees.</value>
|
||||
</data>
|
||||
<data name="SetRootBudgets_PageHeader" xml:space="preserve">
|
||||
<value>Root Budgets For {0}</value>
|
||||
<comment>The {0} is replaced with the organization's name.</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_PageTitle" xml:space="preserve">
|
||||
<value>Set Root Level Budgets</value>
|
||||
<comment>Displayed above main content</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_SetNewBudgets" xml:space="preserve">
|
||||
<value>Set New Budgets</value>
|
||||
<comment>Text on submit button</comment>
|
||||
</data>
|
||||
<data name="UploadBankFiles_BankScreenshot" xml:space="preserve">
|
||||
<value>Bank Screenshot</value>
|
||||
<comment>Displayed as header above modally zoomed screenshot</comment>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
|
||||
<div class="entryfields">
|
||||
<strong>Budget, Owner [LOC]</strong><br/>
|
||||
<strong><asp:Label ID="LabelBudgetOwnerHeader" runat="server" Text="Budget, Owner [LOC]" /></strong><br/>
|
||||
<asp:Repeater ID="RepeaterAccountBudgets" OnItemDataBound="RepeaterAccountBudgets_ItemDataBound" runat="server"><ItemTemplate><asp:HiddenField runat="server" ID="HiddenAccountId" /><asp:HiddenField runat="server" ID="HiddenCurrentBudget" /><asp:TextBox ID="TextBudget" runat="server" Text="Not set" /> <span style="border-bottom: dashed 1px #808080;cursor:pointer"><asp:Label ID="LabelBudgetOwner" runat="server" /></span><telerik:RadToolTip ID="ToolTip" runat="server" AnimationDuration="150" AutoCloseDelay="200000" ShowDelay="0"
|
||||
EnableShadow="true" HideDelay="1" Width="288px" Height="96px" HideEvent="ManualClose" OffsetX="30" OffsetY="0"
|
||||
RelativeTo="Element" Animation="Slide" Position="TopCenter" ShowCallout="true" TargetControlID="LabelBudgetOwner" RenderInPageRoot="true" ShowEvent="OnClick"
|
||||
|
||||
@@ -61,6 +61,19 @@ public partial class Pages_v5_Ledgers_SetRootBudgets : PageV5Base
|
||||
this.RepeaterAccountActuals.DataBind();
|
||||
|
||||
UpdateYearlyResult(accounts);
|
||||
|
||||
this.LabelRootBudgetHeader.Text = String.Format(Resources.Pages.Ledgers.SetRootBudgets_PageHeader, _currentOrganization.Name);
|
||||
this.LabelAccountHeader.Text = Resources.Global.Financial_BookkeepingAccountShort;
|
||||
this.LabelYearlyResultLabel.Text = Resources.Global.Financial_YearlyResult;
|
||||
this.ButtonSetBudgets.Text = Resources.Pages.Ledgers.SetRootBudgets_SetNewBudgets;
|
||||
this.LabelBudgetOwnerHeader.Text = Resources.Pages.Ledgers.SetRootBudgets_BudgetOwnerHeader;
|
||||
|
||||
this.LabelSidebarActions.Text = Resources.Global.Sidebar_Actions;
|
||||
this.LabelSidebarInfo.Text = Resources.Global.Sidebar_Information;
|
||||
this.LabelSidebarTodo.Text = Resources.Global.Sidebar_Todo;
|
||||
this.LabelDashboardInfo.Text = Resources.Pages.Ledgers.SetRootBudgets_Info;
|
||||
|
||||
LocalizeActualsHeader();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -75,6 +88,22 @@ public partial class Pages_v5_Ledgers_SetRootBudgets : PageV5Base
|
||||
RebindTooltips();
|
||||
}
|
||||
|
||||
private void LocalizeActualsHeader()
|
||||
{
|
||||
if (_currentOrganization.Parameters.FiscalBooksClosedUntilYear >= _year)
|
||||
{
|
||||
this.LabelActualsHeader.Text = Resources.Global.Financial_Actuals;
|
||||
}
|
||||
else if (_year == DateTime.Today.Year)
|
||||
{
|
||||
this.LabelActualsHeader.Text = Resources.Global.Financial_ActualsToDate;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.LabelActualsHeader.Text = Resources.Global.Financial_ActualsPreliminary;
|
||||
}
|
||||
}
|
||||
|
||||
protected void UpdateYearlyResult(FinancialAccounts rootAccounts)
|
||||
{
|
||||
Int64 budgetSum = 0;
|
||||
@@ -140,7 +169,7 @@ public partial class Pages_v5_Ledgers_SetRootBudgets : PageV5Base
|
||||
Person accountOwner = account.Owner;
|
||||
if (accountOwner == null)
|
||||
{
|
||||
labelOwnerName.Text = "None [LOC]";
|
||||
labelOwnerName.Text = Resources.Global.Global_NoOwner;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -194,6 +223,8 @@ public partial class Pages_v5_Ledgers_SetRootBudgets : PageV5Base
|
||||
this.RepeaterAccountActuals.DataSource = accounts;
|
||||
this.RepeaterAccountActuals.DataBind();
|
||||
|
||||
LocalizeActualsHeader();
|
||||
|
||||
this.RebindTooltips();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user