Grey Matter Forums
« how to translate names of months »

Welcome Guest. Please Login or Register.
May 24, 2013, 5:29pm



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Support :: Trouble Shooting :: how to translate names of months
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: how to translate names of months (Read 1,209 times)
mithveaen
New Member
*
member is offline





Joined: Mar 2008
Gender: Female
Posts: 9
Karma: 0
 how to translate names of months
« Thread Started on Mar 22, 2008, 1:48pm »

Hi

I've just installed a new version of GreyMatter (1.8.1) and I can't find how to translate the names of the months to Spanish. In my former Greymatter software I had (I don't really remember the version) I opened gmlibrary.cgi and edited the string @month from January to Enero.

I'd really love to change the names because my blog is Spanish spoken. Thanks.
Link to Post - Back to Top  IP: Logged
marlinnut
New Member
*
member is offline





Joined: May 2007
Gender: Male
Posts: 26
Karma: 2
 Re: how to translate names of months
« Reply #1 on Mar 22, 2008, 5:36pm »


Quote:
Hi

I've just installed a new version of GreyMatter (1.8.1) and I can't find how to translate the names of the months to Spanish. In my former Greymatter software I had (I don't really remember the version) I opened gmlibrary.cgi and edited the string @month from January to Enero.

I'd really love to change the names because my blog is Spanish spoken. Thanks.


The only place I'm aware of the months appearing in GM1.8.1 is in the file Gm_Constants.pm:

use constant MONTHS_SHORT => qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
use constant MONTHS => qw(January February March April May June July August September October November December);



Link to Post - Back to Top  IP: Logged
mithveaen
New Member
*
member is offline





Joined: Mar 2008
Gender: Female
Posts: 9
Karma: 0
 Re: how to translate names of months
« Reply #2 on Mar 22, 2008, 9:40pm »


Quote:

The only place I'm aware of the months appearing in GM1.8.1 is in the file Gm_Constants.pm:

use constant MONTHS_SHORT => qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
use constant MONTHS => qw(January February March April May June July August September October November December);




:) Thank you so much! I've edited the file and now I have the names in Spanish. I never thought of editing those. Thanks!!
Link to Post - Back to Top  IP: Logged
mithveaen
New Member
*
member is offline





Joined: Mar 2008
Gender: Female
Posts: 9
Karma: 0
 Re: how to translate names of months
« Reply #3 on Mar 23, 2008, 2:58am »

I have another question. When you post a message, you can get some error messages, like "You didn't enter the email" and stuff like that.

Where can I edit those messages to translate them in Spanish? Thanks a lot!!!
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: how to translate names of months
« Reply #4 on Mar 24, 2008, 3:52pm »

You have caught us in the middle of upgrading to a more bilingual friendly Greymatter. This means that alot of the messages that used to be gm-library.cgi are now else where.

If you have access to the command line, I would suggest using grep to search for the messages you want to change. Or if you have the Greymatter files locally on your computer and you can search in the Greymatter cgi-bin directory for phrases you want to translate.

Otherwise, you will find some of the messages in cgi-bin/lang/en_US.pm. Those are all english messages that can be translated for the user. The rest of the messages will be between gm.cgi, gm-library.cgi, gm-comments.cgi, and gm-karma.cgi.

I would love to see Greymatter using a localized file for Spanish by the beginning of 2009, but its a slow process to remove the messages and enter them into the localization file. When everything is setup, there will be locale files for different languages (es_ES.pm) that will override anything in en_US.
Link to Post - Back to Top  IP: Logged
mithveaen
New Member
*
member is offline





Joined: Mar 2008
Gender: Female
Posts: 9
Karma: 0
 Re: how to translate names of months
« Reply #5 on Mar 24, 2008, 11:30pm »


Quote:

If you have access to the command line, I would suggest using grep to search for the messages you want to change. Or if you have the Greymatter files locally on your computer and you can search in the Greymatter cgi-bin directory for phrases you want to translate.


Thanks. I will check the cgis, since I don't want to mess up with those files (I am totally clueless regarding perl and cgi programming) so I'll check which messages I want to translate and do a "search and replace" in those files.
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: how to translate names of months
« Reply #6 on Apr 7, 2008, 5:35pm »

Write back if you have any questions. This is an area we would like to grow interest and support in.
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile