Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining Pelican 3.7, Page hierarchy & i18n_websites - issue with internal links #939

Open
Jibec opened this issue Oct 5, 2017 · 8 comments

Comments

@Jibec
Copy link

Jibec commented Oct 5, 2017

Hi there,

I'm working on a prototype with Pelican, Page hierarchy & i18n_websites, but can't figure out why internal links in "locales != en" doesn't work...

Can someone have a look? https://github.com/Jibec/Simon
When I'm in a French translated page, all links goes to English version, but I would like them to go to french version.

For links, I use filename: [User guide]({filename}/pages/user.md)
I have this for PAGE_URL = '{slug}/' and PAGE_SAVE_AS = '{slug}/index.html'
Even if I remove this config and page hierarchy, it still doesn't work :(

By the way, I'm trying to rewrite the documentation of this great open-source project: https://yunohost.org/#/docs_en so more languages gets support.

Thanks for your help, I tried IRC two times and didn't find any mailing list where to ask my question. I hope this is the right place.

@justinmayer
Copy link
Member

@Jibec: Were you able to find a solution to your problem here?

@Jibec
Copy link
Author

Jibec commented Mar 23, 2018 via email

@justinmayer
Copy link
Member

Thanks for responding. Cheers.

@Jibec
Copy link
Author

Jibec commented Mar 23, 2018 via email

@justinmayer
Copy link
Member

I see. Perhaps @smartass101 might have thoughts on this question?

@justinmayer justinmayer reopened this Mar 23, 2018
@smartass101
Copy link
Contributor

I didn't find any translated pages in your repo ... if that is the case then I think that what is happening is that the links go to the English versions, since you have the keep options on.

@Jibec
Copy link
Author

Jibec commented Mar 24, 2018 via email

@Jibec
Copy link
Author

Jibec commented Mar 25, 2018

So, I created a new branch: https://github.com/Jibec/Simon/tree/pelicanhelp

Run the server on localhost:8080

(virtualenv-pelican) [jb@localhost Simon]$ pip freeze
Babel==2.5.0
blinker==1.4
docutils==0.14
feedgenerator==1.9
Jinja2==2.9.6
Markdown==2.6.9
MarkupSafe==1.0
pelican==3.7.1
Pygments==2.2.0
python-dateutil==2.6.1
pytz==2017.2
six==1.10.0
Unidecode==0.4.21

Thanks for your support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants