Posts: 11
Threads: 0
Joined: Jul 2011
Connie Wrote:did you set the $lang-variable in the gsconfig.php as well to "pl_PL"?
You mean in setlocale(LC_ALL, 'pl_PL');? It was commented out (with en_US) as almost the whole content of the file but after the change to pl_PL - its still the same.
Posts: 2,928
Threads: 195
Joined: Feb 2011
no, I meant this, what is described in the wiki,
it might help:
http://get-simple.info/wiki/plugins:i18n#front-end
Cheers, Connie
Posts: 11
Threads: 0
Joined: Jul 2011
i did what you said in the wiki, nothing changed...
Posts: 9
Threads: 3
Joined: Feb 2011
Hi everybody.
At first, the plugin is a absolutely amazing!
Al of my page content and navigation loads perfect.
Although, my navigation doesn't get a redirection in it's selected language.
Like:
default EN language nav: Home - Page2 - page3
home url: '/' or '/index/'
page2 url: '/page2/'
page3 url: '/page3/'
but in ES I get the same url directions
home url: '/' - should be '/index_es/' or something like '/es/page2/'
page2 url: '/page2/' - should be '/page2_es/' or something like '/es/page2/'
page3 url: '/page3/' - should be '/page3_es/' or something like '/es/page3/'
Is it just me, or am I doing something wrong here?
Thanks in advance!!
Posts: 11
Threads: 0
Joined: Jul 2011
2011-07-23, 00:02:09
(This post was last modified: 2011-07-23, 00:02:38 by johnhandem.)
hey,
could you help me to define a current active language, assuming that I don't know php? Despite having screened all pages I still don't know how to set this up - it just doesn't work. How should I use it? Right now, i just have links to every language
Code: <a href="<?php echo htmlspecialchars(return_i18n_setlang_url('cn')); ?>">chinese</a>
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('de')); ?>">deutsch</a>
Posts: 3,491
Threads: 106
Joined: Mar 2010
glennb Wrote:Is it just me, or am I doing something wrong here?
That's how I18N plugins work. Pages are displayed as per browser settings or selected language, but URLs (usually) remain the same.
Posts: 3,491
Threads: 106
Joined: Mar 2010
lanooz Wrote:could you help me to define a current active language, assuming that I don't know php?
This is what Connie meant:
Edit you installed GS root gsconfig.php file, insert this line (anywhere, but maybe better near the end of the file):
(or change to your preferred language)
lanooz Wrote:Right now, i just have links to every language When you follow those links, are the pages rendered as expected? (correct language?)
Posts: 11
Threads: 0
Joined: Jul 2011
I was talking about something else now The thing with the active language so that people would see on the page what language is turned on.
Posts: 3,491
Threads: 106
Joined: Mar 2010
lanooz Wrote:I was talking about something else now Sorry... I thought you hadn't solved that. :-)
lanooz Wrote:The thing with the active language so that people would see on the page what language is turned on. To display/use the current language there's the global variable $language
E.g. insert in your template:
Code: Current language: <?php echo $language; ?>
(if you use that in a function you should first do global $language; )
Don't know if there's a better way... mvlcek?
Posts: 9
Threads: 1
Joined: Jul 2011
2011-07-24, 21:29:24
(This post was last modified: 2011-07-24, 21:40:10 by Thompson15.)
New to get-simple. I don't have to use multi-language feature but need a drop down top menu. I installed plugin I18N. In G-S Admin panel shows I18N Navigation as enabled. In my template I called navigation like this: <div class="sitemenu"> <ul><?php get_i18n_navigation(return_page_slug(), 0, 1, true); ?> </ul>
I am not getting drop down menu result. Instead of 'menu text' some part of page title appear in an unordered form as menu. My css worked fine in one html test page and it is worked with <div class="sitemenu">
<ul><?php get_navigation(return_page_slug()); ?></ul> expect some help
Posts: 2,928
Threads: 195
Joined: Feb 2011
Posts: 9
Threads: 1
Joined: Jul 2011
2011-07-25, 00:20:20
(This post was last modified: 2011-07-31, 01:48:29 by Thompson15.)
I only want to use multi level menu feature of this plug-in. I installed plug-in and put this line: <?php get_i18n_navigation(return_page_slug(), 0, 1, true); ?> . My css support multi-level menu. But page title shows as menu item text when I get navigation with above php. (Instead of menu text of index page : “home’’ page title ‘Welcome to get simple’ shows in menu). This only happens when trying to use multi-level plug-in. Hope somebody can tell me where committed error.
Posts: 1,204
Threads: 30
Joined: Jun 2010
2011-07-31, 07:41:07
(This post was last modified: 2011-08-14, 00:01:11 by BlackRose.)
mvlcek Wrote:The link produced is correct, but the server immediately redirects to the URL without lang parameter.
Maybe you have canonical redirects switched on in your gsconfig.php.
I've run into similar problem both under GS 3.0, and 3.1r520.
When I click on prepared url to change language:
Code: <li><a id="de" href="<?php echo htmlspecialchars(return_i18n_lang_url('de')); ?>" title="Deutsche Version">Deutsch</a></li>[/li]
currently viewed website's language changes, but links in generated menu list don't contain &lang=de at the end.
Canonical redirects are disabled, menu is a flat menu bar, thus I use:
<?php get_i18n_navigation(return_page_slug(),0,0,I18N_SHOW_LANGUAGE); ?>
and it still doesn't work with, and without friendly urls.
What did I miss ?
edit: changing user agent info solved my problems at last.
i18n chooses language version automatically, basing on browser's language.
Addons: blue business theme, Online Visitors, Notepad
Posts: 9
Threads: 1
Joined: Jul 2011
Reference to my post (Post ID: 188). My problem was 'Page Title' appearing as Menu-Text. I checked gsconfig.php and found Canonical redirects was not enabled. I tried with this php call also: <?php get_i18n_navigation(return_page_slug(), 0,0,I18N_SHOW_LANGUAGE); ?> . Result: menu-text starts shows up but Drop down section not showing. I don’t have to use multi-language feature. I am on my first website with get-simple and hopeful.
Posts: 1,204
Threads: 30
Joined: Jun 2010
change I18N_SHOW_LANGUAGE to I18N_SHOW_MENU
Addons: blue business theme, Online Visitors, Notepad
Posts: 9
Threads: 1
Joined: Jul 2011
yojoe Wrote:change I18N_SHOW_LANGUAGE to I18N_SHOW_MENU
Thank you Boss. Worked like a magic
Posts: 184
Threads: 20
Joined: Apr 2010
I am trying the pulldown menu and though on mouseover I can see the subpage link, I cannot focus on the link since as soon as I move out of the main link area and onto the sublink area, the submenu disappears. How do I make it work?
Posts: 661
Threads: 52
Joined: Feb 2011
I am and have been experiancing issues with the 'navigation sorting' portion of this plugin.
The nav sorting works great when I click "Save Navigation Structure". Everything is saved correctly and displays correctly on the website. However anytime I make edits to pages or create new pages it compltely screws up the ordering of the menu on the front end of the website. However, when I go to the "Edit Navigation Structure" page, the order displays correctly, and clicking "Save Navigation Structure" resets the nav on the front end to what it is suppose to be.. Its not the end of the world but its a pain to have to tell my clients to save their nav structure after each page edit.
Has anyone else experienced this?
Edit: Great Plugin btw.. Even with this issue I am far better off with it then without it.
Posts: 2,928
Threads: 195
Joined: Feb 2011
mikeh Wrote:Has anyone else experienced this?
I worked with that as well, but I can't remember that, will try and test
cheers, Connie
Posts: 2,094
Threads: 54
Joined: Jan 2011
andyash Wrote:I am trying the pulldown menu and though on mouseover I can see the subpage link, I cannot focus on the link since as soon as I move out of the main link area and onto the sublink area, the submenu disappears. How do I make it work?
See http://mvlcek.bplaced.net/get-simple/mul...ldown-left for the important CSS styles. Maybe you use something like .sitemenu a:hover ul { display:block; } instead of .sitemenu li:hover ul { display:block; }?
Posts: 2,094
Threads: 54
Joined: Jan 2011
mikeh Wrote:I am and have been experiancing issues with the 'navigation sorting' portion of this plugin.
The nav sorting works great when I click "Save Navigation Structure". Everything is saved correctly and displays correctly on the website. However anytime I make edits to pages or create new pages it compltely screws up the ordering of the menu on the front end of the website. However, when I go to the "Edit Navigation Structure" page, the order displays correctly, and clicking "Save Navigation Structure" resets the nav on the front end to what it is suppose to be.. Its not the end of the world but its a pain to have to tell my clients to save their nav structure after each page edit.
I'll check this.
Posts: 661
Threads: 52
Joined: Feb 2011
mvlcek Wrote:mikeh Wrote:I am and have been experiancing issues with the 'navigation sorting' portion of this plugin.
The nav sorting works great when I click "Save Navigation Structure". Everything is saved correctly and displays correctly on the website. However anytime I make edits to pages or create new pages it compltely screws up the ordering of the menu on the front end of the website. However, when I go to the "Edit Navigation Structure" page, the order displays correctly, and clicking "Save Navigation Structure" resets the nav on the front end to what it is suppose to be.. Its not the end of the world but its a pain to have to tell my clients to save their nav structure after each page edit.
I'll check this.
Nevermind, I figured this issue out! thanks
Posts: 2,094
Threads: 54
Joined: Jan 2011
mikeh Wrote:Nevermind, I figured this issue out! thanks
What was the problem?
Posts: 2
Threads: 0
Joined: Aug 2011
glennb Wrote:Hi everybody.
At first, the plugin is a absolutely amazing!
Al of my page content and navigation loads perfect.
Although, my navigation doesn't get a redirection in it's selected language.
Like:
default EN language nav: Home - Page2 - page3
home url: '/' or '/index/'
page2 url: '/page2/'
page3 url: '/page3/'
but in ES I get the same url directions
home url: '/' - should be '/index_es/' or something like '/es/page2/'
page2 url: '/page2/' - should be '/page2_es/' or something like '/es/page2/'
page3 url: '/page3/' - should be '/page3_es/' or something like '/es/page3/'
Is it just me, or am I doing something wrong here?
Thanks in advance!!
I need this as well. This is real problem, because I want search bots to index my pages correctly so I need for each page unique url. For example:
www.example.com/cz/neco
www.example.com/en/neco
Now there is only www.example.com/neco for each page..no matter on which page U are.
Please can someone fix it?
Thx.
Posts: 2,094
Threads: 54
Joined: Jan 2011
2011-08-17, 07:06:32
(This post was last modified: 2011-09-22, 06:14:13 by nime.)
I18N version 1.8:- supports now URLs with the current language
You need to specify a permalink structure in the website settings in the admin settings and include the placeholder %language%, e.g.:
Code: %language%/%parent%/%slug%/
Additionally you need to modify the rules in your root .htaccess file, e.g. (above permalink structure, english and german languages):
Code: ...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(en|de)/(.*?/)?([A-Za-z0-9_-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Be aware that if a page does not exist in the requested language, the next best language is used and the language in the URL and the actual language will differ.
|