Page 1 of 1
Quick language question for CGBlog
Posted: Sun Nov 06, 2011 2:29 am
by fearmydesign
Is there a way to replace the months showing on my archive template to Spanish instead of english? I tried changing in my user preferences, but that just changed my admin to spanish.
Thank you
Re: Quick language question for CGBlog
Posted: Sun Nov 06, 2011 2:38 am
by fearmydesign
I tried calling the language property, but it's not working this way...
Code: Select all
{CGBlog action="archive" lang="es_CA"}
Re: Quick language question for CGBlog
Posted: Sun Nov 06, 2011 1:04 pm
by RonnyK
Set your FrontendLanguage in GlobalSettings to Spanish as well. That will pull the date/labels from the locale, if set. So if you have a locale for Spanish then it will be already Spanish then. The lang= parameter is required when the module doesnt pull the language settings automatically, or when another lang then default-for-frontend is to be used.
Ronny
Re: Quick language question for CGBlog
Posted: Sun Nov 06, 2011 4:27 pm
by fearmydesign
RonnyK wrote:Set your FrontendLanguage in GlobalSettings to Spanish as well. That will pull the date/labels from the locale, if set. So if you have a locale for Spanish then it will be already Spanish then. The lang= parameter is required when the module doesnt pull the language settings automatically, or when another lang then default-for-frontend is to be used.
Ronny
Thank you Ronny, I did exactly this but it's not working. I went to Global settings and changed the "Default Language for Frontend" to EspaƱol (Spanish) and it didn't work. I actually tried it with other languages, but still in english. I also removed the lang= parameter (tried with and without) but nothing
I am using version 1.9.4.2 should I try upgrading to 1.9.4.3 first? and then to 1.10 ?
Thanks
Re: Quick language question for CGBlog
Posted: Sun Nov 06, 2011 5:59 pm
by RonnyK
I doubt that that will help, as I think that your webserver doesnt have the Spanish locale installed.... So upgrading wont fix that.
If you upgrade, just overwrite the set with the latest version and start the upgrade. Make sure that you have a backup of both files and database.
Ronny
Re: Quick language question for CGBlog
Posted: Sun Nov 06, 2011 6:25 pm
by fearmydesign
RonnyK wrote:I doubt that that will help, as I think that your webserver doesnt have the Spanish locale installed.... So upgrading wont fix that.
If you upgrade, just overwrite the set with the latest version and start the upgrade. Make sure that you have a backup of both files and database.
Ronny
Thanks Ronny, should I contact my webserver admin and ask them to install the Spanish Locale?... this is new to me. I appreciate your help, thanks.
Re: Quick language question for CGBlog
Posted: Wed Nov 09, 2011 10:53 pm
by ataxel
I use the trick from this page to localize my date:
http://www.i-do-this.com/blog/34/Localize-your-dates
I even have 2 locale UDT in the same page and it's working!