fruitstudios / linkit

Multi-purpose link plugin for Craft CMS
MIT License
152 stars 29 forks source link

Translating doesn't work as expected #100

Open martinhellwagner opened 5 years ago

martinhellwagner commented 5 years ago

We have created a translation file for the LinkIt plugin and placed it under translations/de/linkit.php. This is our translation file:

<?php
return array(
        "Select link type..." => "Bitte wählen...",
        "URL" => "Übersetzungs-Test",
        "Select Category" => "Kategorie auswählen",
        "Entry" => "Eintrag",
        "Select Entry" => "Eintrag auswählen",
        "Email Address" => "E-Mail Adresse",
        "Phone Number" => "Telefonnummer",
        "Open link in new window?" => "In neuem Fenster öffnen?",
);

However, not everything gets translated correctly. In particular, "Category" and "Entry" (as well as "Select Category" and "Select Entry") don't get translated. Trying to translate them globally with a site.php or app.php file doesn't work either. Is it actually possible to translate these, or is it a bug in Craft CMS / Linkit?

Screenshot 2019-05-13 at 11 46 28

maxstrebel commented 4 years ago

Any Information on this? Did you resolve this @martinhellwagner?

martinhellwagner commented 4 years ago

@maxstrebel

Seems like this isn't resolved yet.

maxstrebel commented 4 years ago

@martinhellwagner thanks - stumbled upon the same problem.