Questions tagged [language-switching]

51 questions
2
votes
1 answer

Swift update storyboard direction after changing Localize language

I am new to Swift and I am trying to change the application views direction from LTR to RTL when the user click Arabic language button. So far I have this code below and all the text changed correctly unless the direction. The direction works only…
rand
  • 515
  • 2
  • 5
  • 14
2
votes
2 answers

Drupal 8 language switcher theme file

Where I can find drupal 8 language switcher block and/or theme file ? I have been looking quite many blogs and forums for this but I either have not the files or not such code in file(s) they suggest. Thought there is modules like switcher dropdown…
2
votes
0 answers

Wordpress polylang with polylang slug plugin lang switch not working

For a current Wordpress project we used the polylang plugin. But because we had to have the same slug for all languages we also used the polylang slug plugin. Example: www.yourdomein.com/nl/my-slug www.yourdomein.com/en/my-slug Everything went well,…
Joren Van Hocht
  • 845
  • 1
  • 9
  • 21
2
votes
4 answers

Switching languages on a website with PHP

I'm just looking for some advice. I'm creating a website that offers (at least) 2 languages. The way I'm setting it up is by using XML files for the language, PHP to retrieve the values in the XML nodes. Say you have any XML file, being loaded as…
jnkrois
  • 658
  • 1
  • 12
  • 30
1
vote
2 answers

Language switcher - link changes URL

I am using the Transposh Wordpress plugin to make a site bilingual. The plugin comes with a dropdown language selector, but I would like to instead place a link in the navigation that toggles the site between the two languages. The default site is…
Caroline Elisa
  • 1,246
  • 6
  • 18
  • 35
1
vote
2 answers

How to put the the non-active language as part of a menu in Drupal?

How can I put the non-active language as part of a Drupal menu ? like the following : Thanks!
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
1
vote
2 answers

Can't navigate to another page in same language (PHP lang switcher)

I work on a language switcher on a website in PHP. When I change the langauge with the switcher, the navigation menu's language changes, but when I try to navigate to another page on the nav menu, I get the following error message, and the ?lang=…
1
vote
1 answer

Polylang custom language switcher

How to create a custom polylang language switcher like this https://prnt.sc/vnj7b3 ? Html markup to be used : Parent : EN
1
vote
1 answer

Laravel Language Picker

Good day! I've been working on a Laravel project and I'm getting mad with the Language picker. I have set on my app.php the locale which is the current language and an array named locales where I have all the languages (Spanish and English for…
Juli15
  • 411
  • 7
  • 17
1
vote
1 answer

TYPO3: How can I redirect to the translated homepage of a non translated page?

I have created a multilanguage TYPO3 site with the following languages: german (default) english spanish There are no translations for all pages. For example I have ten pages in german and ten translated pages in english, but only four translated…
Fox
  • 623
  • 8
  • 35
1
vote
1 answer

Is there a way to make header.php switch .css when transposh language is switched?

i am using transposh to translate my website from English to Arabic but when i switch language to Arabic it switches the style.css and it reverse the layout of my website leading to a mess, so i made a new style.css which works with the Arabic…
1
vote
1 answer

PHP: A way to manually switch languages?

I have a website that has the following language switching algorithm: First, it detects the default browser language (I do not know why? but Chrome always gives something like en-EN,ru,lv, so Chrome's default language always is English, it seems).…
Max Krizh
  • 585
  • 3
  • 7
  • 34
1
vote
1 answer

Language switcher for Opencart

Although I find the built-in language management in Opencart close to perfect, I need a language switcher extension for any text anywhere on the site, which would work something like following : {en}text shown only on English site{/en} {de}text…
bogatyrjov
  • 5,317
  • 9
  • 37
  • 61
0
votes
2 answers

Magento language switcher: category names not being translated in url

I have a store with 2 store views for two languages, italian and english. For some categories i have different names for italian and english, like Apparel for EN and Abbigliamento for IT. The problem is that when i am in mystore.com/it/abbigliamento…
pietrosld
  • 21
  • 2
  • 6
0
votes
0 answers

Issue with Language-Specific CSS Styles not Rendering Properly in React App

I'm facing an issue in my React app where I have two language versions, English and Urdu, and I want to apply different CSS styles and content alignments based on the selected language. For the English version, I want the content to be displayed on…