hugo-future-imperfect icon indicating copy to clipboard operation
hugo-future-imperfect copied to clipboard

Please, fully translatable Via Config.toml

Open onrea opened this issue 8 years ago • 5 comments

Currently {BLOG, CATEGORIES, ABOUT} are translatable via Config file.

May you use shortcodes for others too, such as: 'Recent Posts', 'View More Posts', ... .

onrea avatar Mar 23 '16 21:03 onrea

Hi onrea, can you provide more information? I'm not exactly sure what you have in mind.

jpescador avatar Mar 26 '16 17:03 jpescador

# Set up your menu items in the navigation bar
# You can use identifier to prepend a font awesome icon to your text
[[menu.main]]
    name = "AAAA"
    url = "/blog"
    identifier = "fa fa-newspaper-o"
    weight = 1

[[menu.main]]
    name = "BBBB"
    url = "/categories"
    weight = 2

[[menu.main]]
    name = "CCCC"
    url = "/about"
    weight = 3

As you see I have replaced Blog with AAAA in above snippet.

We can replace Blog word with a native translation. There are some other phrases that are not translatable via config file. We should edit layout/*.html files that makes it hard to keep up-to-date the theme by your theme as upstream.

onrea avatar Mar 27 '16 10:03 onrea

I personally do not agree with this suggested change. Let's use Wordpress as a base here. It is a blogging engine like Hugo and it does not let you customize every piece of text in the theme. This would cause a ton of bloat.

Instead I recommend you make your own fork of the theme with your own customizations to various text elements.

@jpescador decision.

Best,

nraboy avatar Mar 27 '16 14:03 nraboy

Hey onrea, I agree with what Nic is saying here. However, I do understand the inconvenience of not being able to edit text such as the titles in the sidebar: Recent Posts, Categories, About. Therefore, I will look into this when time permits and I believe, Data Files, https://gohugo.io/extras/datafiles/ can be utilized for this kind of issue. Thanks

jpescador avatar Mar 27 '16 15:03 jpescador

Would be solved with the implementation of #39.

pacollins avatar Oct 12 '17 14:10 pacollins