Kirjoita omalla kielellä

Posted on .

Tähän mennessä Scriptoriumilla on voinut kirjoittaa vain yhdellä kielellä, joka on ollut konfiguroitavissa globaalisti. Uusimmassa versiossa blogimoottoriin on lisätty tuki kielen vaihtamiseen jokaiselle tekstille tai sivulle erikseen. Hurraa! Tämä tapahtuu asettamalla postaukselle tai sivulle otsikkotieto lang, esimerkiksi lang: fi.

Tämän lisäksi koko generoidun blogin voi nyt kääntää Gettextillä. Jos valitset kieleksi "fi", sivuston kiinteät tekstit kuten "Posted at" vaihtuvat suomeksi. Kielitiedostot voi kääntää ja ladata itse, tai ne voi lisätä Scriptoriumin koodipohjaan jotta kaikki voivat hyötyä niistä.

And the same in English: Up until now, Scriptorium has only supported one language for the entire blog. In the latest version (2.0.0), a header such as lang: fi can be added to change the language of a single post. This affects the generated HTML and the Atom feed.

In addition, all the fixed strings in the generated site can now also be translated using Gettext. The user can do the translations themselves with their own translation files, or they can be contributed to the main project to be available for all.