JavaScript resource strings

Use the information in the tables to help you find the customizable strings that are sourced in JavaScript files and to determine where to save the customized JavaScript files.

Customizable strings

Notes:
  • In the paths that are listed here:
    • installedApps refers to the following directory path: WAS_HOME/profiles/profile_name/installedAppswhere:
      • WAS_HOME is the directory to which you installed IBM® WebSphere® Application Server.
      • profile_name is the profile to which you installed one of the HCL Connections applications.

      For example: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/standaloneCell01/

    • webresources refers to the web resources provisioning directory for HCL Connections that is created during installation. By default, it is created in the following directory: CONNECTIONS_HOME/data/shared/provision/webresources

      For example: /opt/IBM/Connections/Data/shared/provision/webresources

    • customizationDir refers to the base customization directory where you need to save your customized files. This base directory is defined during the installation of HCL Connections, when it is saved as a WebSphere® Application Server variable named CONNECTIONS_CUSTOMIZATION_PATH. This variable is set to shared_data_directory_root/customization by default.

      For example: local/opt/IBM/Connections/Data/shared/provision/customization/

    • version refers to the file version and time stamp, for example, _3.0.0.20120307-0100 in the following file name: com.ibm.lconn.activities.web.resources_3.0.0.20120307-0100.jar
    • language_code identifies the language-specific version of the strings that you want to customize. For a list of the language codes that are supported by HCL Connections, see Language codes.
  • The following applications do not have any associated JavaScript resource strings:
    • Files
    • Linked Library widget (Communities)
    • Media Gallery
    • Metrics
    • Moderation
    • News
    • Profiles

Common

Table 1. Common JavaScript files
Description Source location Place customizations in
Like control (in embedded experience) installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.oneui.web.resources_version.jar:resources/recommend/nls/Recommender.js customizationDir/javascript/com/ibm/oneui/recommend/nls/Recommender.js
Upload file dialog-related strings installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.core.web.resources_version.jar:resources/upload/nls/upload.js customizationDir/javascript/lconn/core/upload/nls/upload.js
Copy strings.js to the customization directory installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.core.web.resources_version.jar:resources/nls/strings.js customizationDir/javascript/lconn/core/nls/strings.js

Activities

Table 2. Activities JavaScript files
Description Source location Place customizations in
Activities application strings webresources/com.ibm.lconn.activities.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/act/nls/strings.js

Blogs

Table 3. Blogs JavaScript files
Description Source location Place customizations in
Blogs application strings webresources/com.ibm.lconn.blogs.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/blogs/nls/strings.js
Blog widget (Communities) webresources/com.ibm.lconn.communityblogs.web.resources/resources/nls/strings.js customizationDir/javascript/lconn/communityblogs/nls/strings.js
Ideation Blog widget (Communities) webresources/com.ibm.lconn.communityblogs.web.resources/resources/ideation/nls/strings.js  customizationDir/javascript/lconn/communityblogs/ideation/nls/strings.js

Bookmarks

Table 4. Bookmarks JavaScript file
Description Source location Place customizations in
Bookmarks application strings webresources/com.ibm.lconn.dogear.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/dogear/nls/strings.js

Bookmarklet

Note: The bookmarklet is the window that displays when you add a bookmark. It is in the Common.ear file. The bookmarklet allows users to add bookmarks to different applications, such as Communities or Activities. Users can add a button to their browser that allows them to access the bookmarklet window. Every page in Connections has a Bookmarking Tools link in the page footer that allows users to install this toolbar button.
Table 5. Bookmarklet JavaScript file
Description Source location Place customizations in
Bookmarklet application strings installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.bookmarklet.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/bookmarklet/nls/strings.js

Communities

Table 6. Communities JavaScript files
Description Source location Place customizations in
Communities application strings webresources/com.ibm.lconn.communities.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/comm/nls/strings.js
Enterprise Content Manager document picker (used to configure the Linked Library to point to a specific library or folder) webresources/com.ibm.lconn.ecmpicker.web.resources_version.jar/resources/nls/language_code/picker.js customizationDir/javascript/quickr/picker/nls/language_code/picker.js
Calendar widget strings webresources/com.ibm.lconn.calendar.web.resources_version.jar/resources/CalendarData/nls/templateStrings.js customizationDir/javascript/lconn/calendar/CalendarData/nls/templateStrings.js
Calendar widget strings (grid view) webresources/com.ibm.dwa.web.resources_version.jar/resources/cv/nls/calendarView.js customizationDir/javascript/dwa/cv/nls/calendarView.js
Calendar widget strings (grid view) webresources/com.ibm.dwa.web.resources_version.jar/resources/date/nls/calendar.js customizationDir/javascript/dwa/date/nls/calendar.js
Calendar widget strings (grid view) webresources/com.ibm.dwa.web.resources_version.jar/resources/date/nls/datepick.js customizationDir/javascript/dwa/date/nls/datepick.js
Related Communities widget strings webresources/com.ibm.lconn.recomm.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/recomm/nls/strings.js
Strings that display in the Communities user interface, including Communities overview page, Communities catalog, Communities table and community entries, menu items, and the Catalog administration user interface webresources/com.ibm.lconn.communities.catalog.web.resources_version.jar/resources/nls/placeCenter.js customizationDir/javascript/lconn/communities/catalog/nls/placeCenter.js

Embedded experience

Table 7. Embedded experience JavaScript files
Description Source location Place customizations in
Embedded experience content installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.social.ee.web.resources_version.jar/resources/nls/socialEEStrings.js customizationDir/javascript/com/ibm/social/ee/nls/socialEEStrings.js
Embedded experience window installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.oneui.web.resources_version.jar/resources/controls/nls/FlyoutDialog.js customizationDir/javascript/com/ibm/oneui/controls/nls/FlyoutDialog.js

Forums

Table 8. Forums JavaScript files
Description Source location Place customizations in
Forums application strings webresources/com.ibm.lconn.forums.web.resources_version.jar/resources/nls/strings.js customizationDir/javascript/lconn/forums/nls/strings.js
Forums widget (Communities) installedApps/cellName/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.core.web.resources_version.jar/resources/nls/strings.jswhere cellName is the name of the cell to which the Common.ear node belongs. customizationDir/javascript/lconn/core/nls/strings.js

Profiles

Table 9. Profiles JavaScript files
Description Source location Place customizations in
Profiles business card installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.core.web.resources_version.jar customizationDir/javascript/lconn/profiles/bizCard/nls/ui.js
Note: For locale-specific ui.js, create a folder in thecustomizationDir/javascript/lconn/profiles/bizCard/nls/<language code> directory, name it with the corresponding language code, and save the JavaScript file in the new folder. For example, to save Dutch ui.js for Profiles, save the customized JavaScript file in the following location: customizationDir/javascript/lconn/profiles/bizCard/nls/nl/ui.js
Note: Profiles JavaScript defined strings come from property files; all Dojo dijits that are used in Profiles are defined in core.ui (bizcard, invite) and their strings are stored in core.web.resources.

Search

In the source location, com.ibm.lconn.search.web.resources is the name of the JAR file beginning with com.ibm.lconn.sand.web.resources.
Table 10. Search JavaScript files
Description Source location Place customizations in
Sorting control on the Search Results page installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.search.web.resources/resources/nls/Sorting.js customizationDir/javascript/lconn/search/nls/Sorting.js
Strings used to render the data from the feed for the search results installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.search.web.resources/resources/nls/searchData.js customizationDir/javascript/lconn/search/nls/searchData.js
Search Results page installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.search.web.resources/resources/nls/searchResults.js customizationDir/javascript/lconn/search/nls/searchResults.js
Trending widget on the Search Results page installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.search.web.resources/resources/nls/trendData.js customizationDir/javascript/lconn/search/nls/trendData.js

Share dialog

Table 11. Share dialog JavaScript files
Description Source location Place customizations in
Share dialog installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.social.ee.sharebox.resources_version.jar/resources/nls/socialShareboxStrings.js customizationDir/javascript/com/ibm/social/sharebox/nls/socialShareboxStrings.js
Share update form webresources/com.ibm.lconn.news.microblogging.sharebox.form_version.jar/resources/nls/InputForm.js customizationDir/javascript/lconn/news/microblogging/sharebox/nls/InputForm.js
Note: The file upload form that is used by the Share feature uses Files strings. For information about customizing Files strings, see Property file strings.

Social analytics

In the source location, com.ibm.lconn.sand.web.resources is the name of the JAR file beginning with com.ibm.lconn.sand.web.resources.
Table 12. Social analytics JavaScript files
Description Source location Place customizations in
Recommendations widgets (Communities and Home page) installedApps/Common.ear/connections.web.resources.war/WEB-INF/eclipse/plugins/com.ibm.lconn.sand.web.resources/resources/nls/RecommendWidget.js customizationDir/javascript/lconn/sand/nls/RecommendWidget.js

Wikis

Table 13. Wikis JavaScript files
Description Source location Place customizations in
Wiki widget (Communities) Wikis.ear/wikis.web.war/iwidgets/CommunityWidget/nls/en/WikiWidget.js customizationDir/javascript/wikis/iwidgets/CommunityWidget/nls/en/WikiWidget.js