Kaydet (Commit) 721f1eca authored tarafından Jennifer Liebel's avatar Jennifer Liebel Kaydeden (comit) Andras Timar

fdo#75107: make colors and styles localizable in Agenda Wizard

Change-Id: I231370da5ee7185888ec95ba1fb64f678a7c8ea3
Reviewed-on: https://gerrit.libreoffice.org/11412Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst a8c8f92d
......@@ -204,7 +204,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
try:
sAgendaPath = self.sTemplatePath + "/wizard/agenda"
self.agendaTemplates = FileAccess.getFolderTitles(
self.xMSF, "aw", sAgendaPath)
self.xMSF, "aw", sAgendaPath, self.resources.dictPageDesign)
return True
except NoValidPathException:
traceback.print_exc()
......
......@@ -188,6 +188,29 @@ class AgendaWizardDialogResources(object):
"#deadline#" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 86)}
#Create a dictionary for localising the page design
self.dictPageDesign = {
"Blue" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 87),
"Classic" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 88),
"Colorful" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 89),
"Elegant" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 90),
"Green" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 91),
"Grey" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 92),
"Modern" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 93),
"Orange" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 94),
"Red" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 95),
"Simple" : oWizardResource.getResText(
AgendaWizardDialogResources.RID_AGENDAWIZARDDIALOG_START + 96)}
#Common Resources
self.resOverwriteWarning = oWizardResource.getResText(
AgendaWizardDialogResources.RID_COMMON_START + 19)
......
......@@ -3627,5 +3627,45 @@ String RID_AGENDAWIZARDDIALOG_START +86
{
Text [en-US ] = "Deadline:";
};
String RID_AGENDAWIZARDDIALOG_START +87
{
Text [en-US ] = "Blue";
};
String RID_AGENDAWIZARDDIALOG_START +88
{
Text [en-US ] = "Classic";
};
String RID_AGENDAWIZARDDIALOG_START +89
{
Text [en-US ] = "Colorful";
};
String RID_AGENDAWIZARDDIALOG_START +90
{
Text [en-US ] = "Elegant";
};
String RID_AGENDAWIZARDDIALOG_START +91
{
Text [en-US ] = "Green";
};
String RID_AGENDAWIZARDDIALOG_START +92
{
Text [en-US ] = "Grey";
};
String RID_AGENDAWIZARDDIALOG_START +93
{
Text [en-US ] = "Modern";
};
String RID_AGENDAWIZARDDIALOG_START +94
{
Text [en-US ] = "Orange";
};
String RID_AGENDAWIZARDDIALOG_START +95
{
Text [en-US ] = "Red";
};
String RID_AGENDAWIZARDDIALOG_START +96
{
Text [en-US ] = "Simple";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment