AgendaWizardDialogResources.py 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. if sys.version_info < (3,4):
  26. import imp
  27. imp.load_source('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc'))
  28. import strings
  29. elif sys.version_info < (3,7):
  30. # imp is deprecated since Python v.3.4
  31. from importlib.machinery import SourceFileLoader
  32. SourceFileLoader('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc')).load_module()
  33. import strings
  34. else:
  35. # have to jump through hoops since 3.7, partly because python does not like loading modules that do have a .py extension
  36. import importlib
  37. import importlib.util
  38. import importlib.machinery
  39. module_name = 'strings'
  40. path = os.path.join(os.path.dirname(__file__), '../common/strings.hrc')
  41. spec = importlib.util.spec_from_loader(
  42. module_name,
  43. importlib.machinery.SourceFileLoader(module_name, path)
  44. )
  45. module = importlib.util.module_from_spec(spec)
  46. spec.loader.exec_module(module)
  47. sys.modules[module_name] = module
  48. strings = module
  49. self.resAgendaWizardDialog_title = strings.RID_AGENDAWIZARDDIALOG_START_1
  50. self.resoptMakeChanges_value = strings.RID_AGENDAWIZARDDIALOG_START_2
  51. self.reslblTemplateName_value = strings.RID_AGENDAWIZARDDIALOG_START_3
  52. self.reslblTemplatePath_value = strings.RID_AGENDAWIZARDDIALOG_START_4
  53. self.reslblProceed_value = strings.RID_AGENDAWIZARDDIALOG_START_5
  54. self.reslblTitle1_value = strings.RID_AGENDAWIZARDDIALOG_START_6
  55. self.reslblTitle3_value = strings.RID_AGENDAWIZARDDIALOG_START_7
  56. self.reslblTitle2_value = strings.RID_AGENDAWIZARDDIALOG_START_8
  57. self.reslblTitle4_value = strings.RID_AGENDAWIZARDDIALOG_START_9
  58. self.reslblTitle5_value = strings.RID_AGENDAWIZARDDIALOG_START_10
  59. self.reslblTitle6_value = strings.RID_AGENDAWIZARDDIALOG_START_11
  60. self.reschkMinutes_value = strings.RID_AGENDAWIZARDDIALOG_START_12
  61. self.reslblHelp1_value = strings.RID_AGENDAWIZARDDIALOG_START_13
  62. self.reslblTime_value = strings.RID_AGENDAWIZARDDIALOG_START_14
  63. self.reslblTitle_value = strings.RID_AGENDAWIZARDDIALOG_START_15
  64. self.reslblLocation_value = strings.RID_AGENDAWIZARDDIALOG_START_16
  65. self.reslblHelp2_value = strings.RID_AGENDAWIZARDDIALOG_START_17
  66. self.resbtnTemplatePath_value = strings.RID_AGENDAWIZARDDIALOG_START_18
  67. self.resoptCreateAgenda_value = strings.RID_AGENDAWIZARDDIALOG_START_19
  68. self.reslblHelp6_value = strings.RID_AGENDAWIZARDDIALOG_START_20
  69. self.reslblTopic_value = strings.RID_AGENDAWIZARDDIALOG_START_21
  70. self.reslblResponsible_value = strings.RID_AGENDAWIZARDDIALOG_START_22
  71. self.reslblDuration_value = strings.RID_AGENDAWIZARDDIALOG_START_23
  72. self.reschkConvenedBy_value = strings.RID_AGENDAWIZARDDIALOG_START_24
  73. self.reschkPresiding_value = strings.RID_AGENDAWIZARDDIALOG_START_25
  74. self.reschkNoteTaker_value = strings.RID_AGENDAWIZARDDIALOG_START_26
  75. self.reschkTimekeeper_value = strings.RID_AGENDAWIZARDDIALOG_START_27
  76. self.reschkAttendees_value = strings.RID_AGENDAWIZARDDIALOG_START_28
  77. self.reschkObservers_value = strings.RID_AGENDAWIZARDDIALOG_START_29
  78. self.reschkResourcePersons_value = strings.RID_AGENDAWIZARDDIALOG_START_30
  79. self.reslblHelp4_value = strings.RID_AGENDAWIZARDDIALOG_START_31
  80. self.reschkMeetingTitle_value = strings.RID_AGENDAWIZARDDIALOG_START_32
  81. self.reschkRead_value = strings.RID_AGENDAWIZARDDIALOG_START_33
  82. self.reschkBring_value = strings.RID_AGENDAWIZARDDIALOG_START_34
  83. self.reschkNotes_value = strings.RID_AGENDAWIZARDDIALOG_START_35
  84. self.reslblHelp3_value = strings.RID_AGENDAWIZARDDIALOG_START_36
  85. self.reslblDate_value = strings.RID_AGENDAWIZARDDIALOG_START_38
  86. self.reslblHelpPg6_value = strings.RID_AGENDAWIZARDDIALOG_START_39
  87. self.reslblPageDesign_value = strings.RID_AGENDAWIZARDDIALOG_START_40
  88. self.resDefaultFilename = strings.RID_AGENDAWIZARDDIALOG_START_41
  89. self.resDefaultFilename = self.resDefaultFilename[:-4] + ".ott"
  90. self.resDefaultTitle = strings.RID_AGENDAWIZARDDIALOG_START_42
  91. self.resErrSaveTemplate = strings.RID_AGENDAWIZARDDIALOG_START_43
  92. self.resPlaceHolderTitle = strings.RID_AGENDAWIZARDDIALOG_START_44
  93. self.resPlaceHolderDate = strings.RID_AGENDAWIZARDDIALOG_START_45
  94. self.resPlaceHolderTime = strings.RID_AGENDAWIZARDDIALOG_START_46
  95. self.resPlaceHolderLocation = strings.RID_AGENDAWIZARDDIALOG_START_47
  96. self.resPlaceHolderHint = strings.RID_AGENDAWIZARDDIALOG_START_48
  97. self.resErrOpenTemplate = strings.RID_AGENDAWIZARDDIALOG_START_56
  98. self.itemMeetingType = strings.RID_AGENDAWIZARDDIALOG_START_57
  99. self.itemBring = strings.RID_AGENDAWIZARDDIALOG_START_58
  100. self.itemRead = strings.RID_AGENDAWIZARDDIALOG_START_59
  101. self.itemNote = strings.RID_AGENDAWIZARDDIALOG_START_60
  102. self.itemCalledBy = strings.RID_AGENDAWIZARDDIALOG_START_61
  103. self.itemFacilitator = strings.RID_AGENDAWIZARDDIALOG_START_62
  104. self.itemAttendees = strings.RID_AGENDAWIZARDDIALOG_START_63
  105. self.itemNotetaker = strings.RID_AGENDAWIZARDDIALOG_START_64
  106. self.itemTimekeeper = strings.RID_AGENDAWIZARDDIALOG_START_65
  107. self.itemObservers = strings.RID_AGENDAWIZARDDIALOG_START_66
  108. self.itemResource = strings.RID_AGENDAWIZARDDIALOG_START_67
  109. self.resButtonInsert = strings.RID_AGENDAWIZARDDIALOG_START_68
  110. self.resButtonRemove = strings.RID_AGENDAWIZARDDIALOG_START_69
  111. self.resButtonUp = strings.RID_AGENDAWIZARDDIALOG_START_70
  112. self.resButtonDown = strings.RID_AGENDAWIZARDDIALOG_START_71
  113. #Create a dictionary for localised string in the template
  114. self.dictConstants = {
  115. "#datetitle#" : strings.RID_AGENDAWIZARDDIALOG_START_72,
  116. "#timetitle#" : strings.RID_AGENDAWIZARDDIALOG_START_73,
  117. "#locationtitle#" : strings.RID_AGENDAWIZARDDIALOG_START_74,
  118. "#topics#" : strings.RID_AGENDAWIZARDDIALOG_START_75,
  119. "#num.#" : strings.RID_AGENDAWIZARDDIALOG_START_76,
  120. "#topicheader#" : strings.RID_AGENDAWIZARDDIALOG_START_77,
  121. "#responsibleheader#" : strings.RID_AGENDAWIZARDDIALOG_START_78,
  122. "#timeheader#" : strings.RID_AGENDAWIZARDDIALOG_START_79,
  123. "#additional-information#" : strings.RID_AGENDAWIZARDDIALOG_START_80,
  124. "#minutes-for#" : strings.RID_AGENDAWIZARDDIALOG_START_81,
  125. "#discussion#" : strings.RID_AGENDAWIZARDDIALOG_START_82,
  126. "#conclusion#" : strings.RID_AGENDAWIZARDDIALOG_START_83,
  127. "#to-do#" : strings.RID_AGENDAWIZARDDIALOG_START_84,
  128. "#responsible-party#" : strings.RID_AGENDAWIZARDDIALOG_START_85,
  129. "#deadline#" : strings.RID_AGENDAWIZARDDIALOG_START_86}
  130. #Create a dictionary for localising the page design
  131. self.dictPageDesign = {
  132. "Blue" : strings.RID_AGENDAWIZARDDIALOG_START_87,
  133. "Classic" : strings.RID_AGENDAWIZARDDIALOG_START_88,
  134. "Colorful" : strings.RID_AGENDAWIZARDDIALOG_START_89,
  135. "Elegant" : strings.RID_AGENDAWIZARDDIALOG_START_90,
  136. "Green" : strings.RID_AGENDAWIZARDDIALOG_START_91,
  137. "Grey" : strings.RID_AGENDAWIZARDDIALOG_START_92,
  138. "Modern" : strings.RID_AGENDAWIZARDDIALOG_START_93,
  139. "Orange" : strings.RID_AGENDAWIZARDDIALOG_START_94,
  140. "Red" : strings.RID_AGENDAWIZARDDIALOG_START_95,
  141. "Simple" : strings.RID_AGENDAWIZARDDIALOG_START_96}
  142. #Common Resources
  143. self.resOverwriteWarning = strings.RID_COMMON_START_19
  144. self.resTemplateDescription = strings.RID_COMMON_START_20
  145. self.RoadmapLabels = []
  146. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_50)
  147. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_51)
  148. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_52)
  149. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_53)
  150. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_54)
  151. self.RoadmapLabels.append(strings.RID_AGENDAWIZARDDIALOG_START_55)