hi
for some reason, fa prefix (persian) is not working. Gives error. In one of my site I changed to prefix to "farsi", where it did work. But I change prefix but links stay same, "fa".

CommentFileSizeAuthor
#2 edit lang.jpg18.91 KBnerkn

Comments

PixelClever’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure what you changed on your site, but the language prefix is taken from the language table under from column "language" which should represent the current settings. If you try switching the language just by typing in farsi/node/2, for example, does it switch the language?

nerkn’s picture

StatusFileSize
new18.91 KB

We have prefix coloumn too, and we can change language prefix set from Edit language. I cant use "fa" prefix, for unknown reason I dont allowed to use. I should use any thing other than fa for only path without changing made traslations

nerkn’s picture

Status: Postponed (maintainer needs more info) » Needs review

Here is the patch to get prefixes from language->prefix coloumn.

120 th line to 126th line at languageinterface.module file:

  if ($urlarray[0] == $language->prefix) {
    array_shift($urlarray);
  }
  
  $prefix = db_result(db_query('SELECT prefix FROM {languages} WHERE language = "%s"', $lang)).'/';
  //$prefix = $lang.'/';
PixelClever’s picture

Status: Needs review » Postponed (maintainer needs more info)
PixelClever’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)

Seems like a reasonable patch. I will add it in the next release.

By the way please don't use the personal contact form for discussing bug reports.

metabits’s picture

I have the same problem, I think. I have English and Spanish, and the links in Spanish display in the block as they should, with es/prefix, but English ones they loose their prefix which is set to en in my languages settings. I tried the patch but I get a parser error.

Also I got a weird behaviour with a path. In my URLs alias I set:

system path (from image module):
image

path for spanish:
galerias

path for english:
galleries

of course each of them will get their prefixes from the system as well. With the other block, this was working properly, but now not anymore.

Thanks for your work, folks.

psc

j0nathan’s picture

subscribing...

I have the same issue as "English ones they loose their prefix which is set to en in my languages settings".
English is my default language.
Sorry I haven't tried the patch.

benkewell’s picture

can a new release be committed for the module with this patch?
as the current version (6.x-2.1) doesn't contain this patch yet

geodaniel’s picture

Regarding the English language being removed, it seems like a separate issue to the one in this thread, but the patch in #467924: Module is not "clean URL" setting-aware should sort it out I think.

bibo’s picture

Thanks for the patch. Still waiting for the commit though ... 9 months is a long time :/.

PixelClever’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.