Multi language site with custom url language code
Moderator: 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.
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.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Jan 12, 2010 2:53 pm
Multi language site with custom url language code
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
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
- VMCheckout
- 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
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.
-
- Joomla! Hero
- Posts: 2908
- Joined: Fri Jul 05, 2013 10:35 am
- Location: Parts Unknown
Re: Multi language site with custom url language code
You can change URL language code for each language in Language Manager.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Jan 12, 2010 2:53 pm
Re: Multi language site with custom url language code
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Multi language site with custom url language code
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
which is I guess much enough.
sef limit is set to 50 characters in 2.5
Code: Select all
sef` varchar(50) NOT NULL
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Jan 12, 2010 2:53 pm
Re: Multi language site with custom url language code
Hi infograf768
Thanks for your reply,
in the admin, I cant add the letters beyond the limit, will this
remove the limit from backend so that we will add more characters?
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Multi language site with custom url language code
You can't change the limit without editing your database _languages table.
You could run this query with phpmyadmin:
You could run this query with phpmyadmin:
Code: Select all
ALTER TABLE `yourtableprefix_languages` MODIFY sef varchar(255) NOT NULL;
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Jan 12, 2010 2:53 pm
Re: Multi language site with custom url language code
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Multi language site with custom url language code
That was easier indeed...
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group