Logo per language

This project is not covered by Drupal’s security advisory policy.

Logo per language sets a different site logo for each language. It overrides the logo setting of every installed theme, so the site branding block, theme templates and any code that reads the theme logo get the logo of the current language.

Use it when the logo contains words, such as the site name or a slogan, that need a translated version.

Features

  • One settings page, Administration » Appearance » Logo per language, with an upload field for each language.
  • The logos apply to every installed theme.
  • Every language can have its own logo, including a default language without a URL prefix.
  • Languages without a logo keep the logo set on the Appearance settings page.
  • The language code is added to uploaded file names, for example logo-fr.svg. Logos are always stored in the public file system, so visitors can see them on sites whose default file system is private.
  • Each logo is registered as a file in use, so the Files page shows where it is used. Replaced or removed logos lose that usage but are kept, as core keeps old theme logos, so cached pages that still show them do not break.
  • Pages are cached per interface language, and saving the logo settings clears the rendered cache, as core does when theme settings are saved.
  • The Appearance settings page shows a notice when logos are set per language. It keeps showing the theme's own logo there, so saving that page does not copy a per-language logo into the theme settings.
  • Deleting a language removes its logo setting and its file usage.
  • Uninstalling the module restores the logo set on the Appearance settings page.
  • The settings live in one configuration object, logo_per_language.settings, with a configuration schema.

Post-installation

  1. Go to Administration » Appearance » Logo per language (/admin/appearance/logo-per-language). The page needs the Administer themes permission.
  2. Upload a logo for each language that needs one. Allowed types: png, gif, jpg, jpeg, apng and svg.
  3. Click Save configuration.

Recommended modules/libraries

  • Config Ignore: the logo settings store file paths, and the files themselves are not part of the configuration. To keep different logos per environment, exclude logo_per_language.settings from configuration export.

Similar projects

  • Logo per language (lpl) stores logos per theme and changes only the branding block, for languages with a URL prefix. This module has one settings page for all themes, overrides the theme logo setting itself, and covers every language.

Looking for Drupal support?

Premium support from the project maintainers
Get in touch with us
Supporting organizations: 
Development and maintenance

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Multilingual
  • Created by pcambra on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases