Multi language site with custom url language code

General questions regarding the use of languages in Joomla! 2.5.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Mervin
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jan 12, 2010 2:53 pm

Multi language site with custom url language code

Post by Mervin » Tue Mar 31, 2015 6:55 am

Hi,
Thanks for all,

I am working on a multi language website, where I need to specify a custom url language code for all languages when sef is enabled
For example
1. http://example.com/english-keyword instead of http://example.com/en or http://example.com ( since english is set to default language )
2. http://example.com/german-keyword instead of http://example.com/de
3. http://example.com/french-keyword instead of http://example.com/fr

all sub urls should be created automatically by using above custom language code and the site is virtuemart enabled,

is this possible? if yes kindly give me the solution

Thanks
Mervin Thomas

User avatar
VMCheckout
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Wed Mar 25, 2015 9:41 am
Location: 76, Abbottswood Way, Hayes, London UB3 3PQ
Contact:

Re: Multi language site with custom url language code

Post by VMCheckout » Tue Mar 31, 2015 7:18 am

Yes, it is very important for a website, when user reach on your website from different part of the world, they want to see or buy things from the website in their own language. For this problem you can use "JA Multilingual Extension". It can change your website language according to the user country location.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1599
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: Multi language site with custom url language code

Post by SharkyKZ » Tue Mar 31, 2015 7:21 am

You can change URL language code for each language in Language Manager.

Mervin
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jan 12, 2010 2:53 pm

Re: Multi language site with custom url language code

Post by Mervin » Tue Mar 31, 2015 8:53 am

Hi SharkyKZ,
Thanks for your reply, just to make sure the changes of url language code wont affect any language fuctionalities right?
( loading language content from the other component, plugins, modules ).

And the URL language code is limited character, is it possible to increase the limit?

Thanks
Mervin Thomas

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18869
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Multi language site with custom url language code

Post by infograf768 » Tue Mar 31, 2015 9:49 am

A change in the URL Language Code for a content language will have no effect in functionalities.

sef limit is set to 50 characters in 2.5

Code: Select all

sef` varchar(50) NOT NULL
which is I guess much enough.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Mervin
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jan 12, 2010 2:53 pm

Re: Multi language site with custom url language code

Post by Mervin » Wed Apr 01, 2015 5:38 am

Hi infograf768
Thanks for your reply,

in the admin, I cant add the letters beyond the limit, will this

Code: Select all

`sef` varchar(50) NOT NULL
remove the limit from backend so that we will add more characters?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18869
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Multi language site with custom url language code

Post by infograf768 » Wed Apr 01, 2015 9:14 am

You can't change the limit without editing your database _languages table.
You could run this query with phpmyadmin:

Code: Select all

ALTER TABLE `yourtableprefix_languages` MODIFY sef varchar(255) NOT NULL;
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Mervin
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jan 12, 2010 2:53 pm

Re: Multi language site with custom url language code

Post by Mervin » Thu Apr 02, 2015 2:39 pm

Hi
Thanks for your reply

I removed limit by editing maxlength( it was maxlength=7) for of the field "sef", in the xml file
administrator\components\com_languages\models\forms\language.xml

and thanx for all the replies.
I will check it custom url language code with urls.

Mervin Thomas

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18869
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Multi language site with custom url language code

Post by infograf768 » Fri Apr 03, 2015 6:08 am

That was easier indeed... :)
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Language - Joomla! 2.5”