AgendaWizardDialogResources.py 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #
  2. # This file is part of the LibreOffice project.
  3. #
  4. # This Source Code Form is subject to the terms of the Mozilla Public
  5. # License, v. 2.0. If a copy of the MPL was not distributed with this
  6. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. #
  8. # This file incorporates work covered by the following license notice:
  9. #
  10. # Licensed to the Apache Software Foundation (ASF) under one or more
  11. # contributor license agreements. See the NOTICE file distributed
  12. # with this work for additional information regarding copyright
  13. # ownership. The ASF licenses this file to you under the Apache
  14. # License, Version 2.0 (the "License"); you may not use this file
  15. # except in compliance with the License. You may obtain a copy of
  16. # the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. #
  18. class AgendaWizardDialogResources(object):
  19. SECTION_ITEMS = "AGENDA_ITEMS"
  20. SECTION_TOPICS = "AGENDA_TOPICS"
  21. SECTION_MINUTES_ALL = "MINUTES_ALL"
  22. SECTION_MINUTES = "MINUTES"
  23. def __init__(self):
  24. import sys, os
  25. # imp is deprecated since Python v.3.4
  26. if sys.version_info >= (3,3):
  27. from importlib.machinery import SourceFileLoader
  28. SourceFileLoader('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc')).load_module()
  29. else:
  30. import imp
  31. imp.load_source('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc'))
  32. import strings
  33. self.resAgendaWizardDialog_title = strings.RID_AGENDAWIZARDDIALOG_START_1
  34. self.resoptMakeChanges_value = strings.RID_AGENDAWIZARDDIALOG_START_2
  35. self.reslblTemplateName_value = strings.RID_AGENDAWIZARDDIALOG_START_3
  36. self.reslblTemplatePath_value = strings.RID_AGENDAWIZARDDIALOG_START_4
  37. self.reslblProceed_value = strings.RID_AGENDAWIZARDDIALOG_START_5
  38. self.reslblTitle1_value = strings.RID_AGENDAWIZARDDIALOG_START_6
  39. self.reslblTitle3_value = strings.RID_AGENDAWIZARDDIALOG_START_7
  40. self.reslblTitle2_value = strings.RID_AGENDAWIZARDDIALOG_START_8
  41. self.reslblTitle4_value = strings.RID_AGENDAWIZARDDIALOG_START_9
  42. self.reslblTitle5_value = strings.RID_AGENDAWIZARDDIALOG_START_10
  43. self.reslblTitle6_value = strings.RID_AGENDAWIZARDDIALOG_START_11
  44. self.reschkMinutes_value = strings.RID_AGENDAWIZARDDIALOG_START_12
  45. self.reslblHelp1_value = strings.RID_AGENDAWIZARDDIALOG_START_13
  46. self.reslblTime_value = strings.RID_AGENDAWIZARDDIALOG_START_14
  47. self.reslblTitle_value = strings.RID_AGENDAWIZARDDIALOG_START_15
  48. self.reslblLocation_value = strings.RID_AGENDAWIZARDDIALOG_START_16
  49. self.reslblHelp2_value = strings.RID_AGENDAWIZARDDIALOG_START_17
  50. self.resbtnTemplatePath_value = strings.RID_AGENDAWIZARDDIALOG_START_18
  51. self.resoptCreateAgenda_value = strings.RID_AGENDAWIZARDDIALOG_START_19
  52. self.reslblHelp6_value = strings.RID_AGENDAWIZARDDIALOG_START_20
  53. self.reslblTopic_value = strings.RID_AGENDAWIZARDDIALOG_START_21
  54. self.reslblResponsible_value = strings.RID_AGENDAWIZARDDIALOG_START_22
  55. self.reslblDuration_value = strings.RID_AGENDAWIZARDDIALOG_START_23
  56. self.reschkConvenedBy_value = strings.RID_AGENDAWIZARDDIALOG_START_24
  57. self.reschkPresiding_value = strings.RID_AGENDAWIZARDDIALOG_START_25
  58. self.reschkNoteTaker_value = strings.RID_AGENDAWIZARDDIALOG_START_26
  59. self.reschkTimekeeper_value = strings.RID_AGENDAWIZARDDIALOG_START_27
  60. self.reschkAttendees_value = strings.RID_AGENDAWIZARDDIALOG_START_28
  61. self.reschkObservers_value = strings.RID_AGENDAWIZARDDIALOG_START_29
  62. self.reschkResourcePersons_value = strings.RID_AGENDAWIZARDDIALOG_START_30
  63. self.reslblHelp4_value = strings.RID_AGENDAWIZARDDIALOG_START_31
  64. self.reschkMeetingTitle_value = strings.RID_AGENDAWIZARDDIALOG_START_32
  65. self.reschkRead_value = strings.RID_AGENDAWIZARDDIALOG_START_33
  66. self.reschkBring_value = strings.RID_AGENDAWIZARDDIALOG_START_34
  67. self.reschkNotes_value = strings.RID_AGENDAWIZARDDIALOG_START_35
  68. self.reslblHelp3_value = strings.RID_AGENDAWIZARDDIALOG_START_36
  69. self.reslblDate_value = strings.RID_AGENDAWIZARDDIALOG_START_38
  70. self.reslblHelpPg6_value = strings.RID_AGENDAWIZARDDIALOG_START_39
  71. self.reslblPageDesign_value = strings.RID_AGENDAWIZARDDIALOG_START_40
  72. self.resDefaultFilename = strings.RID_AGENDAWIZARDDIALOG_START_41
  73. self.resDefaultFilename = self.resDefaultFilename[:-4] + ".ott"
  74. self.resDefaultTitle = strings.RID_AGENDAWIZARDDIALOG_START_42
  75. self.resErrSaveTemplate = strings.RID_AGENDAWIZARDDIALOG_START_43
  76. self.resPlaceHolderTitle = strings.RID_AGENDAWIZARDDIALOG_START_44
  77. self.resPlaceHolderDate = strings.RID_AGENDAWIZARDDIALOG_START_45
  78. self.resPlaceHolderTime = strings.RID_AGENDAWIZARDDIALOG_START_46
  79. self.resPlaceHolderLocation = strings.RID_AGENDAWIZARDDIALOG_START_47
  80. self.resPlaceHolderHint = strings.RID_AGENDAWIZARDDIALOG_START_48
  81. self.resErrOpenTemplate = strings.RID_AGENDAWIZARDDIALOG_START_56
  82. self.itemMeetingType = strings.RID_AGENDAWIZARDDIALOG_START_57
  83. self.itemBring = strings.RID_AGENDAWIZARDDIALOG_START_58
  84. self.itemRead = strings.RID_AGENDAWIZARDDIALOG_START_59
  85. self.itemNote = strings.RID_AGENDAWIZARDDIALOG_START_60
  86. self.itemCalledBy = strings.RID_AGENDAWIZARDDIALOG_START_61
  87. self.itemFacilitator = strings.RID_AGENDAWIZARDDIALOG_START_62
  88. self.itemAttendees = strings.RID_AGENDAWIZARDDIALOG_START_63
  89. self.itemNotetaker = strings.RID_AGENDAWIZARDDIALOG_START_64
  90. self.itemTimekeeper = strings.RID_AGENDAWIZARDDIALOG_START_65
  91. self.itemObservers = strings.RID_AGENDAWIZARDDIALOG_START_66
  92. self.itemResource = strings.RID_AGENDAWIZARDDIALOG_START_67
  93. self.resButtonInsert = strings.RID_AGENDAWIZARDDIALOG_START_68
  94. self.resButtonRemove = strings.RID_AGENDAWIZARDDIALOG_START_69
  95. self.resButtonUp = strings.RID_AGENDAWIZARDDIALOG_START_70
  96. self.resButtonDown = strings.RID_AGENDAWIZARDDIALOG_START_71
  97. #Create a dictionary for localised string in the template
  98. self.dictConstants = {
  99. "#datetitle#" : strings.RID_AGENDAWIZARDDIALOG_START_72,
  100. "#timetitle#" : strings.RID_AGENDAWIZARDDIALOG_START_73,
  101. "#locationtitle#" : strings.RID_AGENDAWIZARDDIALOG_START_74,
  102. "#topics#" : strings.RID_AGENDAWIZARDDIALOG_START_75,
  103. "#num.#" : strings.RID_AGENDAWIZARDDIALOG_START_76,
  104. "#topicheader#" : strings.RID_AGENDAWIZARDDIALOG_START_77,
  105. "#responsibleheader#" : strings.RID_AGENDAWIZARDDIALOG_START_78,
  106. "#timeheader#" : strings.RID_AGENDAWIZARDDIALOG_START_79,
  107. "#additional-information#" : strings.RID_AGENDAWIZARDDIALOG_START_80,
  108. "#minutes-for#" : strings.RID_AGENDAWIZARDDIALOG_START_81,
  109. "#discussion#" : strings.RID_AGENDAWIZARDDIALOG_START_82,
  110. "#conclusion#" : strings.RID_AGENDAWIZARDDIALOG_START_83,
  111. "#to-do#" : strings.RID_AGENDAWIZARDDIALOG_START_84,
  112. "#responsible-party#" : strings.RID_AGENDAWIZARDDIALOG_START_85,
  113. "#deadline#" : strings.RID_AGENDAWIZARDDIALOG_START_86}
  114. #Create a dictionary for localising the page design
  115. self.dictPageDesign = {
  116. "Blue" : strings.RID_AGENDAWIZARDDIALOG_START_87,
  117. "Classic" : strings.RID_AGENDAWIZARDDIALOG_START_88,
  118. "Colorful" : strings.RID_AGENDAWIZARDDIALOG_START_89,
  119. "Elegant" : strings.RID_AGENDAWIZARDDIALOG_START_90,
  120. "Green" : strings.RID_AGENDAWIZARDDIALOG_START_91,
  121. "Grey" : strings.RID_AGENDAWIZARDDIALOG_START_92,
  122. "Modern" : strings.RID_AGENDAWIZARDDIALOG_START_93,
  123. "Orange" : strings.RID_AGENDAWIZARDDIALOG_START_94,
  124. "Red" : strings.RID_AGENDAWIZARDDIALOG_START_95,
  125. "Simple" : strings.RID_AGENDAWIZARDDIALOG_START_96}
  126. #Common Resources
  127. self.resOverwriteWarning = strings.RID_COMMON_START_19
  128. self.resTemplateDescription = strings.RID_COMMON_START_20
  129. self.RoadmapLabels = []
  130. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_50)
  131. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_51)
  132. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_52)
  133. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_53)
  134. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_54)
  135. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_55)