Skip to content
README.txt 1.96 KiB
Newer Older
* Introduction
* Requirements
* Installation
* Configuration
* Maintainers


INTRODUCTION
------------
Freso's avatar
Freso committed
This module provides icons for language links, both for the Language switcher
block and (optionally) for node links.
Freso's avatar
Freso committed
It is a spin-off from Internationalization (i18n) package.
The default icons provided are PNG images with a fixed height of 12 pixels
and a variable width per the official dimension of the respective flag.
However this module can handle other image types and sizes too.

* For a full description of the module, visit the project page:
  https://www.drupal.org/project/languageicons

* To submit bug reports and feature suggestions, or to track changes:
  https://www.drupal.org/project/issues/languageicons

Freso's avatar
Freso committed

1. Install the module with Composer:
    ```
    $ composer require drupal/languageicons
    ```
See [Installing modules](https://www.drupal.org/node/1897420) for further
information.


CONFIGURATION
-------------

1. Configuring the 'Language switcher' block, Go to admin/structure/block.
Freso's avatar
Freso committed
2. Ensure that 'Language switcher' block is associated with a visible region. If
   unsure, move the 'Language switcher' block to 'Sidebar first' region.
3. Click on 'Save blocks' button.
Freso's avatar
Freso committed
4. To preview simply view any appropriate page. If successful you will see a
   flag on the left side of each language link.
5. There are some configuration options at admin/config/regional/language/icons.
   You can place flags before or after the language link or choose to only
   display the language flag without the language name (pick "Replace link"
   under icon placement to do so). There are some other options so make sure to
   check it out.
Current maintainers:
* Pieter Frenssen (pfrenssen) (https://www.drupal.org/u/pfrenssen)
* Freso (https://www.drupal.org/u/freso)