Code Monkey home page Code Monkey logo

Comments (8)

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

In static page? well it gonna be difficult. I need to change some table structures for that.
For now there is no such a feature yet. But I'm considering it. Some of my friend also show what "ionize CMS" can do. And I think it should also be available in No-CMS.

from no-cms.

jumbophp avatar jumbophp commented on July 29, 2024

i now because i've tryed to do it ...change the core ...

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

Hi @necuratu , I hope you will be happy to look this:
http://www.getnocms.com/2012/11/multi-language-even-for-static-pages.html

from no-cms.

jumbophp avatar jumbophp commented on July 29, 2024

yes that is a solution bun not quite one corrent ..because lets say you have a text ...and you what that text to be managed from the admin .....

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

Do you mean about having a paragraph to be translated into another language?
Yes, it gonna be another problem :(

BTW, I've just got an idea.
What do you think if I provide something like this:

{{ content }}

The quick brown fox jumps over the lazy dog

{{ if_language:german}}

Der schnelle braune Fuchs springt über den faulen Hund

{{ end_if_language }}
{{ if_language:indonesia}}

Rubah cepat coklat melompati anjing malas

{{ end_if_language }}
{{ end_content }}

So, by default the content will be "The quick brown fox jumps over the lazy dog"
But if you change the language into german, the content will be "Der schnelle braune Fuchs springt über den faulen Hund"
And if you change the language into indonesia, the content will be "Rubah cepat coklat melompati anjing malas"

(PS : I use google translate German language, so please forgive me if there are errors in the sentence)

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

Hi, @necuratu , what do you think if I use something like this: http://www.getnocms.com/2012/11/better-multi-language-template-better.html?

from no-cms.

AndrewPodner avatar AndrewPodner commented on July 29, 2024

What about the possibility of a child table e.g. cms_navigation_lang?

id
nav_id
language
content

When static content is displayed, there would be a conditional statement to check which language is active and retrieve the appropriate version of the content. Content in the navigation table field would be for the default language.

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

@AndrewPodner I have think of something like that. But it is not general. I mean, if I provide something like cms_navigation_lang, there will also be a request for cms_widget_lang, blog_article_lang etc.
For now, I think the current solution is better.

from no-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.