Pages (2):    1 2
Administrator
Administrator
acrylian   17-02-2012, 20:46
#21

Oops, indeed! Fixed for tonight's nightly.

Member
Member
tunafish   17-02-2012, 20:50
#22

Oops :-) I also had to comment out line 250
// $lang = strtr($lang, '_','-');

because the links language is with underscores as from the foreach loop.
that will also add the current active language to the alternate links.

btw... I am just reading on Google Webmaster
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=182192&topic=2370587&ctx=topic

[quote]
Keep the content for each language on separate URLs. Don’t use cookies to show translated versions of the page.

URL parameters like site.com?loc=de Not recommended.

[/quote]
sbillard, any more help with subdomain rewrites would be very appreciated..
I am a noob when it comes to .htaccess and rewrite rules.

Member
Member
sbillard   18-02-2012, 00:33
#23

Sorry, .htaccess is also not a forte of mine. I do not have a way to make that work. Just noting that if someone knows how to rewrite such a link then things will be fine.

Administrator
Administrator
acrylian   18-02-2012, 11:20
#24

[quote]Oops :-) I also had to comment out line 250
// $lang = strtr($lang, '_','-');
[/quote]
I have to look, actually I had to add something like that so this didn't happen actually. In the urls you need locales like "en-En" while the translation - in urls as well - uses "en_EN". Maybe something got confused but I was sure I did test that the current is not included specifically...

I did read that his is written on the Google webmaster. As said we made it for people instead of machines and this is not easily changed.

I am sadly no htaccess expert either but I am not sure this will really help since Zenphoto does not care for the url. Once you are within the language it is nowhere added.

Administrator
Administrator
acrylian   18-02-2012, 15:14
#25

You were right with the underscore. The issue should be fixed now, hopefully...:-)

Member
Member
sbillard   18-02-2012, 20:35
#26

If your host does equate fr.domain.com with domain.com or if you can make a subdomain fr.domain.com to point to the zenphoto installation then you can try out the developement nightly build. There we will select the language from the fr.

My site naturally passes these subdomains to the closest defined subdomain, so all works. But other sites may require that you set up a specific subdomain foreach language.

Member
Member
tunafish   19-02-2012, 00:04
#27

whoa sbillard so you are saying you got it to work?!
Sweeeet! I need to try it out this week.
I don't know yet how I can make subdomains with my MAMP install to try, but I'll give it a try..

acrylian, so the current active language should not be included in the alternate links than?
I am getting the nightly!

Thanks guys!

Administrator
Administrator
acrylian   19-02-2012, 10:31
#28

For using domains or virtual hosts you need to buy MAMP Pro I think.

Yes, it should now work as expected. If not just let me know..:-)

Member
Member
tunafish   20-02-2012, 10:08
#29

sbillard, I just tested the DEV version on my MAMP install and it works!
Great achievement, thanks so much!

The dynamic-locale plugin to switch the languages still dominates over the subdomain but I think that would not be to difficult to get it to work.
I was thinking what else needs to be changed.. any references to the ?locale variable.
RSS feeds, the sitemap plugin, acrylian's HTML canonical & alternate language meta's,.. Anything else?
Could you maybe tell me where the guts of the code reside?
[b][EDIT, ok I am just leraning about the Trac, it's here right? http://www.zenphoto.org/trac/changeset/9290][/b]
Could I port them over to my current 1.4.2.1 release?
Are you planning this feature in a future update?

Anyway, just for reference for anyone wanting to add subdomains in a local MAMP install:

  1. Edit Mac hosts file
    open Terminal and type sudo pico /etc/hosts
    enter password at the prompt
    use the arrow keys to scroll down to the end of the hosts file and add the following lines:
    127.0.0.1 nl.localhost 127.0.0.1 fr.localhost 127.0.0.1 it.localhost
    edit entries to match the domain and sub-domains you want to create
    add as many sub-domains as needed, now or later
    save the file and exit by typing Ctrl+O, Enter, and then Ctrl+X.

  2. Edit Apache config file
    open /Applications/MAMP/conf/apache/httpd.conf in a text editor and scroll down to the line that says "# NameVirtualHost "
    replace that line with the following code:
    `
    NameVirtualHost

    ServerName localhost
    ServerAlias localhost *.localhost
    DocumentRoot "/Applications/MAMP/htdocs/"

     Options Indexes FollowSymLinks Includes
     AllowOverride All
     Order allow,deny
     Allow from all

`
save the file and then restart Apache by clicking “Stop” and then “Start” in the MAMP control panel

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.