Translation Debugger
The CX Debugger (Content Translation Debugger) is a specialized diagnostic tool hosted on Toolforge that assists developers and translators in debugging, monitoring, and analyzing the Content Translation system used across Wikipedia. It provides insights into translation workflows, identifies issues in the translation pipeline, and offers debugging capabilities for the Content Translation extension.
- Tool URL: https://cxdebugger.toolforge.org/
Purpose and Use Cases
[edit]The CX Debugger serves several critical functions:
- Translation Analysis: Examine ongoing and completed translation tasks across different language pairs
- Issue Diagnosis: Identify and troubleshoot problems in machine translation integration
- Content Preview: Review how source content is being processed and formatted for translation
- Workflow Debugging: Understand the translation pipeline and identify bottlenecks or failures
- Quality Assurance: Monitor translation metadata and publication status
Core Interface Components
[edit]1. Translation Debugger Module
[edit]The primary interface for debugging active translations. This module allows you to inspect the state of individual translation jobs and trace issues through the translation workflow.
Key functions:
- Track translation progress in real-time
- Examine machine translation output and quality scores
- Inspect template and reference handling
- Monitor adaptation processes
2. Template Debugger
[edit]A specialized subsection dedicated to analyzing how Wikipedia templates are being processed during translation.
Key capabilities:
- Validate template conversion between language wikis
- Inspect template parameter mappings
- Identify template incompatibilities
- Review template adaptation logic
3. Recent Translations
[edit]A chronological view of recently created translations with filtering and search capabilities.
Features:
- List translations by timestamp
- Filter by source and target language
- Display translation metadata (ID, status, translator)
- Quick access to specific translation records
Key Data Fields and Sections
[edit]Information Panel
[edit]Displays comprehensive metadata about the selected translation:
- Source Language: Language code of the origin article
- Target Language: Language code for the translation destination
- Source Title: Name of the original article being translated
- Translation ID: Unique identifier for tracking the translation record
Translation View
[edit]Shows the actual translation content with detailed information:
- Machine Translation Output: The initial automated translation provided to the translator
- Translator Edits: Modifications made by human editors
- Segment Analysis: Breakdown of individual translated segments
- Status Indicators: Current state of the translation (draft, published, abandoned)
Article Preview
[edit]A rendering preview showing how the translated content appears:
- Visual Layout: How the translated article will look when published
- Format Validation: Ensures proper formatting and structure
- Reference Display: Shows how citations and references are rendered
- Link Validation: Verifies interlanguage links and internal links
Wikitext Tab
[edit]Raw wikitext representation of the translation for technical review:
- Source Wikitext: Original markup from the source article
- Translated Wikitext: Generated markup with translations applied
- Template Code: Raw template syntax used in the translation
- Reference Markup: Citation and reference markup in wikitext format
Workflow: Using the CX Debugger
[edit]Basic Navigation
[edit]- Access the Tool: Navigate to [1]
- Select Debugger Type: Choose between Translation Debugger, Template Debugger, or Recent Translations
- Specify Languages: Select source and target language pairs from dropdowns
- Search/Filter: Use the search interface to locate specific translations by ID, title, or translator
Debugging a Translation
[edit]1. Locate the translation record using the Recent Translations view or search function
2. Note the Translation ID for direct reference
3. Navigate to the Information section to verify source and target metadata
4. Review the Translation View to compare source content with translated output
5. Check the Article Preview to assess formatting and layout
6. Examine the Wikitext tab for markup-level issues
7. Document any findings using the Translation ID for bug reports
Investigating Template Issues
[edit]1. Access the Template Debugger module
2. Select the problematic translation
3. Review template parameter mappings
4. Verify template names are correctly adapted for the target language
5. Check for unsupported or deprecated template syntax
6. Compare with template specifications on the target wiki
Common Debugging Scenarios
[edit]Machine Translation Quality Issues
[edit]- Check the machine translation output in the Translation View
- Verify language pair support in the system configuration
- Review segment-level translation scores
- Compare with recent similar translations for patterns
Template Adaptation Failures
[edit]- Use Template Debugger to inspect parameter mappings
- Verify target wiki has the required template before reporting bugs
- Document template names and parameters in bug reports
- Check Wikimedia task tracker for existing reports
Reference and Citation Problems
[edit]- Examine Wikitext tab for reference markup
- Verify reference template names are supported in target language
- Check URL and citation metadata integrity
- Review article preview for proper reference rendering
Formatting and Structure Issues
[edit]- Review Article Preview for visual layout problems
- Check Wikitext for proper section structure
- Verify list and table formatting
- Inspect link syntax and interlanguage link creation
Data Structure and Storage
[edit]The CX Debugger accesses translation data stored in the Content Translation database on Toolforge:
- Database: s53069__cxdebugger_p (typical naming convention)
- Data Format: JSON-based translation records with metadata
- Updates: Real-time updates as translations progress through the pipeline
- Retention: Historical records maintained for audit and analysis
Integration with Content Translation System
[edit]The CX Debugger operates as a companion tool to the main Content Translation extension:
- Data Source: Pulls information from the same backend database as the translation tool
- Real-time Sync: Reflects current state of translations and templates
- Debugging Support: Provides diagnostic capabilities not available in the user-facing interface
- Developer Access: Primarily intended for developers, translators, and Wikimedia staff
Best Practices
[edit]For Debugging Translations
[edit]- Always document the Translation ID when reporting issues
- Include screenshots of the Article Preview and Wikitext tabs in bug reports
- Check Recent Translations for similar issues and patterns
- Test fixes against multiple language pairs if applicable
For Template Issues
[edit]- Use the Template Debugger before assuming translation engine failure
- Verify target wiki has the required template before reporting bugs
- Document template names and parameters in bug reports
- Check Wikimedia task tracker for existing reports
For Quality Assurance
[edit]- Review a random sample of Recent Translations for quality consistency
- Use Article Preview to catch formatting issues early
- Monitor for recurring patterns in machine translation errors
- Compare outputs from different translation services
Troubleshooting
[edit]Tool Not Responding
[edit]- Verify network connectivity to Toolforge
- Check browser console for JavaScript errors
- Clear browser cache and reload the page
- Verify your wiki account has appropriate access permissions
Data Not Displaying
[edit]- Ensure you've selected valid source and target languages
- Verify the Translation ID exists and is correctly formatted
- Check that the translation hasn't been deleted
- Review browser network tab for API errors
Missing or Incorrect Metadata
[edit]- Refresh the page to sync with the database
- Verify the source article exists and is accessible
- Check for recently completed translations (may have slight sync delays)
- Report persistent issues through Wikimedia bug tracker
Resources and Support
[edit]- Wikimedia Phabricator: Report bugs and request features at
- Content Translation Documentation
- Toolforge Wiki
- Wikimedia Developer Community: Connect with other developers on Wikimedia IRC or Slack
Technical Requirements
[edit]- Browser: Modern web browser with JavaScript enabled
- Access: Registered Wikimedia account (for some features)
- Knowledge: Familiarity with Wikipedia markup (wikitext) recommended
- Database Access: Developer credentials for advanced database queries (optional)