aissac / radiant-globalize2-extension Goto Github PK
View Code? Open in Web Editor NEWTranslate content in Radiant CMS using the Globalize2 Rails plugin.
Home Page: http://blog.aissac.ro/radiant/globalize2-extension/
Translate content in Radiant CMS using the Globalize2 Rails plugin.
Home Page: http://blog.aissac.ro/radiant/globalize2-extension/
I can't display any translated article/page. I see strange sql queries like this:
SELECT `pages`.* FROM `pages` INNER JOIN page_translations on page_translations.page_id = pages.id WHERE ((virtual = 0) and (status_id = 100)) AND ((page_translations.locale = '--- :en\n') AND (`pages`.parent_id = 4)) ORDER BY published_at DESC, pages.virtual DESC LIMIT 1
After some investigation I managed to work around this issue by editing file lib/globalize2/page_extensions.rb and adding .to_s in two places where find queries are created
I've also have problems with conversion symbol to string, but it's already posted as an issue
i am seeing this on a fresh install of rc2
globalize2/lib/globalize2/page_extensions.rb:64:in `url'
and basically anywhere else I18n.locale is used to interpolate a string
Really great work :-) What would be needed to make this compatible to the chronicle (or any oder versioning) extension?
page:each does not work with attributes
Thanks for this great extension! We have been using it extensively.
However, we have just run into this issue which seems to be a biggie if you have to update the published date for blog posts routinely, and want to use Radiant's built-in mechanism for doing so:
Setting the Radiant configuration page.edit.published_date? to true (as described here: http://wiki.github.com/radiant/radiant/change-a-pages-publication-date), causes pages to become uneditable.
ive narrowed this down to the globalize2 version that is bundled (< v0.1.1). the errors go away with the globalize1 v0.1.1 on github.
But this breaks the globalize2 radiant extension in other ways:
undefined method update_globalize_record' for class
Page'
1 comment Created 6 minutes ago by jerrod | edit
i am seeing this on a fresh install of rc2 using the 0.9 branch of globalize2
globalize2/lib/globalize2/page_extensions.rb:64:in `url'
and basically anywhere else I18n.locale is used to interpolate a string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.