Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1493525

    Hello, I am using LayerSlider 8.1.2. I would like to switch this great plugin to German in the backend, but I am unable to do so. Here’s what I’ve already done:

    To deactivate the integrated LayerSlider in the Enfold theme:

    1. I added the entry add_theme_support(‘deactivate_layerslider’); to the functions.php file of my child theme.
    2. I copied the unzipped LayerSlider folder via FTP to /wp-content/plugins/.
    3. I activated LayerSlider on the Plugins page in WordPress.
    4. Everything worked correctly.

    To switch LayerSlider to German:

    1. I translated the LayerSlider-en_US.pot file with Poedit.
    2. I copied the LayerSlider-de_DE.po and LayerSlider-de_DE.mo files via FTP to /wp-content/plugins/LayerSlider/assets/locales.
    3. The site language in WordPress under Settings → General is set to “German”.
    4. My WordPress profile language is set to “Site Default”.

    The German language does not appear as an option in the LayerSlider backend dropdown menu. Only the pre-installed languages are available.

    Kreatura writes:
    “It’s also expected behavior that the LayerSlider language dropdown only lists the built-in languages shown in your screenshot. Custom translations added manually won’t appear there, but they’re loaded automatically based on WordPress’ active locale.”

    In the LayerSlider backend under General Settings, the language is set to “Site default”, but German still isn’t loading. What do I need to change?

    Best regards

    #1493548

    on tmpl-plugin-settings.php add your edited language manually – and upload it to the assets/templates folder via ftp

    then you find your language in the drop down.:

    a reload of the page will then switch to your lang files

    i inserted in that drop-down list my german lang option:

    <select name="ls_custom_locale" data-confirm="<?= __('The selected language has been changed. Reload the page to apply the new language?', 'LayerSlider') ?>">
    	<option value="auto" <?php echo ( $custom_locale === 'auto' ) ? 'selected' : ''?>><?php _e('Site default', 'LayerSlider') ?></option>
    	<option value="en_US" <?php echo ( $custom_locale === 'en_US' ) ? 'selected' : ''?>>English (United States)</option>
    	<option value="fr_FR" <?php echo ( $custom_locale === 'fr_FR' ) ? 'selected' : ''?>>Français</option>
    	<option value="de_DE" <?php echo ( $custom_locale === 'de_DE' ) ? 'selected' : ''?>>Deutsch</option>
    	<option value="hu_HU" <?php echo ( $custom_locale === 'hu_HU' ) ? 'selected' : ''?>>Magyar</option>
    	<option value="uk" <?php echo ( $custom_locale === 'uk' ) ? 'selected' : ''?>>Українська</option>
    </select>

    i only tested it with some of the translations – f.e.:

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.