Skip to main content

Auto Language String Export

Automatically capture and compile all language constants from your component โ€” no string left behind.

What Is Auto Language String Export?

Auto Language String Export in JCB ensures that all translatable text in your component โ€” including labels, tooltips, descriptions, button titles, and even field names โ€” is automatically exported into proper Joomla INI language files during compile time.

Instead of manually tracking or copying every string, JCB scans your blueprint for any value that can (or should) be translated and exports it into structured language files. This includes both frontend and backend languages and supports per-version, per-component packaging.

It simplifies internationalization, makes components multilingual-ready out of the box, and ensures consistent translation key management.

Key Features

  • ๐ŸŒ Automatic Extraction: During every compile, JCB detects and extracts language strings from:
    • Fields
    • Views & Layouts
    • Menus, Titles, Toolbars
    • Config XML files
    • Snippets, Templates, and Custom Admin Views
    • Joomla Form definitions (e.g., filter/search fields)
  • ๐Ÿ“ INI File Generation: JCB creates standard Joomla INI files:
    • en-GB.com_yourcomponent.ini (frontend)
    • en-GB.com_yourcomponent.sys.ini (admin)
    • Plus versioned folders for multi-version support (J3, J4, J5)
  • ๐Ÿง  Dynamic Key Generation: Each string is given a meaningful, consistent language key (e.g., COM_MYCOMPONENT_FIELD_PUBLISHED_LABEL) based on entity type, name, and context.
  • ๐Ÿ”„ Prevents Duplicates: Existing keys are matched to their values and not regenerated unless changed, preserving translation memory across builds.
  • ๐Ÿงพ Supports Custom Snippets & Templates: Any text within templates or custom layouts marked as translatable is also exported.
  • ๐Ÿ” Debug View for String Count: After compile, the summary includes how many language strings were exported or updated.
  • ๐Ÿ“ค Excel Import/Export Compatible: Works seamlessly with JCBโ€™s language Excel tool for translators โ€” supporting export of all strings and re-import of translated versions.
  • ๐Ÿ”ง Per-Version Language Sets: Generate language files scoped to Joomla versions, if using Joomla Powers or dynamic logic that differs across J3โ€“J5.

Use Cases

  • ๐Ÿงฉ Automatically generate translatable labels for every field in your component
  • ๐ŸŒ Prepare multilingual support in seconds โ€” without hunting for each string
  • ๐Ÿ“˜ Build client-ready components that follow Joomla language standards
  • ๐Ÿ’ผ Hand INI files to translators or export everything into Excel format for bulk translation
  • ๐Ÿ” Regenerate all language files after content changes, with no manual editing

How It Works

  1. During compile, JCB scans your entities (fields, layouts, views, config, etc.).
  2. Any value marked or detected as translatable is converted into a language constant.
  3. The constant is added to the appropriate INI file with the original value as the translation string.
  4. Files are written to the component's language folder, with per-version support.

๐Ÿง  Pro Tip: You can customize the prefix and key patterns in JCBโ€™s language settings โ€” making it easy to namespace large projects.

Learn More

  • ๐Ÿ“˜ JCB Wiki: Language Management
  • ๐ŸŽฅ Video: Multilingual Joomla Components with JCB
  • ๐Ÿงพ Reference: Excel Language Export Tool
  • ๐Ÿ”— Joomla Docs: Language File Structure

Conclusion

Auto Language String Export saves you from tedious translation management. Whether youโ€™re building a personal extension or distributing a commercial multilingual product, this feature ensures your Joomla components are cleanly internationalized โ€” automatically, reliably, and ready for global use.