![]() |
|
multilanguage switch without Javascript - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Translating (https://forum.zenphoto.org/forum-8.html) +--- Thread: multilanguage switch without Javascript (/thread-9618.html) Pages:
1
2
|
multilanguage switch without Javascript - tunafish - 11-02-2012 I was wondering why the language selector uses Javascript? ` I am now changing to just: [img]/zenphoto/zp-core/locale/nl_NL/flag.png[/img] ` multilanguage switch without Javascript - acrylian - 11-02-2012 You have read this? http://www.zenphoto.org/news/multi-lingual-sites multilanguage switch without Javascript - tunafish - 11-02-2012 Yes acrylian, several times. [quote] Enable the seo_locale plugin which provides language change via URL multilanguage switch without Javascript - acrylian - 11-02-2012 Ok, just wanted to be sure. The dynamic locale javascript is actually not of interest to the crawler. It should follow the links in your site map that you either submit directly or via your robots.txt. The site map should contain different links to different language versions. Zenphoto itself does not really care about the url regarding that as the language setting is stored in cookies foreach visitor. If Google does not follow that I have no idea right now... Porbably the url part of the seo-locale needs to be there anytime if enabled. Will have to talk with sbillard about that. multilanguage switch without Javascript - acrylian - 11-02-2012 We probably need to add alternate links as of this: multilanguage switch without Javascript - tunafish - 11-02-2012 Yeah I am telling, I have some very specific keywords that should instantly show up in the SERP's but nothing. mysite.com/fr/some-folder which is how I would prefer as well. What happens right now with ZP with these links? The locale is written to the cookie? multilanguage switch without Javascript - acrylian - 11-02-2012 As said the selected language is stored in a cookie for each visitor. You can use the locale in every link if the seo_locale plugin is enabled, although Zenphoto does not need it. However there is no way to enable this locale in the url permanently as nothing generates it. sbillard is the author of thte seo_locale plugin so he later surely will respond on the technical possibilities. As always if any change will be in 1.4.3 earliest anyway. multilanguage switch without Javascript - sbillard - 11-02-2012 seo locale only process links on the input. It does not generate links. multilanguage switch without Javascript - acrylian - 14-02-2012 The next nightly build will contain an extension to the canonical url option of the html_meta_tags plugin to print alternate language links in the header. It's undocumented in the trunk but the seo_locale plugin must be enabled. multilanguage switch without Javascript - tunafish - 16-02-2012 That's good news acrylian. If I do a Google search for: multilanguage switch without Javascript - acrylian - 17-02-2012 Ok, please try with the html_meta_data addition for the alternate languages and report what happens when Google re-indexes. Changing the language handling would be a quite major thing and result in a lot of incompatibilities. multilanguage switch without Javascript - tunafish - 17-02-2012 I'll do! multilanguage switch without Javascript - acrylian - 17-02-2012 Zenphoto can only be run via either a folder or the root, not both as the htaccess needs one rewrite base. (folder that would be "/folder", root that is "/"). Zenphoto's urls are not language dependent, the seo locale adds that for switching. Zenphoto stores that in a cookie/session. If you want to have fixed urls for each language the whole url generation internally would have to be change which would make a lot of custom usages in custom themes or plugins possibly. Just doing this via htaccess will not really work as that does not "know" about any ZP related settings (for example what languages you actually use). We will try to solve this conveniently for all sides. Sbillard is actually the expert on this. We made this for users conveniently not machines...;-) Strange is, that no one ever complained before! Either no one uses the multilingual feature or they all don't care... multilanguage switch without Javascript - sbillard - 17-02-2012 And in addition, much extra overhead since when you supply the language id in the url it must store the cookie and redirect to the proper url. multilanguage switch without Javascript - tunafish - 17-02-2012 [quote]Strange is, that no one ever complained before! Either no one uses the multilingual feature or they all don't care... btw I also found a multilanguage issue using the sitemap plugin.. for example the photo on the page in Dutch here is what the sitemap rendered:
... multilanguage switch without Javascript - acrylian - 17-02-2012 [quote]I think it's just that no one really tested the indexing of multi language pages acrylian... Regarding the site map: Thanks, that's indeed a bug! multilanguage switch without Javascript - acrylian - 17-02-2012 The site map issue at least should be fixed in tonight's nightly. multilanguage switch without Javascript - sbillard - 17-02-2012 Note that the locale may be set with a query parameter to the URI: So, if you can get your .htaccess to deal with the multilanguage switch without Javascript - acrylian - 17-02-2012 But would that help if Google & Co indeed cannot index multilingual content with the alternate links? But maybe htaccess tricks help us here. multilanguage switch without Javascript - tunafish - 17-02-2012 acrylian, just a quick note, I downloaded the html_meta_tags.php extensions from the nightlys and it seems you forgot to close the alternate link tags. in line 291 |