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

i18n Support #3

Closed
maddovr opened this issue Nov 25, 2018 · 4 comments
Closed

i18n Support #3

maddovr opened this issue Nov 25, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@maddovr
Copy link

maddovr commented Nov 25, 2018

I think having proper multilingual support would be a nice feature to have for this great theme, and it would help and ease the work for non-english speaker to use your theme.

@Track3 Track3 added the enhancement New feature or request label Nov 25, 2018
@Track3
Copy link
Owner

Track3 commented Nov 25, 2018

From what I see, this theme only has a few strings in the single page template. Personally, as a non-native English speaker myself, I don't mind those words are in English, so I haven't dive too much into Hugo i18n yet. Will do that in the future, considering how little strings there are, this should be easy.

@setanarut
Copy link

setanarut commented Dec 11, 2018

Hello, I have a little problem. can someone help me?
When I translate "Posts" to "Yazılar" , "s" letter is added to the end.

in config.toml

before;

  [[menu.main]]
    name = "Posts"
    url = "/posts/"
    weight = 10

after;

  [[menu.main]]
    name = "Yazılar"
    url = "/yazilar/"
    weight = 10

then, I renamed the "content/posts" folder to "content/yazilar".

Result is "Yazilars" not "Yazılar"

ekran resmi 2018-12-11 03 44 56

@Track3
Copy link
Owner

Track3 commented Dec 11, 2018

Hello, @duurkak

Those settings In config.toml only works with menus, the page title is based on the url of the page by default. You can add a _index.md in "content/yazilar" folder, In that file, you can set page title in the frontmatter, and you can also write something here, it will be displayed beneath the title, for example:

---
title: "Yazılar"
---

This is the "blog" page.

You should also rename layouts/posts and change some strings in 404.html.

@setanarut
Copy link

hello @Track3
Thanks for help, That's exactly what I wanted.

in addition. I tried that before you but Your method is more accurate;

in _default/list.html

{{ define "main" }}
	<main class="site-main section-inner thin  animated fadeIn faster">
		<h1>Yazılar</h1>
		{{- if .Content }}

Track3 added a commit that referenced this issue Dec 14, 2018
* Also add Simplified Chinese translations
* See #3
@Track3 Track3 closed this as completed Dec 20, 2018
olbrew pushed a commit to olbrew/hermit that referenced this issue Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants