Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Mylyn/Bugzilla Connector"

(Langugage Configurations)
(Langugage Configurations)
Line 70: Line 70:
 
For every Action there must be one or more responses.
 
For every Action there must be one or more responses.
  
Here is and example of where the English responses for a bugzilla-3.0.1 install were found. <br>
+
Here is and example where the English responses for bugzilla-3.0.1 were found. <br>
 
{|
 
{|
!File ||Line||Text
+
! Text || File ||Lin
 
|-
 
|-
| template/en/default/bug/process/header.html.tmpl ||37|| processed
+
| processed ||template/en/default/bug/process/header.html.tmpl ||37
 
|-
 
|-
| template/en/default/bug/process/header.html.tmpl ||40|| "Mid-air collision!"
+
| "Mid-air collision!" || template/en/default/bug/process/header.html.tmpl ||40
 
|-
 
|-
| template/en/default/global/user-error.html.tmpl||241|| "Comment Required"
+
| "Comment Required" || template/en/default/global/user-error.html.tmpl||241
 
|-
 
|-
| template/en/default/global/user-error.html.tmpl||822|| "Invalid Username Or Password"
+
| "Invalid Username Or Password" || template/en/default/global/user-error.html.tmpl||822
 
|-
 
|-
| template/en/default/bug/process/results.html.tmpl||45|| 'bug' => "Changes submitted for $link"
+
| 'bug' => "Changes submitted for $link" ||template/en/default/bug/process/results.html.tmpl||45
 +
|-
 +
| Login || currently not known ||
 +
|-
 +
|log in || currently not known ||
 +
|-
 +
| check e-mail|| currently not known ||
 +
|-
 +
| logged out|| currently not known ||  
 
|}
 
|}
  
Sorry for the other values we must find where the are defined of if it is save to remove them.
+
You must look for the tranlated responses in templates of the other language.
 
+
'''More is coming soon.'''
+
  
 
=== Developer Resources ===
 
=== Developer Resources ===
  
 
[[Mylyn Offline Refactoring]]
 
[[Mylyn Offline Refactoring]]

Revision as of 17:40, 6 December 2007


Bugzilla Server Optimization

  • Cached Repository Configuration - This page describs the solution taken by Eclipse.org webmasters to reduce the bandwidth requirements due to Mylyn clients updating their repository configuration.

GZIP encoding and content negotiation

The Mylyn Bugzilla Connector has been modified to accept gzip encoding on all requests, and will do content negotiation. See bug 205708.

Preventing excessive logfile fill up

  • When running /bugzilla/ locally, one can prevent Mylyn filling up the log files by adding this to httpd.conf:

<DirectoryMatch /bugzilla/ >
    BrowserMatchNoCase mylyn mylyn=1
</DirectoryMatch>
CustomLog "/private/var/log/httpd/access_log" combined env=!mylyn

Users

Langugage Configurations

Since Version 2.2 of Mylyn you can now add support for alternate languages via extension point:

org.eclipse.mylyn.bugzilla.core.languages


Here is an example definition for the English language (en (default)).

<extension 
        point="org.eclipse.mylyn.bugzilla.core.languages"> 
 <language name="en"> 
           <languageAttribute command="error_login" 		response="Login"/> 
           <languageAttribute command="error_login" 		response="log in"/> 
           <languageAttribute command="error_login" 		response="check e-mail"/> 
           <languageAttribute command="error_login" 		response="Invalid Username Or Password"/> 
           <languageAttribute command="error_collision" 	response="Mid-air collision!"/> 
           <languageAttribute command="error_comment_required" 	response="Comment Required"/> 
           <languageAttribute command="error_logged_out" 	response="logged out"/> 
           <languageAttribute command="bad_login" 		response="Login"/> 
           <languageAttribute command="bad_login" 		response="log in"/> 
           <languageAttribute command="bad_login" 		response="check e-mail"/> 
           <languageAttribute command="bad_login" 		response="Invalid Username Or Password"/> 
           <languageAttribute command="bad_login" 		response="error"/> 
           <languageAttribute command="processed" 		response="processed"/> 
           <languageAttribute command="changes_submitted" 	response="Changes submitted"/> 
  </language>
</extension>

Here is the detail description.

We have the following seven Commands defined in Mylyn:

Command Class & Method usage
error_login BugzillaClient.parseHtmlError detect login errrors
error_collision BugzillaClient.parseHtmlError detect a midair collision
error_comment_required BugzillaClient.parseHtmlError detect if a comment is required
error_logged_out BugzillaClient.parseHtmlError detect if the user is logged out
changes_submitted BugzillaClient.parseHtmlError changes are submitted (no real error)
processed BugzillaClient.postTaskData process was successful
bad_login BugzillaTaskHistoryParser.retrieveHistory detect bad login


For every Action there must be one or more responses.

Here is and example where the English responses for bugzilla-3.0.1 were found.

Text File Lin
processed template/en/default/bug/process/header.html.tmpl 37
"Mid-air collision!" template/en/default/bug/process/header.html.tmpl 40
"Comment Required" template/en/default/global/user-error.html.tmpl 241
"Invalid Username Or Password" template/en/default/global/user-error.html.tmpl 822
'bug' => "Changes submitted for $link" template/en/default/bug/process/results.html.tmpl 45
Login currently not known
log in currently not known
check e-mail currently not known
logged out currently not known

You must look for the tranlated responses in templates of the other language.

Developer Resources

Mylyn Offline Refactoring

Copyright © Eclipse Foundation, Inc. All Rights Reserved.