Changeset 420dc1 in indico


Ignore:
Timestamp:
07/28/09 10:53:04 (4 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
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)
Message:

[IMPORT] Import from Cveti's CVS tree

  • i18n of several strings;
  • Subheaders in room booking;
Location:
indico
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/authentication/LocalAuthentication.py

    r9033fd r420dc1  
    2222from MaKaC.common.general import * 
    2323from MaKaC.authentication.baseAuthentication import Authenthicator, PIdentity 
    24  
     24from MaKaC.i18n import _ 
    2525 
    2626 
    2727class LocalAuthenticator(Authenthicator): 
    2828    idxName = "localIdentities" 
    29     id = "Local" 
     29    id = _("Local") 
    3030    name = "Indico" 
    3131    desciption = "Indico Login" 
  • indico/MaKaC/plugins/Collaboration/CERNMCU/__init__.py

    r9033fd r420dc1  
    2121 
    2222from MaKaC.plugins import getModules, initModule 
     23from MaKaC.i18n import _ 
    2324 
    2425pluginType = "Collaboration" 
    25 pluginName = "CERNMCU" 
    26 pluginDescription = "Create conferences in CERN's MCU" 
     26pluginName = _("CERNMCU") 
     27pluginDescription = _("Create conferences in CERN's MCU") 
    2728 
    2829modules = {} 
  • indico/MaKaC/plugins/Collaboration/CERNMCU/options.py

    r9033fd r420dc1  
    1919## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 
    2020## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     21from MaKaC.i18n import _ 
    2122 
    2223globalOptions = [ 
    2324    #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"), 
    2526               "type": str, 
    2627               "defaultValue": "Collaboration", 
     
    2829               "visible": False, 
    2930               "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"), 
    3132               "type": list, 
    3233               "defaultValue": ["meeting"], 
     
    3435               "visible": False, 
    3536               "mustReload": True} ), 
    36     ("admins", {"description": "CERN MCU admins / responsibles", 
     37    ("admins", {"description": _("CERN MCU admins / responsibles"), 
    3738                      "type": 'users', 
    3839                      "defaultValue": [], 
     
    4041                      "visible": True} ), 
    4142    #CERN MCU Options 
    42     ("MCUAddress", {"description": "MCU URL", 
     43    ("MCUAddress", {"description": _("MCU URL"), 
    4344                      "type": str, 
    4445                      "defaultValue": "http://cern-mcu1.cern.ch", 
    4546                      "editable": True, 
    4647                      "visible": True}), 
    47     ("indicoID", {"description": "ID of Indico for the MCU", 
     48    ("indicoID", {"description": _("ID of Indico for the MCU"), 
    4849                      "type": str, 
    4950                      "defaultValue": "indico", 
    5051                      "editable": True, 
    5152                      "visible": True}), 
    52     ("indicoPassword", {"description": "Password of Indico for the MCU", 
     53    ("indicoPassword", {"description": _("Password of Indico for the MCU"), 
    5354                      "type": str, 
    5455                      "defaultValue": "", 
    5556                      "editable": True, 
    5657                      "visible": True}), 
    57     ("idRange", {"description": "Range of possible IDs (format: min-max)", 
     58    ("idRange", {"description": _("Range of possible IDs (format: min-max)"), 
    5859                      "type": str, 
    5960                      "defaultValue": "90000-99999", 
    6061                      "editable": True, 
    6162                      "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"), 
    6364                      "type": int, 
    6465                      "defaultValue": 0, 
    6566                      "editable": True, 
    6667                      "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."), 
    6869                              "type": str, 
    6970                              "defaultValue": "98", 
    7071                              "editable": True, 
    7172                              "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."), 
    7374                    "type": str, 
    7475                    "defaultValue": "0041767027098", 
    7576                    "editable": True, 
    7677                    "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."), 
    7879                "type": str, 
    7980                "defaultValue": "137.138.248.216", 
    8081                "editable": True, 
    8182                "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."), 
    8384                              "type": str, 
    8485                              "defaultValue": "0041227670270", 
  • indico/MaKaC/plugins/Collaboration/EVO/__init__.py

    r9033fd r420dc1  
    2121 
    2222from MaKaC.plugins import getModules, initModule 
     23from MaKaC.i18n import _ 
    2324 
    2425pluginType = "Collaboration" 
    25 pluginName = "EVO" 
    26 pluginDescription = "EVO, the Collaboration network" 
     26pluginName = _("EVO") 
     27pluginDescription = _("EVO, the Collaboration network") 
    2728 
    2829modules = {} 
  • indico/MaKaC/plugins/Collaboration/EVO/actions.py

    r9033fd r420dc1  
    2222from MaKaC.plugins.base import ActionBase 
    2323from MaKaC.plugins.Collaboration.EVO.common import EVOControlledException, getEVOAnswer, EVOException 
     24from MaKaC.i18n import _ 
    2425 
    2526pluginActions = [ 
    26     ("reloadCommunityList", {"buttonText": "Reload Community List", 
     27    ("reloadCommunityList", {"buttonText": _("Reload Community List"), 
    2728                            "associatedOption": "communityList"} ) 
    2829] 
  • indico/MaKaC/plugins/Collaboration/EVO/options.py

    r9033fd r420dc1  
    1919## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 
    2020## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     21from MaKaC.i18n import _ 
    2122 
    2223globalOptions = [ 
    2324    #collaboration options necessary in all plugins 
    24     ("subtab", {"description" : "Subtab where EVO will be placed", 
     25    ("subtab", {"description" : _("Subtab where EVO will be placed"), 
    2526               "type": str, 
    2627               "defaultValue": "Collaboration", 
     
    2829               "visible": False, 
    2930               "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"), 
    3132               "type": list, 
    3233               "defaultValue": ["meeting"], 
     
    3435               "visible": False, 
    3536               "mustReload": True} ), 
    36     ("admins", {"description": "EVO admins / responsibles", 
     37    ("admins", {"description": _("EVO admins / responsibles"), 
    3738                      "type": 'users', 
    3839                      "defaultValue": [], 
     
    4041                      "visible": True} ), 
    4142    #EVO Options 
    42     ("sendMailNotifications", {"description" : "Should mail notifications be sent to EVO admins?", 
     43    ("sendMailNotifications", {"description" : _("Should mail notifications be sent to EVO admins?"), 
    4344               "type": bool, 
    4445               "defaultValue": False, 
    4546               "editable": True, 
    4647               "visible": True} ), 
    47     ("additionalEmails", {"description": "Additional email addresses who will receive notifications (always)", 
     48    ("additionalEmails", {"description": _("Additional email addresses who will receive notifications (always)"), 
    4849                          "type": list, 
    4950                          "defaultValue": [], 
    5051                          "editable": True, 
    5152                          "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)"), 
    5354                      "type": str, 
    5455                      "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)"), 
    5657                      "type": str, 
    5758                      "defaultValue": ""} ), 
    58     ("koalaLocation", {"description" : "Koala EVO client location", 
     59    ("koalaLocation", {"description" : _("Koala EVO client location"), 
    5960                      "type": str, 
    6061                      "defaultValue": "http://evo.caltech.edu/evoGate/koala.jnlp"} ), 
    61     ("httpServerLocation", {"description" : "EVO HTTP server location", 
     62    ("httpServerLocation", {"description" : _("EVO HTTP server location"), 
    6263                           "type": str, 
    6364                           "defaultValue": "http://vrvs-contrib.caltech.edu/evoGate/Api/"} ), 
    64     ("expirationTime", {"description" : "Expiration time in minutes", 
     65    ("expirationTime", {"description" : _("Expiration time in minutes"), 
    6566                           "type": int, 
    6667                           "defaultValue": 5} ), 
    67     ("communityList", {"description" : "List of EVO communities", 
     68    ("communityList", {"description" : _("List of EVO communities"), 
    6869                      "type": dict, 
    6970                      "defaultValue": {}, 
    7071                      "editable": False} ), 
    71     ("verifyMinutes", {"description" : "Minutes to verify the booking before meeting", 
     72    ("verifyMinutes", {"description" : _("Minutes to verify the booking before meeting"), 
    7273                      "type": list, 
    7374                      "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)"), 
    7576                            "type": int, 
    7677                            "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)"), 
    7879                            "type": int, 
    7980                            "defaultValue": 30} ), 
    80     ("APIMap", {"description" : "Map of actions and URLs", 
     81    ("APIMap", {"description" : _("Map of actions and URLs"), 
    8182               "type": dict, 
    8283               "defaultValue": { 
  • indico/MaKaC/plugins/Collaboration/RecordingRequest/__init__.py

    r9033fd r420dc1  
    2121 
    2222from MaKaC.plugins import getModules, initModule 
     23from MaKaC.i18n import _ 
    2324 
    2425pluginType = "Collaboration" 
    25 pluginName = "RecordingRequest" 
    26 pluginDescription = "Recording Request" 
     26pluginName = _("RecordingRequest") 
     27pluginDescription = _("Recording Request") 
    2728 
    2829modules = {} 
  • indico/MaKaC/plugins/Collaboration/RecordingRequest/options.py

    r9033fd r420dc1  
    1919## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 
    2020## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     21from MaKaC.i18n import _ 
    2122 
    2223globalOptions = [ 
    2324    #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"), 
    2526               "type": str, 
    2627               "defaultValue": "Recording Request", 
     
    2829               "visible": False, 
    2930               "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"), 
    3132               "type": list, 
    3233               "defaultValue": ["conference","simple_event","meeting"], 
     
    3435               "visible": False, 
    3536               "mustReload": True} ), 
    36     ("admins", {"description": "Recording Request admins / responsibles", 
     37    ("admins", {"description": _("Recording Request admins / responsibles"), 
    3738                      "type": 'users', 
    3839                      "defaultValue": [], 
     
    4041                      "visible": True} ), 
    4142    #RecordingRequest options 
    42     ("sendMailNotifications", {"description" : "Should mail notifications be sent to responsibles?", 
     43    ("sendMailNotifications", {"description" : _("Should mail notifications be sent to responsibles?"), 
    4344               "type": bool, 
    4445               "defaultValue": False, 
    4546               "editable": True, 
    4647               "visible": True} ), 
    47     ("additionalEmails", {"description": "Additional email addresses who will receive notifications (always)", 
     48    ("additionalEmails", {"description": _("Additional email addresses who will receive notifications (always)"), 
    4849                          "type": list, 
    4950                          "defaultValue": [], 
     
    5152                          "visible": True} ), 
    5253     
    53     ("contributionWarnLimit", {"description" : "Allowed number of loaded contributions without warning", 
     54    ("contributionWarnLimit", {"description" : _("Allowed number of loaded contributions without warning"), 
    5455               "type": int, 
    5556               "defaultValue": 20, 
     
    5758               "visible": True} ), 
    5859                
    59     ("ConsentFormURL", {"description" : "Recording consent form URL", 
     60    ("ConsentFormURL", {"description" : _("Recording consent form URL"), 
    6061               "type": str, 
    6162               "defaultValue": "", 
  • indico/MaKaC/plugins/Collaboration/__init__.py

    r9033fd r420dc1  
    1919## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 
    2020## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
    21  
    22 pluginTypeDescription = "Collaboration Tools Plugins" 
     21from MaKaC.i18n import _ 
     22pluginTypeDescription = _("Collaboration Tools Plugins") 
    2323#ignore = True 
  • indico/MaKaC/plugins/Collaboration/options.py

    r9033fd r420dc1  
    1919## along with CDS Indico; if not, write to the Free Software Foundation, Inc., 
    2020## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     21from MaKaC.i18n import _ 
     22 
    2123 
    2224globalOptions = [ 
    23     ("collaborationAdmins", {"description": "Global collaboration admins", 
     25    ("collaborationAdmins", {"description": _("Global collaboration admins"), 
    2426                            "type": 'users', 
    2527                            "defaultValue": []} ), 
    26     ("useHTTPS", {"description": "Use HTTPS in collaboration pages?", 
     28    ("useHTTPS", {"description": _("Use HTTPS in collaboration pages?"), 
    2729                     "type" : bool, 
    2830                     "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)"), 
    3032                     "type" : int, 
    3133                     "defaultValue": 30} ), 
    32     ("pluginsPerEventType", {"description": "Plugins allowed for each event type", 
     34    ("pluginsPerEventType", {"description": _("Plugins allowed for each event type"), 
    3335                            "type": dict, 
    3436                            "editable": False, 
    3537                            "visible": True} ), 
    36     ("pluginsPerIndex", {"description": "Information about each index seen by collaboration admins", 
     38    ("pluginsPerIndex", {"description": _("Information about each index seen by collaboration admins"), 
    3739                         "type": list, #a list of IndexInformation objects 
    3840                         "editable": False, 
  • indico/MaKaC/plugins/EPayment/payPal/webinterface/pages/ePayments.py

    r9033fd r420dc1  
    2727from MaKaC.webinterface import urlHandlers 
    2828import MaKaC 
     29from MaKaC.i18n import _ 
    2930 
    3031from MaKaC.plugins.EPayment.payPal.webinterface.wcomponents import WTemplated 
     
    3738    def _createTabCtrl( self ): 
    3839        self._tabCtrl = wcomponents.TabControl() 
    39         self._tabMain = self._tabCtrl.newTab( "main", "Main", \ 
     40        self._tabMain = self._tabCtrl.newTab( "main", _("Main"), \ 
    4041                localUrlHandlers.UHConfModifEPaymentPayPal.getURL( self._conf ) ) 
    4142        wf = self._rh.getWebFactory() 
  • indico/MaKaC/plugins/RoomBooking/default/__init__.py

    r9033fd r420dc1  
    2323 
    2424pluginType = "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""" 
     25pluginName = _("default") 
     26pluginDescription = _("""This is the default Indico Room Booking plugin. It relies on a ZODB separate backend. It support custom room attributes, and equipment""") 
    2727 
    2828modules = {} 
  • indico/MaKaC/registration.py

    rd6189d r420dc1  
    6262            self.setCurrency( _("not selected")) 
    6363        else: 
    64             self.activated = groupData.get("activated", False) 
     64            self.activated = groupData.get(_("activated"), False) 
    6565            self.title = groupData.get("name", "") 
    6666            self.announcement = groupData.get("announcement", "") 
  • indico/MaKaC/user.py

    r9033fd r420dc1  
    867867            return self.status 
    868868        except AttributeError: 
    869             self.status = "activated" 
     869            self.status = _("activated") 
    870870            return self.status 
    871871     
     
    878878     
    879879    def activateAccount( self ): 
    880         self.setStatus("activated") 
     880        self.setStatus(_("activated")) 
    881881 
    882882    def disabledAccount( self ): 
     
    884884     
    885885    def isActivated( self ): 
    886         return self.status == "activated" 
     886        return self.status == _("activated") 
    887887     
    888888    def isDisabled( self ): 
    889         return self.status == "disabled" 
     889        return self.status == _("disabled") 
    890890     
    891891    def isNotConfirmed( self ): 
    892         return self.status == "Not confirmed" 
     892        return self.status == _("Not confirmed") 
    893893 
    894894    def setId(self, id): 
  • indico/MaKaC/webinterface/common/timezones.py

    r9033fd r420dc1  
    77from xml.sax.saxutils import quoteattr, escape 
    88from MaKaC.common.Configuration import Config 
     9from MaKaC.i18n import _ 
    910 
    1011 
     
    5455 
    5556class DisplayTimezoneRegistry: 
    56     _items = ['MyTimezone','Event Timezone'] 
     57    _items = [_('MyTimezone'),_('Event Timezone')] 
    5758 
    5859    def getList( self ): 
  • indico/MaKaC/webinterface/mail.py

    r9033fd r420dc1  
    162162        minfo = HelperMaKaCInfo.getMaKaCInfoInstance() 
    163163        name = self._user.getStraightFullName() 
    164         text = _(""" _("Dear Administrator, 
     164        text = """ Dear Administrator, 
    165165%s has created a new account in Indico. 
    166166 
    167 In order to activate it, please go to this URL"): 
     167In order to activate it, please go to this URL: 
    168168<%s> 
    169 """)% (name,urlHandlers.UHUserDetails.getURL( self._user )) 
     169"""% (name,urlHandlers.UHUserDetails.getURL( self._user )) 
    170170        maildata = { "fromAddr": "Indico Mailer<%s>" % minfo.getSupportEmail(), "toList": minfo.getAdminEmails(), "subject": _("[Indico] New account creation request"), "body": text } 
    171171        GenericMailer.send(GenericNotification(maildata)) 
     
    179179        minfo = HelperMaKaCInfo.getMaKaCInfoInstance() 
    180180        name = self._user.getStraightFullName() 
    181         text = _("""Dear Administrator, 
     181        text = """Dear Administrator, 
    182182%s has created a new account in Indico. 
    183183<%s> 
    184 """) % (name,urlHandlers.UHUserDetails.getURL( self._user )) 
     184""" % (name,urlHandlers.UHUserDetails.getURL( self._user )) 
    185185        maildata = { "fromAddr": "Indico Mailer<%s>" % minfo.getSupportEmail(), "toList": minfo.getAdminEmails(), "subject": _("[Indico] New account creation"), "body": text } 
    186186        GenericMailer.send(GenericNotification(maildata)) 
  • indico/MaKaC/webinterface/pages/admins.py

    r9033fd r420dc1  
    417417        self._tabCtrl = wcomponents.TabControl() 
    418418         
    419         self._tabs["Main"] = self._tabCtrl.newTab("Main", "Main", urlHandlers.UHAdminPlugins.getURL()) 
     419        self._tabs["Main"] = self._tabCtrl.newTab("Main", _("Main"), urlHandlers.UHAdminPlugins.getURL()) 
    420420         
    421421        pluginTypes = PluginsHolder().getPluginTypes(sorted = True) 
     
    475475        self._tabCtrl = wcomponents.TabControl() 
    476476         
    477         self._subTabWebcast = self._tabCtrl.newTab( "webcast", "Webcast", \ 
     477        self._subTabWebcast = self._tabCtrl.newTab( "webcast", _("Webcast"), \ 
    478478                urlHandlers.UHWebcast.getURL() )   
    479         self._subTabWebcast_Live = self._subTabWebcast.newSubTab( "live", "Live", \ 
     479        self._subTabWebcast_Live = self._subTabWebcast.newSubTab( "live", _("Live"), \ 
    480480                urlHandlers.UHWebcast.getURL() )   
    481         self._subTabWebcast_Archive = self._subTabWebcast.newSubTab( "archive", "Archive", \ 
     481        self._subTabWebcast_Archive = self._subTabWebcast.newSubTab( "archive", _("Archive"), \ 
    482482                urlHandlers.UHWebcastArchive.getURL() )   
    483         self._subTabWebcast_Setup = self._subTabWebcast.newSubTab( "setup", "Setup", \ 
     483        self._subTabWebcast_Setup = self._subTabWebcast.newSubTab( "setup", _("Setup"), \ 
    484484                urlHandlers.UHWebcastSetup.getURL() )   
    485         self._subTabRecording = self._tabCtrl.newTab( "recording", "Recording", \ 
     485        self._subTabRecording = self._tabCtrl.newTab( "recording", _("Recording"), \ 
    486486                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"), \ 
    488488                urlHandlers.UHOAIPrivateConfig.getURL() )   
    489489 
     
    13631363            changePassword = "" 
    13641364            if item.getAuthenticatorTag() != "Local" : 
    1365                 changePassword = "External account" 
     1365                changePassword = _("External account") 
    13661366            else : 
    13671367                changeURL = urlHandlers.UHUserIdentityChangePassword.getURL() 
     
    14521452        vars["activeButton"] = "" 
    14531453        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%%"\ 
    14551455                    valign="top" align="left">&nbsp;&nbsp;&nbsp;<input type="submit" class="btn" \ 
    1456                     value="activate the account"></td></form>"""%vars["activeURL"] 
     1456                    value=" _("activate the account") "></td></form>""")%vars["activeURL"] 
    14571457        vars["categoryManager"] = "" 
    14581458        categs = u.getLinkTo("category","manager") 
     
    16681668    def _getTabContent(self, params): 
    16691669         
    1670         identity = self._avatar.getIdentityById(self._params["identityId"],"Local") 
     1670        identity = self._avatar.getIdentityById(self._params["identityId"],_("Local")) 
    16711671        c = WIdentityModification( self._avatar, identity )         
    16721672        postURL = urlHandlers.UHUserIdentityChangePassword.getURL() 
     
    25262526        self._tabCtrl = wcomponents.TabControl() 
    25272527 
    2528         self._subTabConfiguration = self._tabCtrl.newTab( "configuration", "Configuration", \ 
     2528        self._subTabConfiguration = self._tabCtrl.newTab( "configuration", _("Configuration"), \ 
    25292529                urlHandlers.UHAdminsSystem.getURL() )  
    2530         self._subTabTaskManager = self._tabCtrl.newTab( "tasks", "Task Manager", \ 
     2530        self._subTabTaskManager = self._tabCtrl.newTab( "tasks", _("Task Manager"), \ 
    25312531                urlHandlers.UHTaskManager.getURL() )  
    2532         self._subTabMaintenance = self._tabCtrl.newTab( "maintenance", "Maintenance", \ 
     2532        self._subTabMaintenance = self._tabCtrl.newTab( "maintenance", _("Maintenance"), \ 
    25332533                urlHandlers.UHMaintenance.getURL() ) 
    25342534         
     
    27192719        if type == Alarm: 
    27202720            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> 
    27232723                    <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>""")) 
    27272727            for task in taskList: 
    27282728                delete = urlHandlers.UHRemoveTask.getURL() 
  • indico/MaKaC/webinterface/pages/base.py

    r9033fd r420dc1  
    9494        from MaKaC.webinterface.rh.base import RHModificationBaseProtected 
    9595        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 
    96107         
    97108        baseurl = self._getBaseURL() 
     
    101112            baseurl = baseurl.replace("http://","https://") 
    102113            baseurl = urlHandlers.setSSLPort( baseurl ) 
    103              
     114   
    104115        area="" 
    105116        if isinstance(self._rh, RHModificationBaseProtected): 
    106117            area=_(""" - _("Management area")""") 
    107         elif isinstance(self._rh, RHAdminBase): 
     118        elif isinstance(self._rh, RHAdminBase) or isinstance(self._rh, RHRoomBookingAdminBase): 
    108119            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                                                      
    109152         
    110153        return wcomponents.WHTMLHeader().getHTML({ 
  • indico/MaKaC/webinterface/pages/help.py

    r9033fd r420dc1  
    2727class WPHelp(WPMainBase): 
    2828    def _getNavigationDrawer(self): 
    29         return wcomponents.WSimpleNavigationDrawer("Help", urlHandlers.UHConferenceHelp.getURL ) 
     29        return wcomponents.WSimpleNavigationDrawer(_("Help"), urlHandlers.UHConferenceHelp.getURL ) 
    3030 
    3131    def _getBody(self, params): 
  • indico/MaKaC/webinterface/pages/roomBooking.py

    r9033fd r420dc1  
    2626from MaKaC.rb_location import CrossLocationDB 
    2727import MaKaC.common.info as info 
     28from MaKaC.webinterface.rh.base import RH 
    2829 
    2930#import MaKaC.common.info as info 
     
    193194        return wc.getHTML( params ) 
    194195 
    195 class WPRoomBookingSearch4Users( WPRoomBookingBase ): 
     196class WPRoomBookingSearch4Users( WPRoomBookingBase, RH ): 
    196197    def __init__( self, rh ): 
    197198        self._rh = rh 
     
    203204             forceWithoutExtAuth = self._rh._forceWithoutExtAuth, 
    204205             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 ) 
    207209 
    208210# 2. List of ... 
  • indico/MaKaC/webinterface/rh/resetTimezone.py

    r9033fd r420dc1  
    44from mod_python import util 
    55import MaKaC.common.info as info 
     6from MaKaC.i18n import _ 
    67 
    78class RHResetTZ(base.RH): 
     
    2526                user = sess.getUser() 
    2627                if tz == "LOCAL": 
    27                     user.setDisplayTZMode("Event Timezone") 
     28                    user.setDisplayTZMode(_("Event Timezone")) 
    2829                else: 
    2930                    user.setTimezone(tz) 
    30                     user.setDisplayTZMode("MyTimezone") 
     31                    user.setDisplayTZMode(_("MyTimezone")) 
    3132        except: 
    3233            pass 
  • indico/MaKaC/webinterface/rh/users.py

    r9033fd r420dc1  
    180180                    _UserUtils.setUserData( a, self._params ) 
    181181                    li = user.LoginInfo( self._params["login"], self._params["password"] )    
    182                     id = ih.createIdentity( li, a, "Local" ) 
     182                    id = ih.createIdentity( li, a, _("Local") ) 
    183183                    ih.add( id ) 
    184184                    DBMgr.getInstance().commit() 
     
    194194                ah.add(a) 
    195195                li = user.LoginInfo( self._params["login"], self._params["password"] )    
    196                 id = ih.createIdentity( li, a, "Local" ) 
     196                id = ih.createIdentity( li, a, _("Local") ) 
    197197                ih.add( id ) 
    198198                DBMgr.getInstance().commit() 
     
    599599                p = adminPages.WPIdentityChangePassword( self, self._avatar, self._params )         
    600600                return p.display() 
    601             identity = self._avatar.getIdentityById(self._params["login"],"Local") 
     601            identity = self._avatar.getIdentityById(self._params["login"],_("Local")) 
    602602            identity.setPassword(self._params["password"]) 
    603603            p = adminPages.WPUserDetails( self, self._avatar ) 
  • indico/MaKaC/webinterface/tpls/AdminPluginsOptionList.tpl

    r9033fd r420dc1  
    154154        <tr> 
    155155            <td colspan="2" style="text-align: right;"> 
    156                 <input type="submit" name="Save" value="Save" /> 
     156                <input type="submit" name="Save" value="<%= _("Save") %>" /> 
    157157            </td> 
    158158        </tr> 
  • indico/MaKaC/webinterface/tpls/AdminsSystem.tpl

    r9033fd r420dc1  
    1212      <td rowspan="4" valign="top"> 
    1313        <form action="%(ModifURL)s" method="POST"> 
    14         <input type="submit" class="btn" value="modify"> 
     14        <input type="submit" class="btn" value="<%= _("modify")%>"> 
    1515        </form> 
    1616      </td> 
  • indico/MaKaC/webinterface/tpls/BeautifulHTMLDict.tpl

    r9033fd r420dc1  
    1010<% end %> 
    1111<% else: %> 
    12 (Empty) 
     12<%= _("(Empty)")%> 
    1313<% end %> 
    1414</div> 
  • indico/MaKaC/webinterface/tpls/BeautifulHTMLList.tpl

    r9033fd r420dc1  
    1010<% end %> 
    1111<% else: %> 
    12 (Empty) 
     12<%= _("(Empty)")%> 
    1313<% end %> 
    1414</div> 
  • indico/MaKaC/webinterface/tpls/ConfRegistrationFormDisplay.tpl

    r9033fd r420dc1  
    1515    <tr> 
    1616        <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> 
    1818        </td> 
    1919    </tr> 
  • indico/MaKaC/webinterface/tpls/Help.tpl

    r9033fd r420dc1  
    9090 
    9191    <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> 
    9393 
    9494</div> 
  • indico/htdocs/js/indico/Legacy/Dialogs.js

    rf534e7 r420dc1  
    6868 
    6969                       var popup = new ExclusivePopup( 
    70                            'Add Break', 
     70                           $T('Add Break'), 
    7171                           function() { 
    7272                               popup.close(); 
     
    7676                           var self = this; 
    7777 
    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")); 
    8080                           cancelButton.dom.style.marginLeft = pixels(10); 
    8181 
     
    9999                           return self.ExclusivePopup.prototype.draw.call( 
    100100                               this, 
    101                                Widget.block([IndicoUtil.createFormFromMap([['Title', $B(Html.edit({ 
     101                               Widget.block([IndicoUtil.createFormFromMap([[$T('Title'), $B(Html.edit({ 
    102102                                   style: { 
    103103                                       width: '300px' 
    104104                                   } 
    105                                }), info.accessor('title'))], ['Description', $B(Html.textarea({ 
     105                               }), info.accessor('title'))], [$T('Description'), $B(Html.textarea({ 
    106106                                   cols: 40, 
    107107                                   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]]), 
    109109                                             Html.div('dialogButtons', 
    110110                                                      [addButton, cancelButton])])); 
     
    171171                       }; 
    172172 
    173                        var popup = new ExclusivePopup('Add Session'); 
     173                       var popup = new ExclusivePopup($T('Add Session')); 
    174174 
    175175                       popup.draw = function(){ 
    176176                           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")); 
    179179                           cancelButton.dom.style.marginLeft = pixels(10); 
    180180 
     
    203203                           $B(info.accessor('conveners'), convListWidget.getUsers()); 
    204204 
    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'); 
    206206                           sesType.select('standard'); 
    207207                           $B(info.accessor('sessionType'), sesType.state); 
     
    210210                               this, 
    211211                               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()] 
    219219                               ]), Html.div('dialogButtons',[addButton, cancelButton]) 
    220                                             ])); 
     220                               ])); 
    221221                       }; 
    222222                       popup.open(); 
     
    294294 
    295295                       var popup = new ExclusivePopup( 
    296                            'Add Session Slot', 
     296                           $T('Add Session Slot'), 
    297297                           function() { 
    298298                               popup.close(); 
     
    301301                       popup.draw = function() { 
    302302                           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")); 
    305305                           cancelButton.dom.style.marginLeft = pixels(10); 
    306306 
     
    332332                           return this.ExclusivePopup.prototype.draw.call( 
    333333                               this, 
    334                                Widget.block([IndicoUtil.createFormFromMap([['Title', 
     334                               Widget.block([IndicoUtil.createFormFromMap([[$T('Title'), 
    335335                                                                            $B(Html.edit({ 
    336336                                                                                style: { width: '300px'} 
    337337                                                                            }), 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()]]), 
    340340                                             Html.div('dialogButtons', 
    341341                                                      [addButton, cancelButton])] 
     
    396396 
    397397                   var popup = new ExclusivePopup( 
    398                        'Add Subcontribution', 
     398                       $T('Add Subcontribution'), 
    399399                       function() { 
    400400                           popup.close(); 
     
    404404                       var self = this; 
    405405 
    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")); 
    408408                       cancelButton.dom.style.marginLeft = pixels(10); 
    409409 
     
    434434                           this, 
    435435                           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()] 
    441441                           ]), 
    442442                                         Html.div({style:{marginTop: pixels(10), textAlign: 'center', background: '#DDDDDD', padding: pixels(2)}}, 
     
    524524 
    525525               var popup = new ExclusivePopup( 
    526                    'My minutes', 
     526                   $T('My minutes'), 
    527527                   function() { 
    528528                       popup.close(); 
     
    533533                   var content = Html.div({}, rtWidget.draw()); 
    534534 
    535                    saveButton = Widget.button(command(curry(commitChanges, function(){self.close();}), "Save")); 
     535                   saveButton = Widget.button(command(curry(commitChanges, function(){self.close();}), $T("Save"))); 
    536536                   saveButton.dom.disabled = !compileMinutes; 
    537537 
     
    549549                       commitChanges(suicideHook, closeMinutes); 
    550550                   }; 
    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"))); 
    553552                   saveCloseButton.dom.disabled = !compileMinutes; 
    554553 
     
    561560                                         saveButton, 
    562561                                         saveCloseButton, 
    563                                          Widget.button(command(closeMinutes, "Close"))))); 
     562                                         Widget.button(command(closeMinutes, $T("Close")))))); 
    564563               }; 
    565564 
  • indico/htdocs/js/indico/Management/Timetable.js

    r9033fd r420dc1  
    156156                                      Html.div("UnscheduledContribListDiv", 
    157157                                               unscheduledList.draw()), 
    158                                       this.dayList.length==1?'':["Add to ", daySelect], 
     158                                      this.dayList.length==1?'':[$T("Add to "), daySelect], 
    159159                                      Widget.button(command(function() { 
    160160                                          self.addExisting(unscheduledList.getList(), 
    161161                                                           daySelect.get()); 
    162                                       }, "Add selected")) 
     162                                      }, $T("Add selected"))) 
    163163                                     ))); 
    164164 
     
    258258            self.favorites, 
    259259            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]}, 
    261261            self.args.conference 
    262262        ); 
     
    267267            $B(info.accessor('dateTime'), self.dateTimeField.accessor.accessor('dateTime')); 
    268268            $B(info.accessor('duration'), self.dateTimeField.accessor.accessor('duration')); 
    269             datecomponent = ['Date/Time', self.dateTimeField.element]; 
     269            datecomponent = [$T('Date/Time'), self.dateTimeField.element]; 
    270270        }else{ 
    271271            $B(info.accessor('duration'), self.dateTimeField); 
    272             datecomponent = ['Duration', self.dateTimeField] 
     272            datecomponent = [$T('Duration'), self.dateTimeField] 
    273273        } 
    274274 
     
    276276            [ 
    277277                [ 
    278                     'Title', 
     278                    $T('Title'), 
    279279                    $B(Html.edit({}), 
    280280                       info.accessor('title')) 
    281281                ], 
    282                 ['Place', Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], 
     282                [$T('Place'), Html.div({style: {marginBottom: '15px'}}, roomEditor.draw())], 
    283283                datecomponent, 
    284                 ['Presenter(s)', presListWidget.draw()] 
     284                [$T('Presenter(s)'), presListWidget.draw()] 
    285285            ]); 
    286286 
     
    295295        if (!this.isConference) { 
    296296            // 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}), 
    298298                                       info.accessor('field_content'))]]; 
    299299        } else { 
     
    306306        } 
    307307 
    308         fields.push(['Keywords', keywordField.element]); 
     308        fields.push([$T('Keywords'), keywordField.element]); 
    309309        $B(info.accessor('keywords'), keywordField.accessor); 
    310310 
     
    321321            self.favorites, 
    322322            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]}, 
    324324            this.args.conference); 
    325325 
     
    330330            self.favorites, 
    331331            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]}, 
    333333            this.args.conference); 
    334334 
     
    339339        return IndicoUtil.createFormFromMap( 
    340340            [ 
    341                 ['Author(s)', authorListWidget.draw()], 
    342                 ['Co-author(s)', coauthorListWidget.draw()] 
     341                [$T('Author(s)'), authorListWidget.draw()], 
     342                [$T('Co-author(s)'), coauthorListWidget.draw()] 
    343343            ]);  
    344344    }, 
     
    368368        }; 
    369369 
    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")); 
    372372 
    373373        cancelButton.observeClick(function(){ 
     
    382382        cancelButton.dom.style.marginLeft = pixels(10); 
    383383 
    384         var tabs = [["Basic", self._drawMainTab(info)]]; 
     384        var tabs = [[$T("Basic"), self._drawMainTab(info)]]; 
    385385 
    386386        if (this.isConference) { 
    387             tabs.push(["Authors", self._drawAuthorsTab(info)]); 
     387            tabs.push([$T("Authors"), self._drawAuthorsTab(info)]); 
    388388        } 
    389389 
    390         tabs.push(["Advanced", self._drawAdvancedTab(info)]); 
     390        tabs.push([$T("Advanced"), self._drawAdvancedTab(info)]); 
    391391        var tabWidget = new TabWidget(tabs, 600, 400); 
    392392 
     
    430430             }); 
    431431 
    432          this.ServiceDialog(Indico.Urls.JsonRpcService, method, args, "Add Contribution", 
     432         this.ServiceDialog(Indico.Urls.JsonRpcService, method, args, $T("Add Contribution"), 
    433433                            function() { 
    434434                                self.close(); 
  • indico/htdocs/js/indico/MaterialEditor/Editor.js

    rfe6889 r420dc1  
    3838                                              return Html.option({'value': value}, value); 
    3939                                          }), 
    40                          " or ", 
     40                         " ", 
     41                         $T("or"), 
     42                         " ", 
    4143                         Widget.link(command(function() { 
    4244                             chooser.set('write'); 
    43                          }, "other"))); 
     45                         }, $T("other")))); 
    4446            }, 
    4547 
     
    4951                pm.add(text); 
    5052                return Html.div({}, text, 
    51                                 " or ", 
     53                                " ", 
     54                               $T("or"), 
     55                               " ", 
    5256                                Widget.link(command(function() { 
    5357                                    chooser.set('select'); 
    54                                 }, "select from list"))); 
     58                                }, $T("select from list")))); 
    5559            } 
    5660        })); 
     
    8387                        IndicoUtil.createFormFromMap( 
    8488                            [ 
    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] 
    8993                            ]), 
    9094                        uploadType, 
     
    97101                                             self.form.dom.submit(); 
    98102                                         } 
    99                                      }, "Upload")))); 
     103                                     }, $T("Upload"))))); 
    100104    }, 
    101105 
     
    119123                        IndicoUtil.createFormFromMap( 
    120124                            [ 
    121                                 ['Type',selector], 
    122                                 ['URL', url], 
    123                                 ['Description', description] 
     125                                [$T('Type'),selector], 
     126                                [$T('URL'), url], 
     127                                [$T('Description'), description] 
    124128                            ]), 
    125129                        uploadType, 
     
    132136                                             self.form.dom.submit(); 
    133137                                         } 
    134                                      }, "Upload")))); 
     138                                     }, $T("Upload"))))); 
    135139    }, 
    136140 
     
    178182 
    179183    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()]], 
    182186                                       400, 200); 
    183187 
     
    197201//    this.args.materialId = material; 
    198202 
    199     this.ExclusivePopup("Upload Material", 
     203    this.ExclusivePopup($T("Upload Material"), 
    200204                        function() { 
    201205                            self.close(); 
     
    238242        var statusSelection = Widget.select( 
    239243            $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)') 
    243247            }) 
    244248        ); 
     
    255259        var visibility = Html.select( 
    256260            {}, 
    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')) 
    259263        ); 
    260264 
     
    271275            {style:{padding:pixels(2)}}, 
    272276            Html.div({}, 
    273                      Html.label({}, 'Allowed users'), 
     277                     Html.label({}, $T('Allowed users')), 
    274278                     self.userList.draw()), 
    275279            Html.div({style:{marginTop: pixels(4)}}, 
    276                      Html.label({}, 'Visibility: '), 
     280                     Html.label({}, $T('Visibility: ')), 
    277281                     $B(visibility, 
    278282                        self.newMaterial.accessor('hidden'))), 
    279283            Html.div({}, 
    280                      Html.label({}, 'Access Key: '), 
     284                     Html.label({}, $T('Access Key: ')), 
    281285                     $B(Html.input('password',{}), 
    282286                        self.newMaterial.accessor('accessKey'))) 
     
    287291            {style: {marginTop: pixels(5)}}, 
    288292            Html.div({}, 
    289                      Html.label({},"Status: "), 
     293                     Html.label({},$T("Status: ")), 
    290294                     $B(statusSelection, 
    291295                        self.newMaterial.accessor('protection')) 
     
    300304            Widget.button(command(function() { 
    301305                self._saveCategory(); 
    302             },'Save')), 
     306            },$T('Save'))), 
    303307            Widget.button(command(function() { 
    304308                self.close(); 
    305             }, 'Cancel')) 
     309            }, $T('Cancel'))) 
    306310        ]); 
    307311 
     
    310314 
    311315        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); 
    314318 
    315319        return this.ExclusivePopup.prototype.draw.call( 
     
    373377        self.newResource = clone(this.resource); 
    374378        var name = Html.input('text',{}); 
    375         var nameDiv = Widget.block([Html.label({},"Name: "),name]); 
     379        var nameDiv = Widget.block([Html.label({},$T("Name: ")),name]); 
    376380        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]); 
    378382        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]); 
    380384        var buttonDiv = Widget.block([ 
    381385            Widget.button(command(function() { 
    382386                self._saveResource(); 
    383             }, 'Save')), 
     387            }, $T('Save'))), 
    384388            Widget.button(command(function() { 
    385389                self.close(); 
    386             }, 'Cancel')) 
     390            }, $T('Cancel'))) 
    387391        ]); 
    388392 
     
    401405        var statusSelection = Widget.select( 
    402406            $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)') 
    406410            }) 
    407411        ); 
     
    419423            {style:{padding:pixels(2)}}, 
    420424            Html.div({}, 
    421                      Html.label({}, 'Allowed users'), 
     425                     Html.label({}, $T('Allowed users')), 
    422426                     self.userList.draw())); 
    423427 
     
    425429            {style: {marginTop: pixels(5)}}, 
    426430            Html.div({}, 
    427                      Html.label({},"Status: "), 
     431                     Html.label({},$T("Status: ")), 
    428432                     $B(statusSelection, 
    429433                        self.newResource.accessor('protection'))), privateInfoDiv); 
    430434 
    431435        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")); 
    436440 
    437441        return this.ExclusivePopup.prototype.draw.call( 
     
    507511var modifyDisabledHelpPopup = function(event) { 
    508512    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.')); 
    510514}; 
    511515 
     
    523527 
    524528        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')+"?")) { 
    526530                var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 
    527531                jsonRpc(Indico.Urls.JsonRpcService, 
     
    808812                                              } 
    809813                                          }); 
    810         }, "Add Material")); 
     814        }, $T("Add Material"))); 
    811815 
    812816        return Html.div( 
     
    863867                         self.close(); 
    864868                         window.location.reload(true); 
    865                      }, "Close")))); 
     869                     }, $T("Close"))))); 
    866870    } 
    867871}, 
     
    887891    }, 
    888892    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")); 
    890894        dialog.execute(); 
    891895    }, 
    892896 
    893897    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")); 
    895899        dialog.execute(); 
    896900    }, 
    897901 
    898902    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); 
    900904        dialog.open(); 
    901905    } 
Note: See TracChangeset for help on using the changeset viewer.