All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
80 views

URL alias with multi-lingual site access doesnt work

i have two systems, one live system and a local one, which are almost the same configured. i have a node which is in english (/testEN) and basic translated in german(/testDE). if i call on my local ...
2
votes
1answer
2k views

How to get language prefix in Drupal 8 [duplicate]

I am building internal in my custom module that I am porting to Drupal 8: https://www.drupal.org/project/taxonomy_facets I need to get a current language prefix so I can prepend it to the link. I ...
1
vote
1answer
28 views

Is it possible to show contents in a specific sites for multilingual site?

Is it possible to show contents in a specific sites for multilingual site? I have a site of multilingual support with english and bangla language. There is a content type blog. so Now I want to ...
1
vote
0answers
303 views

Adding a URL Prefix

We currently have a product catalog that has a URL structure like this: www.domain.com/catelog/product-category www.domain.com/catelog/product-category/product-1 going forward we would like to ...
1
vote
1answer
450 views

How to alter and rewritte current path programmatically in Drupal 8?

Here is what I'm trying to achieve : I have a multilingual site with 2 languages (en, fr) but I I also have 4 iso_codes (us, gb, fr, be). I want Drupal to understand that /us and /gb for example is ...
1
vote
2answers
592 views

Remove language prefix from custom URL

Our site exists in several languages. I have installed xmlsitemap module and default link looks like sitename/en/sitemap.xml I need to remove language prefix just for this link. It seems like there's ...
0
votes
1answer
52 views

Why does the Path Breadcrumb module change URLs?

I have a multilanguage site. I had a link to node/drupal_get_path_alias('node/15') and works perfectly identifying the language of the site, so it gets the correct path ("products" for english, "...
1
vote
2answers
92 views

How to translate URL aliases?

I have the following path mysite/basic-page/about-us I need translate it to:
1
vote
0answers
96 views

Domain Access + subfolders + languages

I have configured website with Drupal 7. Site is using Domain Access module. We use this module to make something like multi-site. We have one launch page on which you can choose desired subsite. All ...
0
votes
1answer
457 views

View that link to content in other languages

I have a multilingual site where some content types are translated, and others will remain English only. I'd like to have lists of English content on other language sites. I've created a view that ...
0
votes
2answers
70 views

print full url template

I'm building a multi language site but I'm facing a problem with an url. In my template i have the following print rule for an url <?php print $base_url.'/#project';?> The base url only prints ...
2
votes
0answers
283 views

Remove default language from front page url

I have a drupal 7 site which was originally set up in English. The home page url would display www.mysite.com and other languages with /es /de /it after the url. After changing the default language ...
0
votes
3answers
979 views

Get link for same page in different language

I want to display a link to the spanish version of a page in my template, but another module is removing the language option on my link function: l('Visit this page in Spanish', "node/{$node->nid}"...
1
vote
1answer
772 views

URL rewrite of localisation with nginx

I'm having trouble with changing the url of a drupal localisation. All urls are clean, but contain a non-clean localisation part; ?q="language", e.g. ?q=de, ?q=fr. The site runs on nginx + mysql + ...
0
votes
1answer
406 views

Is there a function to get the system path for the current language?

If I'm using multiple languages on the site with path prefixing, is there a quick way to get a system path for the current language? For example, if the current language is English, and I'm ...
1
vote
1answer
169 views

Translating taxonomy list name for a custom link in rewrite result field

Very hard to describe this problem in a title. Let me explain: I have a taxonomy list named 'Meubelen'. I translated the name to 'Meubles' for the French version of the website. I created a view of ...
0
votes
0answers
1k views

%20 being added to the end of url

i have a dual language site (English and Arabic). I have a view that has pix that link to different parts of the site. My problem is that when im not logged into the site and im in the arabic version ...
2
votes
1answer
440 views

How to redirect to a translatable page

I have a bilingual site and I want to redirect to a custom page, which has two language versions, upon form submitting. This may be a pretty basic thing, but I am only starting to learn how to code ...
1
vote
1answer
95 views

Links in map markers are for default language pages, not localized

I am building a multilingual website where a page will display all locations on a map. Each marker on a map has a link to the location's page. However, only links to English pages are displayed in ...
0
votes
1answer
2k views

create a webform node with multi lingual language [duplicate]

How to create a webform node with multi lingual language like french,spanish in drupal 6. so that when i hit the url it should display in particular language? webform localization is not supporting in ...
2
votes
1answer
2k views

Two URL aliases for one node in menu

In my case I do not care about crawler penalty. I have multilingual site with menu. I use Path module for URL aliases. The URL aliases are language-specific. I need to create two menu items with ...
0
votes
3answers
2k views

always include language code in url

For SEO reason I need my site to always use language code in the URL. At the moment mysite.com/en/news is also accessible through mysite.com/news, according to my SEO contact, mysite.com/news should ...
3
votes
3answers
9k views

How to get absolute url with different domain language prefix

What is the best way to get absolute url with correct language prefix? The url() function accepts language parameter but it seems that it is not using it to generate the prefix - only to get ...
7
votes
5answers
3k views

Proper way to get the base path when including an image from a module?

When using just drupal_get_path() to include an image from a module directory, this produces non-existent urls when using language prefixes. I've seen a couple of modules prepend base_path() to deal ...
2
votes
0answers
929 views

Remove language prefix from file url

More specifically url's to files in the body text. So in my body text I have manually added <a href="/sites/default/files/some_file.pdf" />some file</a> to link to a file. I'm using the ...
2
votes
0answers
102 views

How to alter paths, that are translated by i18n?

I am using language selection by language domain in Drupal 7. That has the side effect, that all internal Drupal paths being created as absolute paths by the i18n module. To get sub-domains working ...
0
votes
1answer
189 views

Removing prefix for default language breaks all the link

Since I built the site I always used language prefix "en" for my site. English is my default language. The thing is our SEO Expert said that this is content duplication for Google and we might get ...
3
votes
3answers
5k views

Drupal 7 menu translation and url aliases

I am building a multilingual site with Drupal7 and enabled i18n and menu translation module. I can translate menu items and it is working fine with only one little problem: If the menu item points to ...
4
votes
1answer
417 views

Custom language negotiation module not working

I'm writing a custom module to allow the use of language a language suffix (of the form -eng or -fra) rather than the standard prefix. I'm using the language's configured prefix and have a number of ...
2
votes
2answers
1k views

Any way to get localized term names in node paths

I have a node type "news" with an included term reference field named "newscategory". i18n-module incl. taxonomy-i18n is also installed, vocabulary is translatable and all terms are translated. But ...
0
votes
1answer
1k views

Detecting language and rewriting url

Drupal can automagically detect the language to use when displaying content : Based on URL Based on User preference Based on Browser language. However, when I request a url like : http://mysite.com/...
0
votes
0answers
138 views

Wrong canonical link

When I inspected the rendered source code of my page I noticed, that the canonical link is sort of broken, in that it has the language prefix doubled as in: mysite.com/en/en/page.html. When I click ...
1
vote
1answer
4k views

Remove language prefix from files URL

I have a drupal installation in a sub folder (demos/drupal) and it supports two languages (english -default- & arabic). I imported the drupal content from an old site. My problem is that the ...
0
votes
1answer
100 views

How to set the language to Swedish when users visit example.se and to French when visiting example.fr?

I have a Drupal 7 website in 18 languages. The main URL is example.com and 18 other international domains are domain aliases of the main URL (example.de, example.fr, example.se, ...). The Language ...
1
vote
0answers
200 views

Go to current translated node url?

Im currently developing a module, that implements an ios-like-switch to change the language (max number of two languages!). The switch is a designed checkbox with the not-default language as the only ...
1
vote
0answers
167 views

node gets wrong internal path - translations

its a bit twisted, but to describe the situation: whe have a multilingual site but you don't select by language rather by country. (you've for instance BE-FR in your path and not simple fr) and since ...
3
votes
1answer
1k views

Redirect language-specific URL to correct path prefix

Drupal 7. I have a multi-language website. Let's call it website.com. At admin/config/regional/language/configure/url I have selected "Path prefix" as the "Part of the URL that determines language". ...
3
votes
4answers
3k views

path issue with translated (entity_translation) nodes

I use Drupal 7, entity_translation and pathauto with 2 languages: EN, FR. I create a new content (of a content type with "entity translation") and I title it "test". Since Generate automatic URL ...
1
vote
0answers
115 views

Cannot get translation path views

I used drupal 6.25 and views and translation modules . I do not know why not I am not getting my translation path but another page translated. I noticed I created 2 views but I cannot get the ...
2
votes
1answer
168 views

en/ language prefix remains after uninstalling internationalization module and dependencies

I have cloned an existing internationalized Drupal website to create a new website. This new website does not need internationalization and translation. Therefore, I uninstalled all corresponding ...
2
votes
2answers
1k views

URL function with i18n localization

I'm using the Rate module for voting. When an anonymous user clicks on the voting widget, the user is redirected to a url "user/login-to-rate". I'm also using i18n for localization. The issue with ...
2
votes
2answers
5k views

How to redirect URL with language prefix to the same URL with no prefix (default language)

I have installed i18n module so two languages Japanese and English are available. I have set Japanese to the default language and also "language Language negotiation" to "path prefix only". So all the ...
1
vote
1answer
1k views

Cache page based on cookie value and URL

I am working on a site that is multi-lingual as well as multi-country. This means that pages will show content differently depending on a country cookie that is set when the user first visits the site....
0
votes
1answer
999 views

i18n, path alias doesn't work

I set path auto alias of content type page to: [language]/[title-raw] I am using Content Translation module. I created english version of selected page. Alias was generated ok. But even if I am ...