Quick language question for CGBlog

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Quick language question for CGBlog

Post 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
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Quick language question for CGBlog

Post by fearmydesign »

I tried calling the language property, but it's not working this way...

Code: Select all

{CGBlog action="archive" lang="es_CA"}
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Quick language question for CGBlog

Post 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
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Quick language question for CGBlog

Post 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

Code: Select all

{CGBlog action="archive"}
I am using version 1.9.4.2 should I try upgrading to 1.9.4.3 first? and then to 1.10 ?

Thanks
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Quick language question for CGBlog

Post 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
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Quick language question for CGBlog

Post 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.
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
ataxel
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 19, 2007 1:32 pm

Re: Quick language question for CGBlog

Post 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!
Post Reply

Return to “Modules/Add-Ons”