Changeset 420dc1 in indico
- Timestamp:
- 07/28/09 10:53:04 (4 years ago)
- Branches:
- master, burotel, exp-instant-messaging, hello-world-walkthrough, ipv6, new-improved-taskdaemon, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 9e12cf
- Parents:
- 2db9f1
- git-author:
- Cvetelina Angelova <csvetelina.angelova@…> (07/27/09 11:55:37)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (07/28/09 10:53:04)
- Location:
- indico
- Files:
-
- 31 edited
-
MaKaC/authentication/LocalAuthentication.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/CERNMCU/__init__.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/CERNMCU/options.py (modified) (4 diffs)
-
MaKaC/plugins/Collaboration/EVO/__init__.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/EVO/actions.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/EVO/options.py (modified) (4 diffs)
-
MaKaC/plugins/Collaboration/RecordingRequest/__init__.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/RecordingRequest/options.py (modified) (6 diffs)
-
MaKaC/plugins/Collaboration/__init__.py (modified) (1 diff)
-
MaKaC/plugins/Collaboration/options.py (modified) (1 diff)
-
MaKaC/plugins/EPayment/payPal/webinterface/pages/ePayments.py (modified) (2 diffs)
-
MaKaC/plugins/RoomBooking/default/__init__.py (modified) (1 diff)
-
MaKaC/registration.py (modified) (1 diff)
-
MaKaC/user.py (modified) (3 diffs)
-
MaKaC/webinterface/common/timezones.py (modified) (2 diffs)
-
MaKaC/webinterface/mail.py (modified) (2 diffs)
-
MaKaC/webinterface/pages/admins.py (modified) (7 diffs)
-
MaKaC/webinterface/pages/base.py (modified) (2 diffs)
-
MaKaC/webinterface/pages/help.py (modified) (1 diff)
-
MaKaC/webinterface/pages/roomBooking.py (modified) (3 diffs)
-
MaKaC/webinterface/rh/resetTimezone.py (modified) (2 diffs)
-
MaKaC/webinterface/rh/users.py (modified) (3 diffs)
-
MaKaC/webinterface/tpls/AdminPluginsOptionList.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/AdminsSystem.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/BeautifulHTMLDict.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/BeautifulHTMLList.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/ConfRegistrationFormDisplay.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/Help.tpl (modified) (1 diff)
-
htdocs/js/indico/Legacy/Dialogs.js (modified) (16 diffs)
-
htdocs/js/indico/Management/Timetable.js (modified) (12 diffs)
-
htdocs/js/indico/MaterialEditor/Editor.js (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/authentication/LocalAuthentication.py
r9033fd r420dc1 22 22 from MaKaC.common.general import * 23 23 from MaKaC.authentication.baseAuthentication import Authenthicator, PIdentity 24 24 from MaKaC.i18n import _ 25 25 26 26 27 27 class LocalAuthenticator(Authenthicator): 28 28 idxName = "localIdentities" 29 id = "Local"29 id = _("Local") 30 30 name = "Indico" 31 31 desciption = "Indico Login" -
indico/MaKaC/plugins/Collaboration/CERNMCU/__init__.py
r9033fd r420dc1 21 21 22 22 from MaKaC.plugins import getModules, initModule 23 from MaKaC.i18n import _ 23 24 24 25 pluginType = "Collaboration" 25 pluginName = "CERNMCU"26 pluginDescription = "Create conferences in CERN's MCU"26 pluginName = _("CERNMCU") 27 pluginDescription = _("Create conferences in CERN's MCU") 27 28 28 29 modules = {} -
indico/MaKaC/plugins/Collaboration/CERNMCU/options.py
r9033fd r420dc1 19 19 ## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 from MaKaC.i18n import _ 21 22 22 23 globalOptions = [ 23 24 #collaboration options necessary in all plugins 24 ("subtab", {"description" : "Subtab where CERN MCU will be placed",25 ("subtab", {"description" : _("Subtab where CERN MCU will be placed"), 25 26 "type": str, 26 27 "defaultValue": "Collaboration", … … 28 29 "visible": False, 29 30 "mustReload": True} ), 30 ("allowedOn", {"description" : "Kind of event types (conference, meeting, simple_event) supported",31 ("allowedOn", {"description" : _("Kind of event types (conference, meeting, simple_event) supported"), 31 32 "type": list, 32 33 "defaultValue": ["meeting"], … … 34 35 "visible": False, 35 36 "mustReload": True} ), 36 ("admins", {"description": "CERN MCU admins / responsibles",37 ("admins", {"description": _("CERN MCU admins / responsibles"), 37 38 "type": 'users', 38 39 "defaultValue": [], … … 40 41 "visible": True} ), 41 42 #CERN MCU Options 42 ("MCUAddress", {"description": "MCU URL",43 ("MCUAddress", {"description": _("MCU URL"), 43 44 "type": str, 44 45 "defaultValue": "http://cern-mcu1.cern.ch", 45 46 "editable": True, 46 47 "visible": True}), 47 ("indicoID", {"description": "ID of Indico for the MCU",48 ("indicoID", {"description": _("ID of Indico for the MCU"), 48 49 "type": str, 49 50 "defaultValue": "indico", 50 51 "editable": True, 51 52 "visible": True}), 52 ("indicoPassword", {"description": "Password of Indico for the MCU",53 ("indicoPassword", {"description": _("Password of Indico for the MCU"), 53 54 "type": str, 54 55 "defaultValue": "", 55 56 "editable": True, 56 57 "visible": True}), 57 ("idRange", {"description": "Range of possible IDs (format: min-max)",58 ("idRange", {"description": _("Range of possible IDs (format: min-max)"), 58 59 "type": str, 59 60 "defaultValue": "90000-99999", 60 61 "editable": True, 61 62 "visible": True}), 62 ("MCU_UTC_offset", {"description": "UTC offset of the MCU. Same value as 'UTC offset' in /settings_time.html of the MCU web interface",63 ("MCU_UTC_offset", {"description": _("UTC offset of the MCU. Same value as 'UTC offset' in /settings_time.html of the MCU web interface"), 63 64 "type": int, 64 65 "defaultValue": 0, 65 66 "editable": True, 66 67 "visible": True}), 67 ("CERNGatekeeperPrefix", {"description": "CERN's gatekeeper prefix. Will be used for instructions on how to join the conference.",68 ("CERNGatekeeperPrefix", {"description": _("CERN's gatekeeper prefix. Will be used for instructions on how to join the conference."), 68 69 "type": str, 69 70 "defaultValue": "98", 70 71 "editable": True, 71 72 "visible": True}), 72 ("GDSPrefix", {"description": "GDS prefix. Will be used for instructions on how to join the conference.",73 ("GDSPrefix", {"description": _("GDS prefix. Will be used for instructions on how to join the conference."), 73 74 "type": str, 74 75 "defaultValue": "0041767027098", 75 76 "editable": True, 76 77 "visible": True}), 77 ("MCU_IP", {"description": "MCU's IP. Will be used for instructions on how to join the conference.",78 ("MCU_IP", {"description": _("MCU's IP. Will be used for instructions on how to join the conference."), 78 79 "type": str, 79 80 "defaultValue": "137.138.248.216", 80 81 "editable": True, 81 82 "visible": True}), 82 ("Phone_number", {"description": "Phone number used to join by phone. Will be used for instructions on how to join the conference.",83 ("Phone_number", {"description": _("Phone number used to join by phone. Will be used for instructions on how to join the conference."), 83 84 "type": str, 84 85 "defaultValue": "0041227670270", -
indico/MaKaC/plugins/Collaboration/EVO/__init__.py
r9033fd r420dc1 21 21 22 22 from MaKaC.plugins import getModules, initModule 23 from MaKaC.i18n import _ 23 24 24 25 pluginType = "Collaboration" 25 pluginName = "EVO"26 pluginDescription = "EVO, the Collaboration network"26 pluginName = _("EVO") 27 pluginDescription = _("EVO, the Collaboration network") 27 28 28 29 modules = {} -
indico/MaKaC/plugins/Collaboration/EVO/actions.py
r9033fd r420dc1 22 22 from MaKaC.plugins.base import ActionBase 23 23 from MaKaC.plugins.Collaboration.EVO.common import EVOControlledException, getEVOAnswer, EVOException 24 from MaKaC.i18n import _ 24 25 25 26 pluginActions = [ 26 ("reloadCommunityList", {"buttonText": "Reload Community List",27 ("reloadCommunityList", {"buttonText": _("Reload Community List"), 27 28 "associatedOption": "communityList"} ) 28 29 ] -
indico/MaKaC/plugins/Collaboration/EVO/options.py
r9033fd r420dc1 19 19 ## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 from MaKaC.i18n import _ 21 22 22 23 globalOptions = [ 23 24 #collaboration options necessary in all plugins 24 ("subtab", {"description" : "Subtab where EVO will be placed",25 ("subtab", {"description" : _("Subtab where EVO will be placed"), 25 26 "type": str, 26 27 "defaultValue": "Collaboration", … … 28 29 "visible": False, 29 30 "mustReload": True} ), 30 ("allowedOn", {"description" : "Kind of event types (conference, meeting, simple_event) supported",31 ("allowedOn", {"description" : _("Kind of event types (conference, meeting, simple_event) supported"), 31 32 "type": list, 32 33 "defaultValue": ["meeting"], … … 34 35 "visible": False, 35 36 "mustReload": True} ), 36 ("admins", {"description": "EVO admins / responsibles",37 ("admins", {"description": _("EVO admins / responsibles"), 37 38 "type": 'users', 38 39 "defaultValue": [], … … 40 41 "visible": True} ), 41 42 #EVO Options 42 ("sendMailNotifications", {"description" : "Should mail notifications be sent to EVO admins?",43 ("sendMailNotifications", {"description" : _("Should mail notifications be sent to EVO admins?"), 43 44 "type": bool, 44 45 "defaultValue": False, 45 46 "editable": True, 46 47 "visible": True} ), 47 ("additionalEmails", {"description": "Additional email addresses who will receive notifications (always)",48 ("additionalEmails", {"description": _("Additional email addresses who will receive notifications (always)"), 48 49 "type": list, 49 50 "defaultValue": [], 50 51 "editable": True, 51 52 "visible": True} ), 52 ("indicoUserID" , {"description" : "Indico user ID for EVO (right now: integer of max 8 digits)",53 ("indicoUserID" , {"description" : _("Indico user ID for EVO (right now: integer of max 8 digits)"), 53 54 "type": str, 54 55 "defaultValue": ""} ), 55 ("indicoPassword" , {"description" : "Indico password for EVO (right now: integer of 4 digits)",56 ("indicoPassword" , {"description" : _("Indico password for EVO (right now: integer of 4 digits)"), 56 57 "type": str, 57 58 "defaultValue": ""} ), 58 ("koalaLocation", {"description" : "Koala EVO client location",59 ("koalaLocation", {"description" : _("Koala EVO client location"), 59 60 "type": str, 60 61 "defaultValue": "http://evo.caltech.edu/evoGate/koala.jnlp"} ), 61 ("httpServerLocation", {"description" : "EVO HTTP server location",62 ("httpServerLocation", {"description" : _("EVO HTTP server location"), 62 63 "type": str, 63 64 "defaultValue": "http://vrvs-contrib.caltech.edu/evoGate/Api/"} ), 64 ("expirationTime", {"description" : "Expiration time in minutes",65 ("expirationTime", {"description" : _("Expiration time in minutes"), 65 66 "type": int, 66 67 "defaultValue": 5} ), 67 ("communityList", {"description" : "List of EVO communities",68 ("communityList", {"description" : _("List of EVO communities"), 68 69 "type": dict, 69 70 "defaultValue": {}, 70 71 "editable": False} ), 71 ("verifyMinutes", {"description" : "Minutes to verify the booking before meeting",72 ("verifyMinutes", {"description" : _("Minutes to verify the booking before meeting"), 72 73 "type": list, 73 74 "defaultValue": [10,30]} ), 74 ("allowedMinutes", {"description" : "Temporal margin around Indico event times where we allow EVO meeting creation (minutes)",75 ("allowedMinutes", {"description" : _("Temporal margin around Indico event times where we allow EVO meeting creation (minutes)"), 75 76 "type": int, 76 77 "defaultValue": 60} ), 77 ("allowedPastMinutes", {"description" : "Time that we allow EVO meetings to be created in the past (minutes)",78 ("allowedPastMinutes", {"description" : _("Time that we allow EVO meetings to be created in the past (minutes)"), 78 79 "type": int, 79 80 "defaultValue": 30} ), 80 ("APIMap", {"description" : "Map of actions and URLs",81 ("APIMap", {"description" : _("Map of actions and URLs"), 81 82 "type": dict, 82 83 "defaultValue": { -
indico/MaKaC/plugins/Collaboration/RecordingRequest/__init__.py
r9033fd r420dc1 21 21 22 22 from MaKaC.plugins import getModules, initModule 23 from MaKaC.i18n import _ 23 24 24 25 pluginType = "Collaboration" 25 pluginName = "RecordingRequest"26 pluginDescription = "Recording Request"26 pluginName = _("RecordingRequest") 27 pluginDescription = _("Recording Request") 27 28 28 29 modules = {} -
indico/MaKaC/plugins/Collaboration/RecordingRequest/options.py
r9033fd r420dc1 19 19 ## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 from MaKaC.i18n import _ 21 22 22 23 globalOptions = [ 23 24 #Collaboration options necessary in all plugins 24 ("subtab", {"description" : "Subtab where the Recording Request plugin will be placed",25 ("subtab", {"description" : _("Subtab where the Recording Request plugin will be placed"), 25 26 "type": str, 26 27 "defaultValue": "Recording Request", … … 28 29 "visible": False, 29 30 "mustReload": True}), 30 ("allowedOn", {"description" : "Kind of event types (conference, meeting, simple_event) supported",31 ("allowedOn", {"description" : _("Kind of event types (conference, meeting, simple_event) supported"), 31 32 "type": list, 32 33 "defaultValue": ["conference","simple_event","meeting"], … … 34 35 "visible": False, 35 36 "mustReload": True} ), 36 ("admins", {"description": "Recording Request admins / responsibles",37 ("admins", {"description": _("Recording Request admins / responsibles"), 37 38 "type": 'users', 38 39 "defaultValue": [], … … 40 41 "visible": True} ), 41 42 #RecordingRequest options 42 ("sendMailNotifications", {"description" : "Should mail notifications be sent to responsibles?",43 ("sendMailNotifications", {"description" : _("Should mail notifications be sent to responsibles?"), 43 44 "type": bool, 44 45 "defaultValue": False, 45 46 "editable": True, 46 47 "visible": True} ), 47 ("additionalEmails", {"description": "Additional email addresses who will receive notifications (always)",48 ("additionalEmails", {"description": _("Additional email addresses who will receive notifications (always)"), 48 49 "type": list, 49 50 "defaultValue": [], … … 51 52 "visible": True} ), 52 53 53 ("contributionWarnLimit", {"description" : "Allowed number of loaded contributions without warning",54 ("contributionWarnLimit", {"description" : _("Allowed number of loaded contributions without warning"), 54 55 "type": int, 55 56 "defaultValue": 20, … … 57 58 "visible": True} ), 58 59 59 ("ConsentFormURL", {"description" : "Recording consent form URL",60 ("ConsentFormURL", {"description" : _("Recording consent form URL"), 60 61 "type": str, 61 62 "defaultValue": "", -
indico/MaKaC/plugins/Collaboration/__init__.py
r9033fd r420dc1 19 19 ## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 22 pluginTypeDescription = "Collaboration Tools Plugins"21 from MaKaC.i18n import _ 22 pluginTypeDescription = _("Collaboration Tools Plugins") 23 23 #ignore = True -
indico/MaKaC/plugins/Collaboration/options.py
r9033fd r420dc1 19 19 ## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 from MaKaC.i18n import _ 22 21 23 22 24 globalOptions = [ 23 ("collaborationAdmins", {"description": "Global collaboration admins",25 ("collaborationAdmins", {"description": _("Global collaboration admins"), 24 26 "type": 'users', 25 27 "defaultValue": []} ), 26 ("useHTTPS", {"description": "Use HTTPS in collaboration pages?",28 ("useHTTPS", {"description": _("Use HTTPS in collaboration pages?"), 27 29 "type" : bool, 28 30 "defaultValue": False} ), 29 ("startMinutes", {"description": "Default start time before Indico event start time (minutes)",31 ("startMinutes", {"description": _("Default start time before Indico event start time (minutes)"), 30 32 "type" : int, 31 33 "defaultValue": 30} ), 32 ("pluginsPerEventType", {"description": "Plugins allowed for each event type",34 ("pluginsPerEventType", {"description": _("Plugins allowed for each event type"), 33 35 "type": dict, 34 36 "editable": False, 35 37 "visible": True} ), 36 ("pluginsPerIndex", {"description": "Information about each index seen by collaboration admins",38 ("pluginsPerIndex", {"description": _("Information about each index seen by collaboration admins"), 37 39 "type": list, #a list of IndexInformation objects 38 40 "editable": False, -
indico/MaKaC/plugins/EPayment/payPal/webinterface/pages/ePayments.py
r9033fd r420dc1 27 27 from MaKaC.webinterface import urlHandlers 28 28 import MaKaC 29 from MaKaC.i18n import _ 29 30 30 31 from MaKaC.plugins.EPayment.payPal.webinterface.wcomponents import WTemplated … … 37 38 def _createTabCtrl( self ): 38 39 self._tabCtrl = wcomponents.TabControl() 39 self._tabMain = self._tabCtrl.newTab( "main", "Main", \40 self._tabMain = self._tabCtrl.newTab( "main", _("Main"), \ 40 41 localUrlHandlers.UHConfModifEPaymentPayPal.getURL( self._conf ) ) 41 42 wf = self._rh.getWebFactory() -
indico/MaKaC/plugins/RoomBooking/default/__init__.py
r9033fd r420dc1 23 23 24 24 pluginType = "RoomBooking" 25 pluginName = "default"26 pluginDescription = """This is the default Indico Room Booking plugin. It relies on a ZODB separate backend. It support custom room attributes, and equipment"""25 pluginName = _("default") 26 pluginDescription = _("""This is the default Indico Room Booking plugin. It relies on a ZODB separate backend. It support custom room attributes, and equipment""") 27 27 28 28 modules = {} -
indico/MaKaC/registration.py
rd6189d r420dc1 62 62 self.setCurrency( _("not selected")) 63 63 else: 64 self.activated = groupData.get( "activated", False)64 self.activated = groupData.get(_("activated"), False) 65 65 self.title = groupData.get("name", "") 66 66 self.announcement = groupData.get("announcement", "") -
indico/MaKaC/user.py
r9033fd r420dc1 867 867 return self.status 868 868 except AttributeError: 869 self.status = "activated"869 self.status = _("activated") 870 870 return self.status 871 871 … … 878 878 879 879 def activateAccount( self ): 880 self.setStatus( "activated")880 self.setStatus(_("activated")) 881 881 882 882 def disabledAccount( self ): … … 884 884 885 885 def isActivated( self ): 886 return self.status == "activated"886 return self.status == _("activated") 887 887 888 888 def isDisabled( self ): 889 return self.status == "disabled"889 return self.status == _("disabled") 890 890 891 891 def isNotConfirmed( self ): 892 return self.status == "Not confirmed"892 return self.status == _("Not confirmed") 893 893 894 894 def setId(self, id): -
indico/MaKaC/webinterface/common/timezones.py
r9033fd r420dc1 7 7 from xml.sax.saxutils import quoteattr, escape 8 8 from MaKaC.common.Configuration import Config 9 from MaKaC.i18n import _ 9 10 10 11 … … 54 55 55 56 class DisplayTimezoneRegistry: 56 _items = [ 'MyTimezone','Event Timezone']57 _items = [_('MyTimezone'),_('Event Timezone')] 57 58 58 59 def getList( self ): -
indico/MaKaC/webinterface/mail.py
r9033fd r420dc1 162 162 minfo = HelperMaKaCInfo.getMaKaCInfoInstance() 163 163 name = self._user.getStraightFullName() 164 text = _(""" _("Dear Administrator,164 text = """ Dear Administrator, 165 165 %s has created a new account in Indico. 166 166 167 In order to activate it, please go to this URL "):167 In order to activate it, please go to this URL: 168 168 <%s> 169 """ )% (name,urlHandlers.UHUserDetails.getURL( self._user ))169 """% (name,urlHandlers.UHUserDetails.getURL( self._user )) 170 170 maildata = { "fromAddr": "Indico Mailer<%s>" % minfo.getSupportEmail(), "toList": minfo.getAdminEmails(), "subject": _("[Indico] New account creation request"), "body": text } 171 171 GenericMailer.send(GenericNotification(maildata)) … … 179 179 minfo = HelperMaKaCInfo.getMaKaCInfoInstance() 180 180 name = self._user.getStraightFullName() 181 text = _("""Dear Administrator,181 text = """Dear Administrator, 182 182 %s has created a new account in Indico. 183 183 <%s> 184 """ )% (name,urlHandlers.UHUserDetails.getURL( self._user ))184 """ % (name,urlHandlers.UHUserDetails.getURL( self._user )) 185 185 maildata = { "fromAddr": "Indico Mailer<%s>" % minfo.getSupportEmail(), "toList": minfo.getAdminEmails(), "subject": _("[Indico] New account creation"), "body": text } 186 186 GenericMailer.send(GenericNotification(maildata)) -
indico/MaKaC/webinterface/pages/admins.py
r9033fd r420dc1 417 417 self._tabCtrl = wcomponents.TabControl() 418 418 419 self._tabs["Main"] = self._tabCtrl.newTab("Main", "Main", urlHandlers.UHAdminPlugins.getURL())419 self._tabs["Main"] = self._tabCtrl.newTab("Main", _("Main"), urlHandlers.UHAdminPlugins.getURL()) 420 420 421 421 pluginTypes = PluginsHolder().getPluginTypes(sorted = True) … … 475 475 self._tabCtrl = wcomponents.TabControl() 476 476 477 self._subTabWebcast = self._tabCtrl.newTab( "webcast", "Webcast", \477 self._subTabWebcast = self._tabCtrl.newTab( "webcast", _("Webcast"), \ 478 478 urlHandlers.UHWebcast.getURL() ) 479 self._subTabWebcast_Live = self._subTabWebcast.newSubTab( "live", "Live", \479 self._subTabWebcast_Live = self._subTabWebcast.newSubTab( "live", _("Live"), \ 480 480 urlHandlers.UHWebcast.getURL() ) 481 self._subTabWebcast_Archive = self._subTabWebcast.newSubTab( "archive", "Archive", \481 self._subTabWebcast_Archive = self._subTabWebcast.newSubTab( "archive", _("Archive"), \ 482 482 urlHandlers.UHWebcastArchive.getURL() ) 483 self._subTabWebcast_Setup = self._subTabWebcast.newSubTab( "setup", "Setup", \483 self._subTabWebcast_Setup = self._subTabWebcast.newSubTab( "setup", _("Setup"), \ 484 484 urlHandlers.UHWebcastSetup.getURL() ) 485 self._subTabRecording = self._tabCtrl.newTab( "recording", "Recording", \485 self._subTabRecording = self._tabCtrl.newTab( "recording", _("Recording"), \ 486 486 urlHandlers.UHRecording.getURL() ) 487 self._subTabOAIPrivateConfig = self._tabCtrl.newTab( "oai-private", "OAI Private Gateway", \487 self._subTabOAIPrivateConfig = self._tabCtrl.newTab( "oai-private", _("OAI Private Gateway"), \ 488 488 urlHandlers.UHOAIPrivateConfig.getURL() ) 489 489 … … 1363 1363 changePassword = "" 1364 1364 if item.getAuthenticatorTag() != "Local" : 1365 changePassword = "External account"1365 changePassword = _("External account") 1366 1366 else : 1367 1367 changeURL = urlHandlers.UHUserIdentityChangePassword.getURL() … … 1452 1452 vars["activeButton"] = "" 1453 1453 if self._currentUser in al.getList() and not self._avatar.isActivated(): 1454 vars["activeButton"] = """<form action="%s" method="POST"><td bgcolor="white" width="100%%"\1454 vars["activeButton"] = _("""<form action="%s" method="POST"><td bgcolor="white" width="100%%"\ 1455 1455 valign="top" align="left"> <input type="submit" class="btn" \ 1456 value=" activate the account"></td></form>"""%vars["activeURL"]1456 value=" _("activate the account") "></td></form>""")%vars["activeURL"] 1457 1457 vars["categoryManager"] = "" 1458 1458 categs = u.getLinkTo("category","manager") … … 1668 1668 def _getTabContent(self, params): 1669 1669 1670 identity = self._avatar.getIdentityById(self._params["identityId"], "Local")1670 identity = self._avatar.getIdentityById(self._params["identityId"],_("Local")) 1671 1671 c = WIdentityModification( self._avatar, identity ) 1672 1672 postURL = urlHandlers.UHUserIdentityChangePassword.getURL() … … 2526 2526 self._tabCtrl = wcomponents.TabControl() 2527 2527 2528 self._subTabConfiguration = self._tabCtrl.newTab( "configuration", "Configuration", \2528 self._subTabConfiguration = self._tabCtrl.newTab( "configuration", _("Configuration"), \ 2529 2529 urlHandlers.UHAdminsSystem.getURL() ) 2530 self._subTabTaskManager = self._tabCtrl.newTab( "tasks", "Task Manager", \2530 self._subTabTaskManager = self._tabCtrl.newTab( "tasks", _("Task Manager"), \ 2531 2531 urlHandlers.UHTaskManager.getURL() ) 2532 self._subTabMaintenance = self._tabCtrl.newTab( "maintenance", "Maintenance", \2532 self._subTabMaintenance = self._tabCtrl.newTab( "maintenance", _("Maintenance"), \ 2533 2533 urlHandlers.UHMaintenance.getURL() ) 2534 2534 … … 2719 2719 if type == Alarm: 2720 2720 taskList.sort(lambda x,y: cmp(x.getStartDate(),y.getStartDate())) 2721 html.append( """<tr><td valign="top"><b>Alarm</b></td></tr>""")2722 html.append( """<tr><td><table><tr>2721 html.append(_("""<tr><td valign="top"><b>_("Alarm")</b></td></tr>""")) 2722 html.append(_("""<tr><td><table><tr> 2723 2723 <td></td> 2724 <td><u> Id</u></td>2725 <td><u> Conference</u></td>2726 <td><u> Date</u></td></tr>""")2724 <td><u>_("Id")</u></td> 2725 <td><u>_("Conference")</u></td> 2726 <td><u>_("Date")</u></td></tr>""")) 2727 2727 for task in taskList: 2728 2728 delete = urlHandlers.UHRemoveTask.getURL() -
indico/MaKaC/webinterface/pages/base.py
r9033fd r420dc1 94 94 from MaKaC.webinterface.rh.base import RHModificationBaseProtected 95 95 from MaKaC.webinterface.rh.admins import RHAdminBase 96 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingBase 97 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingSearch4Rooms 98 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingSearch4Bookings 99 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingBookingList 100 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingRoomDetails 101 from MaKaC.webinterface.rh.roomBooking import RHRoomBookingAdminBase 102 from MaKaC.webinterface.rh.calendar import RHCalendar 103 from MaKaC.webinterface.rh.categoryDisplay import RHCategoryMap 104 from MaKaC.webinterface.rh.categoryDisplay import RHCategoryStatistics 105 from MaKaC.webinterface.rh.newsDisplay import RHNews 106 from MaKaC.webinterface.rh.categoryDisplay import RHCategOverviewDisplay 96 107 97 108 baseurl = self._getBaseURL() … … 101 112 baseurl = baseurl.replace("http://","https://") 102 113 baseurl = urlHandlers.setSSLPort( baseurl ) 103 114 104 115 area="" 105 116 if isinstance(self._rh, RHModificationBaseProtected): 106 117 area=_(""" - _("Management area")""") 107 elif isinstance(self._rh, RHAdminBase) :118 elif isinstance(self._rh, RHAdminBase) or isinstance(self._rh, RHRoomBookingAdminBase): 108 119 area=_(""" - _("Administrator area")""") 120 121 elif isinstance(self._rh, RHRoomBookingBase): 122 if isinstance(self._rh, RHRoomBookingSearch4Rooms): 123 area=_(""" - _("Room Booking - Search for Rooms")""") 124 elif isinstance(self._rh, RHRoomBookingSearch4Bookings): 125 area=_(""" - _("Room Booking - Search Bookings")""") 126 elif isinstance( self._rh, RHRoomBookingRoomDetails ): 127 area=_(""" - _("Room Booking - Room Details")""") 128 elif isinstance(self._rh, RHRoomBookingBookingList): 129 if self._rh._today: 130 area=_(""" - _("Room Booking - Calendar")""") 131 elif self._rh._onlyMy and self._rh._onlyPrebookings: 132 area=_(""" - _("Room Booking - My PRE-bookings")""") 133 elif self._rh._onlyMy: 134 area=_(""" - _("Room Booking - My bookings")""") 135 elif self._rh._ofMyRooms and self._rh._onlyPrebookings: 136 area=_(""" - _("Room Booking - PRE-bookings in my rooms")""") 137 elif self._rh._today and self._rh._ofMyRooms: 138 area=_(""" - _("Room Booking - Bookings in my rooms") """) 139 140 elif isinstance(self._rh, RHCalendar): 141 area=_(""" - _("Calendar Overview")""") 142 elif isinstance(self._rh, RHCategoryMap): 143 area=_(""" - _("Category Map")""") 144 elif isinstance(self._rh, RHCategoryStatistics): 145 area=_(""" - _("Category Statistics")""") 146 elif isinstance(self._rh, RHNews): 147 area=_(""" - _("News")""") 148 elif isinstance(self._rh, RHCategOverviewDisplay): 149 area=_(""" - _("Events Display")""") 150 151 109 152 110 153 return wcomponents.WHTMLHeader().getHTML({ -
indico/MaKaC/webinterface/pages/help.py
r9033fd r420dc1 27 27 class WPHelp(WPMainBase): 28 28 def _getNavigationDrawer(self): 29 return wcomponents.WSimpleNavigationDrawer( "Help", urlHandlers.UHConferenceHelp.getURL )29 return wcomponents.WSimpleNavigationDrawer(_("Help"), urlHandlers.UHConferenceHelp.getURL ) 30 30 31 31 def _getBody(self, params): -
indico/MaKaC/webinterface/pages/roomBooking.py
r9033fd r420dc1 26 26 from MaKaC.rb_location import CrossLocationDB 27 27 import MaKaC.common.info as info 28 from MaKaC.webinterface.rh.base import RH 28 29 29 30 #import MaKaC.common.info as info … … 193 194 return wc.getHTML( params ) 194 195 195 class WPRoomBookingSearch4Users( WPRoomBookingBase ):196 class WPRoomBookingSearch4Users( WPRoomBookingBase, RH ): 196 197 def __init__( self, rh ): 197 198 self._rh = rh … … 203 204 forceWithoutExtAuth = self._rh._forceWithoutExtAuth, 204 205 multi = False ) 205 params["addURL"] = urlHandlers.UHRoomBookingRoomForm.getURL() 206 return wc.getHTML( params ) 206 params["addURL"] = urlHandlers.UHRoomBookingRoomForm.getURL(None) 207 url = urlHandlers.UHRoomBookingRoomForm.getURL( None ) 208 return wc.getHTML( self._redirect( url ), params ) 207 209 208 210 # 2. List of ... -
indico/MaKaC/webinterface/rh/resetTimezone.py
r9033fd r420dc1 4 4 from mod_python import util 5 5 import MaKaC.common.info as info 6 from MaKaC.i18n import _ 6 7 7 8 class RHResetTZ(base.RH): … … 25 26 user = sess.getUser() 26 27 if tz == "LOCAL": 27 user.setDisplayTZMode( "Event Timezone")28 user.setDisplayTZMode(_("Event Timezone")) 28 29 else: 29 30 user.setTimezone(tz) 30 user.setDisplayTZMode( "MyTimezone")31 user.setDisplayTZMode(_("MyTimezone")) 31 32 except: 32 33 pass -
indico/MaKaC/webinterface/rh/users.py
r9033fd r420dc1 180 180 _UserUtils.setUserData( a, self._params ) 181 181 li = user.LoginInfo( self._params["login"], self._params["password"] ) 182 id = ih.createIdentity( li, a, "Local")182 id = ih.createIdentity( li, a, _("Local") ) 183 183 ih.add( id ) 184 184 DBMgr.getInstance().commit() … … 194 194 ah.add(a) 195 195 li = user.LoginInfo( self._params["login"], self._params["password"] ) 196 id = ih.createIdentity( li, a, "Local")196 id = ih.createIdentity( li, a, _("Local") ) 197 197 ih.add( id ) 198 198 DBMgr.getInstance().commit() … … 599 599 p = adminPages.WPIdentityChangePassword( self, self._avatar, self._params ) 600 600 return p.display() 601 identity = self._avatar.getIdentityById(self._params["login"], "Local")601 identity = self._avatar.getIdentityById(self._params["login"],_("Local")) 602 602 identity.setPassword(self._params["password"]) 603 603 p = adminPages.WPUserDetails( self, self._avatar ) -
indico/MaKaC/webinterface/tpls/AdminPluginsOptionList.tpl
r9033fd r420dc1 154 154 <tr> 155 155 <td colspan="2" style="text-align: right;"> 156 <input type="submit" name="Save" value=" Save" />156 <input type="submit" name="Save" value="<%= _("Save") %>" /> 157 157 </td> 158 158 </tr> -
indico/MaKaC/webinterface/tpls/AdminsSystem.tpl
r9033fd r420dc1 12 12 <td rowspan="4" valign="top"> 13 13 <form action="%(ModifURL)s" method="POST"> 14 <input type="submit" class="btn" value=" modify">14 <input type="submit" class="btn" value="<%= _("modify")%>"> 15 15 </form> 16 16 </td> -
indico/MaKaC/webinterface/tpls/BeautifulHTMLDict.tpl
r9033fd r420dc1 10 10 <% end %> 11 11 <% else: %> 12 (Empty) 12 <%= _("(Empty)")%> 13 13 <% end %> 14 14 </div> -
indico/MaKaC/webinterface/tpls/BeautifulHTMLList.tpl
r9033fd r420dc1 10 10 <% end %> 11 11 <% else: %> 12 (Empty) 12 <%= _("(Empty)")%> 13 13 <% end %> 14 14 </div> -
indico/MaKaC/webinterface/tpls/ConfRegistrationFormDisplay.tpl
r9033fd r420dc1 15 15 <tr> 16 16 <td colspan="2" align="left"> 17 <br><b><%= _(""" _("Please, note that fields marked with") <font color="red">*</font> _("are mandatory")""")%></b><br>17 <br><b><%= _("""Please, note that fields marked with <font color="red">*</font> are mandatory""")%></b><br> 18 18 </td> 19 19 </tr> -
indico/MaKaC/webinterface/tpls/Help.tpl
r9033fd r420dc1 90 90 91 91 <br/> 92 <p><em> You can find more user guides, in different languages, provided by external collaborators<a href="https://espace.cern.ch/indico-soft/users/default.aspx">here</a>.</em></p>92 <p><em><%= _("You can find more user guides, in different languages, provided by external collaborators") %> <a href="https://espace.cern.ch/indico-soft/users/default.aspx">here</a>.</em></p> 93 93 94 94 </div> -
indico/htdocs/js/indico/Legacy/Dialogs.js
rf534e7 r420dc1 68 68 69 69 var popup = new ExclusivePopup( 70 'Add Break',70 $T('Add Break'), 71 71 function() { 72 72 popup.close(); … … 76 76 var self = this; 77 77 78 var addButton = Html.button({}, "Add");79 var cancelButton = Html.button({}, "Cancel");78 var addButton = Html.button({}, $T("Add")); 79 var cancelButton = Html.button({}, $T("Cancel")); 80 80 cancelButton.dom.style.marginLeft = pixels(10); 81 81 … … 99 99 return self.ExclusivePopup.prototype.draw.call( 100 100 this, 101 Widget.block([IndicoUtil.createFormFromMap([[ 'Title', $B(Html.edit({101 Widget.block([IndicoUtil.createFormFromMap([[$T('Title'), $B(Html.edit({ 102 102 style: { 103 103 width: '300px' 104 104 } 105 }), info.accessor('title'))], [ 'Description', $B(Html.textarea({105 }), info.accessor('title'))], [$T('Description'), $B(Html.textarea({ 106 106 cols: 40, 107 107 rows: 2 108 }), info.accessor('description'))], [ 'Place', roomEditor.draw()], ['Date/Time', dateTimeField.element]]),108 }), info.accessor('description'))], [$T('Place'), roomEditor.draw()], [$T('Date/Time'), dateTimeField.element]]), 109 109 Html.div('dialogButtons', 110 110 [addButton, cancelButton])])); … … 171 171 }; 172 172 173 var popup = new ExclusivePopup( 'Add Session');173 var popup = new ExclusivePopup($T('Add Session')); 174 174 175 175 popup.draw = function(){ 176 176 var self = this; 177 var addButton = Html.button({}, "Add");178 var cancelButton = Html.button({}, "Cancel");177 var addButton = Html.button({},$T("Add")); 178 var cancelButton = Html.button({},$T("Cancel")); 179 179 cancelButton.dom.style.marginLeft = pixels(10); 180 180 … … 203 203 $B(info.accessor('conveners'), convListWidget.getUsers()); 204 204 205 var sesType = new RadioFieldWidget({'standard': 'Standard','poster':'Poster'},['standard','poster'],'nobulletsListInline');205 var sesType = new RadioFieldWidget({'standard':$T('Standard'),'poster':$T('Poster')},['standard','poster'],'nobulletsListInline'); 206 206 sesType.select('standard'); 207 207 $B(info.accessor('sessionType'), sesType.state); … … 210 210 this, 211 211 Widget.block([IndicoUtil.createFormFromMap([ 212 [ 'Title', $B(parameterManager.add(Html.edit({style: {width: '300px'}}), 'text', false), info.accessor('title'))],213 [ 'Description', $B(Html.textarea({cols: 40, rows: 2}), info.accessor('description'))],214 [ 'Place', Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())],215 [ 'Start Date/Time', $B(parameterManager.add(IndicoUI.Widgets.Generic.dateField(true), 'datetime', false), info.accessor('startDateTime')) ],216 [ 'End Date/Time', $B(parameterManager.add(IndicoUI.Widgets.Generic.dateField(true), 'datetime', false), info.accessor('endDateTime')) ],217 [ 'Convener(s)', convListWidget.draw()],218 [ 'Session type', sesType.draw()]212 [$T('Title'), $B(parameterManager.add(Html.edit({style: {width: '300px'}}), 'text', false), info.accessor('title'))], 213 [$T('Description'), $B(Html.textarea({cols: 40, rows: 2}), info.accessor('description'))], 214 [$T('Place'), Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], 215 [$T('Start Date/Time'), $B(parameterManager.add(IndicoUI.Widgets.Generic.dateField(true), 'datetime', false), info.accessor('startDateTime')) ], 216 [$T('End Date/Time'), $B(parameterManager.add(IndicoUI.Widgets.Generic.dateField(true), 'datetime', false), info.accessor('endDateTime')) ], 217 [$T('Convener(s)'), convListWidget.draw()], 218 [$T('Session type'), sesType.draw()] 219 219 ]), Html.div('dialogButtons',[addButton, cancelButton]) 220 ]));220 ])); 221 221 }; 222 222 popup.open(); … … 294 294 295 295 var popup = new ExclusivePopup( 296 'Add Session Slot',296 $T('Add Session Slot'), 297 297 function() { 298 298 popup.close(); … … 301 301 popup.draw = function() { 302 302 var self = this; 303 var addButton = Html.button({}, "Add");304 var cancelButton = Html.button({}, "Cancel");303 var addButton = Html.button({}, $T("Add")); 304 var cancelButton = Html.button({}, $T("Cancel")); 305 305 cancelButton.dom.style.marginLeft = pixels(10); 306 306 … … 332 332 return this.ExclusivePopup.prototype.draw.call( 333 333 this, 334 Widget.block([IndicoUtil.createFormFromMap([[ 'Title',334 Widget.block([IndicoUtil.createFormFromMap([[$T('Title'), 335 335 $B(Html.edit({ 336 336 style: { width: '300px'} 337 337 }), info.accessor('title'))], 338 [ 'Place', Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], ['Date/Time', dateTimeField.element],339 [ 'Convener(s)', convListWidget.draw()]]),338 [$T('Place'), Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], [$T('Date/Time'), dateTimeField.element], 339 [$T('Convener(s)'), convListWidget.draw()]]), 340 340 Html.div('dialogButtons', 341 341 [addButton, cancelButton])] … … 396 396 397 397 var popup = new ExclusivePopup( 398 'Add Subcontribution',398 $T('Add Subcontribution'), 399 399 function() { 400 400 popup.close(); … … 404 404 var self = this; 405 405 406 var addButton = Html.button({}, "Add");407 var cancelButton = Html.button({}, "Cancel");406 var addButton = Html.button({},$T("Add")); 407 var cancelButton = Html.button({},$T("Cancel")); 408 408 cancelButton.dom.style.marginLeft = pixels(10); 409 409 … … 434 434 this, 435 435 Widget.block([IndicoUtil.createFormFromMap([ 436 [ 'Title', $B(parameterManager.add(Html.edit({style: {width: '300px'}}), 'text', false), info.accessor('title'))],437 [ 'Description', $B(Html.textarea({cols: 40, rows: 2}), info.accessor('description'))],438 [ 'Keywords', keywordField.element],439 [ 'Duration (min) ', $B(parameterManager.add(IndicoUI.Widgets.Generic.durationField(), 'int', false), info.accessor('duration')) ],440 [ 'Presenter(s)', presListWidget.draw()]436 [$T('Title'), $B(parameterManager.add(Html.edit({style: {width: '300px'}}), 'text', false), info.accessor('title'))], 437 [$T('Description'), $B(Html.textarea({cols: 40, rows: 2}), info.accessor('description'))], 438 [$T('Keywords'), keywordField.element], 439 [$T('Duration (min) '), $B(parameterManager.add(IndicoUI.Widgets.Generic.durationField(), 'int', false), info.accessor('duration')) ], 440 [$T('Presenter(s)'), presListWidget.draw()] 441 441 ]), 442 442 Html.div({style:{marginTop: pixels(10), textAlign: 'center', background: '#DDDDDD', padding: pixels(2)}}, … … 524 524 525 525 var popup = new ExclusivePopup( 526 'My minutes',526 $T('My minutes'), 527 527 function() { 528 528 popup.close(); … … 533 533 var content = Html.div({}, rtWidget.draw()); 534 534 535 saveButton = Widget.button(command(curry(commitChanges, function(){self.close();}), "Save"));535 saveButton = Widget.button(command(curry(commitChanges, function(){self.close();}), $T("Save"))); 536 536 saveButton.dom.disabled = !compileMinutes; 537 537 … … 549 549 commitChanges(suicideHook, closeMinutes); 550 550 }; 551 552 saveCloseButton = Widget.button(command(curry(commitChangesAndClose, function(){self.close();}), "Save and close")); 551 saveCloseButton = Widget.button(command(curry(commitChangesAndClose, function(){self.close()}), $T("Save and close"))); 553 552 saveCloseButton.dom.disabled = !compileMinutes; 554 553 … … 561 560 saveButton, 562 561 saveCloseButton, 563 Widget.button(command(closeMinutes, "Close")))));562 Widget.button(command(closeMinutes, $T("Close")))))); 564 563 }; 565 564 -
indico/htdocs/js/indico/Management/Timetable.js
r9033fd r420dc1 156 156 Html.div("UnscheduledContribListDiv", 157 157 unscheduledList.draw()), 158 this.dayList.length==1?'':[ "Add to ", daySelect],158 this.dayList.length==1?'':[$T("Add to "), daySelect], 159 159 Widget.button(command(function() { 160 160 self.addExisting(unscheduledList.getList(), 161 161 daySelect.get()); 162 }, "Add selected"))162 }, $T("Add selected"))) 163 163 ))); 164 164 … … 258 258 self.favorites, 259 259 true, true, true, 260 userListNothing, userListNothing, userListNothing, false, {"presenter-grant-submission": [ "submission rights", true]},260 userListNothing, userListNothing, userListNothing, false, {"presenter-grant-submission": [$T("submission rights"), true]}, 261 261 self.args.conference 262 262 ); … … 267 267 $B(info.accessor('dateTime'), self.dateTimeField.accessor.accessor('dateTime')); 268 268 $B(info.accessor('duration'), self.dateTimeField.accessor.accessor('duration')); 269 datecomponent = [ 'Date/Time', self.dateTimeField.element];269 datecomponent = [$T('Date/Time'), self.dateTimeField.element]; 270 270 }else{ 271 271 $B(info.accessor('duration'), self.dateTimeField); 272 datecomponent = [ 'Duration', self.dateTimeField]272 datecomponent = [$T('Duration'), self.dateTimeField] 273 273 } 274 274 … … 276 276 [ 277 277 [ 278 'Title',278 $T('Title'), 279 279 $B(Html.edit({}), 280 280 info.accessor('title')) 281 281 ], 282 [ 'Place', Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())],282 [$T('Place'), Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], 283 283 datecomponent, 284 [ 'Presenter(s)', presListWidget.draw()]284 [$T('Presenter(s)'), presListWidget.draw()] 285 285 ]); 286 286 … … 295 295 if (!this.isConference) { 296 296 // if it's a meeting, just add a description 297 fields = [[ 'Description',$B(Html.textarea({cols: 50,rows: 2}),297 fields = [[$T('Description'),$B(Html.textarea({cols: 50,rows: 2}), 298 298 info.accessor('field_content'))]]; 299 299 } else { … … 306 306 } 307 307 308 fields.push([ 'Keywords', keywordField.element]);308 fields.push([$T('Keywords'), keywordField.element]); 309 309 $B(info.accessor('keywords'), keywordField.accessor); 310 310 … … 321 321 self.favorites, 322 322 true, true, true, 323 userListNothing, userListNothing, userListNothing, false, {"author-grant-submission": [ "submission rights", true]},323 userListNothing, userListNothing, userListNothing, false, {"author-grant-submission": [$T("submission rights"), true]}, 324 324 this.args.conference); 325 325 … … 330 330 self.favorites, 331 331 true, true, true, 332 userListNothing, userListNothing, userListNothing, false, {"coauthor-grant-submission": [ "submission rights", true]},332 userListNothing, userListNothing, userListNothing, false, {"coauthor-grant-submission": [$T("submission rights"), true]}, 333 333 this.args.conference); 334 334 … … 339 339 return IndicoUtil.createFormFromMap( 340 340 [ 341 [ 'Author(s)', authorListWidget.draw()],342 [ 'Co-author(s)', coauthorListWidget.draw()]341 [$T('Author(s)'), authorListWidget.draw()], 342 [$T('Co-author(s)'), coauthorListWidget.draw()] 343 343 ]); 344 344 }, … … 368 368 }; 369 369 370 var addButton = Html.button({}, "Add");371 var cancelButton = Html.button({}, "Cancel");370 var addButton = Html.button({},$T("Add")); 371 var cancelButton = Html.button({}, $T("Cancel")); 372 372 373 373 cancelButton.observeClick(function(){ … … 382 382 cancelButton.dom.style.marginLeft = pixels(10); 383 383 384 var tabs = [[ "Basic", self._drawMainTab(info)]];384 var tabs = [[$T("Basic"), self._drawMainTab(info)]]; 385 385 386 386 if (this.isConference) { 387 tabs.push([ "Authors", self._drawAuthorsTab(info)]);387 tabs.push([$T("Authors"), self._drawAuthorsTab(info)]); 388 388 } 389 389 390 tabs.push([ "Advanced", self._drawAdvancedTab(info)]);390 tabs.push([$T("Advanced"), self._drawAdvancedTab(info)]); 391 391 var tabWidget = new TabWidget(tabs, 600, 400); 392 392 … … 430 430 }); 431 431 432 this.ServiceDialog(Indico.Urls.JsonRpcService, method, args, "Add Contribution",432 this.ServiceDialog(Indico.Urls.JsonRpcService, method, args, $T("Add Contribution"), 433 433 function() { 434 434 self.close(); -
indico/htdocs/js/indico/MaterialEditor/Editor.js
rfe6889 r420dc1 38 38 return Html.option({'value': value}, value); 39 39 }), 40 " or ", 40 " ", 41 $T("or"), 42 " ", 41 43 Widget.link(command(function() { 42 44 chooser.set('write'); 43 }, "other")));45 }, $T("other")))); 44 46 }, 45 47 … … 49 51 pm.add(text); 50 52 return Html.div({}, text, 51 " or ", 53 " ", 54 $T("or"), 55 " ", 52 56 Widget.link(command(function() { 53 57 chooser.set('select'); 54 }, "select from list")));58 }, $T("select from list")))); 55 59 } 56 60 })); … … 83 87 IndicoUtil.createFormFromMap( 84 88 [ 85 [ 'Type', selector],86 [ 'File', file],87 [ 'Description', description],88 [ 'Convert to PDF', convert]89 [$T('Type'), selector], 90 [$T('File'), file], 91 [$T('Description'), description], 92 [$T('Convert to PDF'), convert] 89 93 ]), 90 94 uploadType, … … 97 101 self.form.dom.submit(); 98 102 } 99 }, "Upload"))));103 }, $T("Upload"))))); 100 104 }, 101 105 … … 119 123 IndicoUtil.createFormFromMap( 120 124 [ 121 [ 'Type',selector],122 [ 'URL', url],123 [ 'Description', description]125 [$T('Type'),selector], 126 [$T('URL'), url], 127 [$T('Description'), description] 124 128 ]), 125 129 uploadType, … … 132 136 self.form.dom.submit(); 133 137 } 134 }, "Upload"))));138 }, $T("Upload"))))); 135 139 }, 136 140 … … 178 182 179 183 draw: function() { 180 this.tabWidget = new TabWidget([[ 'Upload File', this._drawFileUpload()],181 [ 'Add Link', this._drawLinkUpload()]],184 this.tabWidget = new TabWidget([[$T('Upload File'), this._drawFileUpload()], 185 [$T('Add Link'), this._drawLinkUpload()]], 182 186 400, 200); 183 187 … … 197 201 // this.args.materialId = material; 198 202 199 this.ExclusivePopup( "Upload Material",203 this.ExclusivePopup($T("Upload Material"), 200 204 function() { 201 205 self.close(); … … 238 242 var statusSelection = Widget.select( 239 243 $L({ 240 0:(self.material.get('protectedOwner')? 'Private':'Public')+' (from parent)',241 1: 'Private (by itself)',242 '-1': 'Public (by itself)'244 0:(self.material.get('protectedOwner')?$T('Private'):$T('Public'))+' '+$T('(from parent)'), 245 1:$T('Private (by itself)'), 246 '-1':$T('Public (by itself)') 243 247 }) 244 248 ); … … 255 259 var visibility = Html.select( 256 260 {}, 257 Html.option({value: 0}, 'Visible for unauth. users'),258 Html.option({value: 1}, 'Hidden from unauth. users')261 Html.option({value: 0},$T('Visible for unauth. users')), 262 Html.option({value: 1},$T('Hidden from unauth. users')) 259 263 ); 260 264 … … 271 275 {style:{padding:pixels(2)}}, 272 276 Html.div({}, 273 Html.label({}, 'Allowed users'),277 Html.label({}, $T('Allowed users')), 274 278 self.userList.draw()), 275 279 Html.div({style:{marginTop: pixels(4)}}, 276 Html.label({}, 'Visibility: '),280 Html.label({}, $T('Visibility: ')), 277 281 $B(visibility, 278 282 self.newMaterial.accessor('hidden'))), 279 283 Html.div({}, 280 Html.label({}, 'Access Key: '),284 Html.label({}, $T('Access Key: ')), 281 285 $B(Html.input('password',{}), 282 286 self.newMaterial.accessor('accessKey'))) … … 287 291 {style: {marginTop: pixels(5)}}, 288 292 Html.div({}, 289 Html.label({}, "Status: "),293 Html.label({},$T("Status: ")), 290 294 $B(statusSelection, 291 295 self.newMaterial.accessor('protection')) … … 300 304 Widget.button(command(function() { 301 305 self._saveCategory(); 302 }, 'Save')),306 },$T('Save'))), 303 307 Widget.button(command(function() { 304 308 self.close(); 305 }, 'Cancel'))309 }, $T('Cancel'))) 306 310 ]); 307 311 … … 310 314 311 315 var tabControl = new TabWidget([ 312 [ "Information", Widget.block([titleDiv,descDiv])],313 [ "Access Control", protectionDiv]], 300,200, 0);316 [$T("Information"), Widget.block([titleDiv,descDiv])], 317 [$T("Access Control") , protectionDiv]], 300,200, 0); 314 318 315 319 return this.ExclusivePopup.prototype.draw.call( … … 373 377 self.newResource = clone(this.resource); 374 378 var name = Html.input('text',{}); 375 var nameDiv = Widget.block([Html.label({}, "Name: "),name]);379 var nameDiv = Widget.block([Html.label({},$T("Name: ")),name]); 376 380 var description = Html.textarea({name:'description',style: {width: '200px'}}); 377 var descDiv = Widget.block([Widget.block(Html.label({}, "Description: ")),description]);381 var descDiv = Widget.block([Widget.block(Html.label({},$T("Description: "))),description]); 378 382 var url = Html.input('text',{name:'url'}); 379 var urlDiv = Widget.block([Html.label({}, "URL: "),url]);383 var urlDiv = Widget.block([Html.label({},$T("URL: ")),url]); 380 384 var buttonDiv = Widget.block([ 381 385 Widget.button(command(function() { 382 386 self._saveResource(); 383 }, 'Save')),387 }, $T('Save'))), 384 388 Widget.button(command(function() { 385 389 self.close(); 386 }, 'Cancel'))390 }, $T('Cancel'))) 387 391 ]); 388 392 … … 401 405 var statusSelection = Widget.select( 402 406 $L({ 403 0:(self.resource.get('protectedOwner')? 'Private':'Public')+' (from parent)',404 1: 'Private (by itself)',405 '-1': 'Public (by itself)'407 0:(self.resource.get('protectedOwner')?$T('Private'):$T('Public'))+' '+$T('(from parent)'), 408 1:$T('Private (by itself)'), 409 '-1':$T('Public (by itself)') 406 410 }) 407 411 ); … … 419 423 {style:{padding:pixels(2)}}, 420 424 Html.div({}, 421 Html.label({}, 'Allowed users'),425 Html.label({}, $T('Allowed users')), 422 426 self.userList.draw())); 423 427 … … 425 429 {style: {marginTop: pixels(5)}}, 426 430 Html.div({}, 427 Html.label({}, "Status: "),431 Html.label({},$T("Status: ")), 428 432 $B(statusSelection, 429 433 self.newResource.accessor('protection'))), privateInfoDiv); 430 434 431 435 var tabControl = new TabWidget([ 432 [ "Information", Widget.block([nameDiv,this.resource.type=='stored'?[]:urlDiv,descDiv])],433 [ "Access Control", protectionDiv]], 300,200, 0);434 tabControl.options = $L([ "Information", "Access Control"]);435 tabControl.selected.set( "Information");436 [$T("Information"), Widget.block([nameDiv,this.resource.type=='stored'?[]:urlDiv,descDiv])], 437 [$T("Access Control") , protectionDiv]], 300,200, 0); 438 tabControl.options = $L([$T("Information"), $T("Access Control")]); 439 tabControl.selected.set($T("Information")); 436 440 437 441 return this.ExclusivePopup.prototype.draw.call( … … 507 511 var modifyDisabledHelpPopup = function(event) { 508 512 IndicoUI.Widgets.Generic.tooltip(this, event, 509 'Modifying this material is currently not possible because it has been already submitted.');513 $T('Modifying this material is currently not possible because it has been already submitted.')); 510 514 }; 511 515 … … 523 527 524 528 var deleteResource = function() { 525 if (confirm( "Are you sure you want to delete"+resource.get('name')+"?")) {529 if (confirm($T("Are you sure you want to delete")+" "+resource.get('name')+"?")) { 526 530 var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 527 531 jsonRpc(Indico.Urls.JsonRpcService, … … 808 812 } 809 813 }); 810 }, "Add Material"));814 }, $T("Add Material"))); 811 815 812 816 return Html.div( … … 863 867 self.close(); 864 868 window.location.reload(true); 865 }, "Close"))));869 }, $T("Close"))))); 866 870 } 867 871 }, … … 887 891 }, 888 892 editMaterial: function(args, material, list) { 889 var dialog = new EditMaterialDialog(args, material, list, "Edit Material");893 var dialog = new EditMaterialDialog(args, material, list, $T("Edit Material")); 890 894 dialog.execute(); 891 895 }, 892 896 893 897 editResource: function(args, material, resource, domItem, appender) { 894 var dialog = new EditResourceDialog(args, material, resource, domItem, appender, "Edit Resource");898 var dialog = new EditResourceDialog(args, material, resource, domItem, appender, $T("Edit Resource")); 895 899 dialog.execute(); 896 900 }, 897 901 898 902 editor: function(confId, sessId, contId, subContId, types, uploadAction, refresh) { 899 var dialog = new MaterialEditorDialog(confId, sessId, contId, subContId, types, uploadAction, "Edit Materials", 400, 300, refresh);903 var dialog = new MaterialEditorDialog(confId, sessId, contId, subContId, types, uploadAction, $T("Edit Materials"), 400, 300, refresh); 900 904 dialog.open(); 901 905 }
Note: See TracChangeset
for help on using the changeset viewer.
