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"

(Preventing excessive logfile fill up)
(Users)
Line 19: Line 19:
 
*[[Mylyn User Guide]], [[Mylyn_User_Guide#Bugzilla_Connector | Bugzilla Section of User Guide]]
 
*[[Mylyn User Guide]], [[Mylyn_User_Guide#Bugzilla_Connector | Bugzilla Section of User Guide]]
 
*[[Mylyn_FAQ#Bugzilla_Connector | Bugzilla FAQ]]
 
*[[Mylyn_FAQ#Bugzilla_Connector | Bugzilla FAQ]]
 +
=== Langugage Configurations ===
 +
Since Version 2.2 of Mylyn you can define other Language then English by use of the new extension
 +
 +
point org.eclipse.mylyn.bugzilla.core.languages
 +
 +
 +
As an example here the definition for the Language en (default).
 +
  <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>
 +
 +
Here is the detail description.
 +
 +
we have the seven following Commands defined in Mylyn:
 +
{|
 +
!Command||&nbsp;||usage
 +
|-
 +
| error_login||&nbsp;|| to find if there was a problem with login
 +
|-
 +
| error_collision||&nbsp;|| detect a midair collision
 +
|-
 +
| error_comment_required ||&nbsp;||  to detect if a comment is required
 +
|-
 +
| error_logged_out ||&nbsp;||  detect if the user is logged out
 +
|-
 +
| bad_login ||&nbsp;||  detect  bad login
 +
|-
 +
| processed ||&nbsp;||  process was successful
 +
|-
 +
| changes_submitted ||&nbsp;||  changes are submitted
 +
|}
 +
 +
 +
For every Action there must be one or more responces
 +
 +
Here how to find the translated responce for bugzilla-3.0.1 for english. Now you most only look for the correct valuesin the other language<br>
 +
{|
 +
!File ||Line||Text
 +
|-
 +
| /template/en/default/bug/process/header.html.tmpl ||37|| processed
 +
|-
 +
| /template/en/default/bug/process/header.html.tmpl ||40|| "Mid-air collision!"
 +
|-
 +
| template/en/default/global/user-error.html.tmpl||241|| "Comment Required"
 +
|-
 +
| template/en/default/global/user-error.html.tmpl||816|| "Invalid Username"
 +
|-
 +
| template/en/default/global/user-error.html.tmpl||822|| "Invalid Username Or Password"
 +
|-
 +
| template/en/default/bug/process/results.html.tmpl||45|| 'bug' => "Changes submitted for $link"
 +
|}
 +
 +
Sorry for the other values we must find where the are defined of if it is save to remove them.
 +
 +
More is comming soon.
  
 
=== Developer Resources ===
 
=== Developer Resources ===
  
 
[[Mylyn Offline Refactoring]]
 
[[Mylyn Offline Refactoring]]

Revision as of 18:16, 5 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 define other Language then English by use of the new extension

point org.eclipse.mylyn.bugzilla.core.languages


As an example here the definition for the Language en (default).

 <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>

Here is the detail description.

we have the seven following Commands defined in Mylyn:

Command   usage
error_login   to find if there was a problem with login
error_collision   detect a midair collision
error_comment_required   to detect if a comment is required
error_logged_out   detect if the user is logged out
bad_login   detect bad login
processed   process was successful
changes_submitted   changes are submitted


For every Action there must be one or more responces

Here how to find the translated responce for bugzilla-3.0.1 for english. Now you most only look for the correct valuesin the other language

File Line Text
/template/en/default/bug/process/header.html.tmpl 37 processed
/template/en/default/bug/process/header.html.tmpl 40 "Mid-air collision!"
template/en/default/global/user-error.html.tmpl 241 "Comment Required"
template/en/default/global/user-error.html.tmpl 816 "Invalid Username"
template/en/default/global/user-error.html.tmpl 822 "Invalid Username Or Password"
template/en/default/bug/process/results.html.tmpl 45 'bug' => "Changes submitted for $link"

Sorry for the other values we must find where the are defined of if it is save to remove them.

More is comming soon.

Developer Resources

Mylyn Offline Refactoring

Back to the top