New answers tagged i18n-l10n
1
vote
How does importing a contrib module's translations work?
After much debugging I solved this issue by comparing Drupal's behavior with a completely fresh installation. Of course "drush locale-update" is supposed to get translations for contrib ...
0
votes
Accepted
using 2 language switchers in the same node
Drupal supports having one language for the content (controlled by a language switcher block) and a separate language for the site UI.
You can set this up like this:
Add a language switcher block for ...
1
vote
Language-dependent logo
A better answer for the above would be to actually use the language code already provided ( Drupal > 8.2 ) in Twig:
Drupal 8.2-8.7.5:
<img src="{{ base_path ~ directory }}/logos/logo-{{ ...
0
votes
Set a <front> page for different languages?
If you want to allow user input, it's not an easy task. I would do the following:
Create a custom form (not a configuration form), using the Form API, that allows the user to input the path to the ...
1
vote
Translate untranslated strings
Here is a custom function I use in update hooks, to translate some missing translations, just in case you want to do this programmatically:
function translateString($source_string, $translated_string, ...
Top 50 recent answers are included
Related Tags
i18n-l10n × 18897 × 554
8 × 436
views × 196
entities × 128
nodes × 104
taxonomy-terms × 94
theming × 89
routes × 74
6 × 52
path-aliases × 52
users × 50
navigation × 46
forms × 44
uri × 43
blocks × 41
commerce × 32
datetime × 30
search × 29
webforms × 28
multi-sites × 24
redirection × 21
emails × 20
configuration × 19
9 × 19