[wp-hackers] Re: wp-hackers Digest, Vol 26, Issue 80

Andy Staines andy at yellowswordfish.com
Sun Mar 25 16:12:16 GMT 2007


Good point - you're right. My confusion.

Alakhnor wrote:
> This article probably refers to using __() with default WP translation.
>
> ----- Original Message ----- From: 
> <wp-hackers-request at lists.automattic.com>
> To: <wp-hackers at lists.automattic.com>
> Sent: Sunday, March 25, 2007 5:37 PM
> Subject: wp-hackers Digest, Vol 26, Issue 80
>
>
>> Send wp-hackers mailing list submissions to
>> wp-hackers at lists.automattic.com
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> or, via email, send a message with subject or body 'help' to
>> wp-hackers-request at lists.automattic.com
>>
>> You can reach the person managing the list at
>> wp-hackers-owner at lists.automattic.com
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of wp-hackers digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: Plugin Language Translation (Andy Staines)
>>   2. Re: Plugin Language Translation (Alex G?nsche)
>>   3. Re: Plugin Language Translation (Andy Staines)
>>   4. Re: Plugin Language Translation (Alex G?nsche)
>>   5. Re: Plugin Language Translation (Andy Staines)
>>   6. RE: Plugin Language Translation (Computer Guru)
>>   7. Re: Plugin Language Translation (Jennifer Hodgdon)
>>   8. Re: Plugin Language Translation (Andy Staines)
>>   9. Re: Plugin Language Translation (Andy Staines)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sun, 25 Mar 2007 13:10:32 +0100
>> From: Andy Staines <andy at yellowswordfish.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <460666B8.4080006 at yellowswordfish.com>
>> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>>
>> Absolutely. Thanks for taking a look. I have zipped them up and they 
>> are at:
>>
>> Download mo-po 
>> <http://www.yellowswordfish/downloads/French-mo-po-files.zip>
>>
>> Grateful for any help...
>> Andy
>>
>>
>> Alex Günsche wrote:
>>> On Sun, 2007-03-25 at 12:33 +0100, Andy Staines wrote:
>>>
>>>> Can anyone offer a solution please?
>>>>
>>>
>>> Would it be possible that you upload the files and give us a link? This
>>> would be extremely helpful for investigating the problem.
>>>
>>> Regards,
>>> Alex
>>>
>>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Sun, 25 Mar 2007 14:15:50 +0200
>> From: Alex G?nsche <ag.ml2007 at zirona.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <1174824950.6722.9.camel at localhost>
>> Content-Type: text/plain; charset=ISO-8859-15
>>
>> On Sun, 2007-03-25 at 13:10 +0100, Andy Staines wrote:
>>> Absolutely. Thanks for taking a look. I have zipped them up and they 
>>> are at:
>>> Download mo-po 
>>> <http://www.yellowswordfish/downloads/French-mo-po-files.zip>
>>
>> The po file seems to be ok at first glance. Maybe you could upload the
>> plugin, too. Then it would be possible to see the whole thing in action,
>> and maybe try a couple of things.
>>
>>
>> Regards,
>> Alex
>>
>> -- 
>> Alex Günsche, Zirona OpenSource-Consulting
>> work: http://www.zirona.com/ | leisure: http://www.roggenrohl.net
>> PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Sun, 25 Mar 2007 13:41:57 +0100
>> From: Andy Staines <andy at yellowswordfish.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <46066E15.6080702 at yellowswordfish.com>
>> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>>
>> Alex Günsche wrote:
>>> On Sun, 2007-03-25 at 13:10 +0100, Andy Staines wrote:
>>>
>>>> Absolutely. Thanks for taking a look. I have zipped them up and 
>>>> they are at:
>>>> Download mo-po 
>>>> <http://www.yellowswordfish/downloads/French-mo-po-files.zip>
>>>>
>>>
>>> The po file seems to be ok at first glance. Maybe you could upload the
>>> plugin, too. Then it would be possible to see the whole thing in 
>>> action,
>>> and maybe try a couple of things.
>>>
>>>
>>> Regards,
>>> Alex
>>>
>>>
>> Done - available at:
>>
>> Download <http://www.yellowswordfish.com/downloads/SF19Beta1.zip>
>>
>> This is very much beta but it should install OK - did for me this
>> morning anyway!
>> Thanks again
>> Andy
>>
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Sun, 25 Mar 2007 15:08:42 +0200
>> From: Alex G?nsche <ag.ml2007 at zirona.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <1174828122.6722.18.camel at localhost>
>> Content-Type: text/plain; charset=ISO-8859-15
>>
>> On Sun, 2007-03-25 at 13:41 +0100, Andy Staines wrote:
>>> >> Absolutely. Thanks for taking a look. I have zipped them up and 
>>> they >> are at:
>>> >> Download mo-po >> 
>>> <http://www.yellowswordfish/downloads/French-mo-po-files.zip>
>>
>> Ok, the problem is, as far as I see, that you do not provide the
>> textdomain to use to the WP function __(). For example, you have the
>> code
>>
>> __("Forum Locked")
>>
>> but when you use the textdomain "simple-forum", it should read
>>
>> __("Forum Locked", "simple-forum")
>>
>> You mentioned that some words actually were translated, I assume they
>> are words that are contained in the global language file (e.g. "Posts").
>>
>> By the way, in your beta, the filename is simple-forum-FR_fr.mo, while
>> it should read simple-forum-fr_FR.mo as this is the correct and usual
>> locale token. And, you should use the API hook "init" for loading the
>> textdomain, because this ensures that multilinguality plugins such as
>> Polyglot will choose the correct language.
>>
>> HTH
>>
>> Regards,
>> Alex
>>
>> -- 
>> Alex Günsche, Zirona OpenSource-Consulting
>> work: http://www.zirona.com/ | leisure: http://www.roggenrohl.net
>> PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc
>>
>>
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Sun, 25 Mar 2007 14:17:48 +0100
>> From: Andy Staines <andy at yellowswordfish.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <4606767C.8050908 at yellowswordfish.com>
>> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>>
>> Alex Günsche wrote:
>>> On Sun, 2007-03-25 at 13:41 +0100, Andy Staines wrote:
>>>
>>>>>> Absolutely. Thanks for taking a look. I have zipped them up and 
>>>>>> they are at:
>>>>>> Download mo-po 
>>>>>> <http://www.yellowswordfish/downloads/French-mo-po-files.zip>
>>>>>>
>>>
>>> Ok, the problem is, as far as I see, that you do not provide the
>>> textdomain to use to the WP function __(). For example, you have the
>>> code
>>>
>>> __("Forum Locked")
>>>
>>> but when you use the textdomain "simple-forum", it should read
>>>
>>> __("Forum Locked", "simple-forum")
>>>
>>> You mentioned that some words actually were translated, I assume they
>>> are words that are contained in the global language file (e.g. 
>>> "Posts").
>>>
>>> By the way, in your beta, the filename is simple-forum-FR_fr.mo, while
>>> it should read simple-forum-fr_FR.mo as this is the correct and usual
>>> locale token. And, you should use the API hook "init" for loading the
>>> textdomain, because this ensures that multilinguality plugins such as
>>> Polyglot will choose the correct language.
>>>
>>> HTH
>>>
>>> Regards,
>>> Alex
>>>
>>>
>> A million thanks Alex
>> There is conflicting advice on the codex regarding the __() format. One
>> said you required the text domain the other did not include it and I
>> thought the one without was the more recent article so I used that. I
>> will add that in... 419 times! and also do the other tasks you have
>> given me.
>> I am very grateful for this help. I will inform the young lady in France
>> she can finish the task!
>>
>> Regards
>> Andy
>>
>>
>>
>> ------------------------------
>>
>> Message: 6
>> Date: Sun, 25 Mar 2007 16:17:46 +0200
>> From: Computer Guru <computerguru at neosmart.net>
>> Subject: RE: [wp-hackers] Plugin Language Translation
>> To: <wp-hackers at lists.automattic.com>
>> Message-ID: <000b01c76ee8$5e137530$1a3a5f90$@net>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> You can use Komodo or GREP to add it in with a regex replacement 
>> search....
>> make things easier :)
>>
>> Computer Guru
>> NeoSmart Technologies
>> http://neosmart.net/blog/
>>
>>> -----Original Message-----
>>> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
>>> bounces at lists.automattic.com] On Behalf Of Andy Staines
>>> Sent: Sunday, March 25, 2007 3:18 PM
>>> To: wp-hackers at lists.automattic.com
>>> Subject: Re: [wp-hackers] Plugin Language Translation
>>>
>>> Alex Günsche wrote:
>>> > On Sun, 2007-03-25 at 13:41 +0100, Andy Staines wrote:
>>> >
>>> >>>> Absolutely. Thanks for taking a look. I have zipped them up and
>>> they are at:
>>> >>>> Download mo-po <http://www.yellowswordfish/downloads/French-mo-po-
>>> files.zip>
>>> >>>>
>>> >
>>> > Ok, the problem is, as far as I see, that you do not provide the
>>> > textdomain to use to the WP function __(). For example, you have the
>>> > code
>>> >
>>> > __("Forum Locked")
>>> >
>>> > but when you use the textdomain "simple-forum", it should read
>>> >
>>> > __("Forum Locked", "simple-forum")
>>> >
>>> > You mentioned that some words actually were translated, I assume they
>>> > are words that are contained in the global language file (e.g.
>>> "Posts").
>>> >
>>> > By the way, in your beta, the filename is simple-forum-FR_fr.mo,
>>> while
>>> > it should read simple-forum-fr_FR.mo as this is the correct and usual
>>> > locale token. And, you should use the API hook "init" for loading the
>>> > textdomain, because this ensures that multilinguality plugins such as
>>> > Polyglot will choose the correct language.
>>> >
>>> > HTH
>>> >
>>> > Regards,
>>> > Alex
>>> >
>>> >
>>> A million thanks Alex
>>> There is conflicting advice on the codex regarding the __() format. One
>>> said you required the text domain the other did not include it and I
>>> thought the one without was the more recent article so I used that. I
>>> will add that in... 419 times! and also do the other tasks you have
>>> given me.
>>> I am very grateful for this help. I will inform the young lady in
>>> France
>>> she can finish the task!
>>>
>>> Regards
>>> Andy
>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>>
>>
>> ------------------------------
>>
>> Message: 7
>> Date: Sun, 25 Mar 2007 07:27:22 -0700
>> From: Jennifer Hodgdon <yahgrp at poplarware.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <460686CA.5050802 at poplarware.com>
>> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>>
>>> There is conflicting advice on the codex regarding the __() format. One
>>> said you required the text domain the other did not include it and I
>>> thought the one without was the more recent article so I used that.
>>
>> Can you tell us which articles you are referring to so we can fix
>> them? Thanks,
>>     Jennifer
>>
>>
>> ------------------------------
>>
>> Message: 8
>> Date: Sun, 25 Mar 2007 16:33:10 +0100
>> From: Andy Staines <andy at yellowswordfish.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <46069636.3080609 at yellowswordfish.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Yes - thanks... my tongue was in my cheek when I said it :)
>>
>> Computer Guru wrote:
>>> You can use Komodo or GREP to add it in with a regex replacement 
>>> search....
>>> make things easier :)
>>>
>>> Computer Guru
>>> NeoSmart Technologies
>>> http://neosmart.net/blog/
>>>
>>>
>>>> -----Original Message-----
>>>> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
>>>> bounces at lists.automattic.com] On Behalf Of Andy Staines
>>>> Sent: Sunday, March 25, 2007 3:18 PM
>>>> To: wp-hackers at lists.automattic.com
>>>> Subject: Re: [wp-hackers] Plugin Language Translation
>>>>
>>>> Alex Günsche wrote:
>>>>
>>>>> On Sun, 2007-03-25 at 13:41 +0100, Andy Staines wrote:
>>>>>
>>>>>
>>>>>>>> Absolutely. Thanks for taking a look. I have zipped them up and
>>>>>>>>
>>>> they are at:
>>>>
>>>>>>>> Download mo-po <http://www.yellowswordfish/downloads/French-mo-po-
>>>>>>>>
>>>> files.zip>
>>>>
>>>>> Ok, the problem is, as far as I see, that you do not provide the
>>>>> textdomain to use to the WP function __(). For example, you have the
>>>>> code
>>>>>
>>>>> __("Forum Locked")
>>>>>
>>>>> but when you use the textdomain "simple-forum", it should read
>>>>>
>>>>> __("Forum Locked", "simple-forum")
>>>>>
>>>>> You mentioned that some words actually were translated, I assume they
>>>>> are words that are contained in the global language file (e.g.
>>>>>
>>>> "Posts").
>>>>
>>>>> By the way, in your beta, the filename is simple-forum-FR_fr.mo,
>>>>>
>>>> while
>>>>
>>>>> it should read simple-forum-fr_FR.mo as this is the correct and usual
>>>>> locale token. And, you should use the API hook "init" for loading the
>>>>> textdomain, because this ensures that multilinguality plugins such as
>>>>> Polyglot will choose the correct language.
>>>>>
>>>>> HTH
>>>>>
>>>>> Regards,
>>>>> Alex
>>>>>
>>>>>
>>>>>
>>>> A million thanks Alex
>>>> There is conflicting advice on the codex regarding the __() format. 
>>>> One
>>>> said you required the text domain the other did not include it and I
>>>> thought the one without was the more recent article so I used that. I
>>>> will add that in... 419 times! and also do the other tasks you have
>>>> given me.
>>>> I am very grateful for this help. I will inform the young lady in
>>>> France
>>>> she can finish the task!
>>>>
>>>> Regards
>>>> Andy
>>>>
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>
>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>>>
>>
>>
>> ------------------------------
>>
>> Message: 9
>> Date: Sun, 25 Mar 2007 16:37:19 +0100
>> From: Andy Staines <andy at yellowswordfish.com>
>> Subject: Re: [wp-hackers] Plugin Language Translation
>> To: wp-hackers at lists.automattic.com
>> Message-ID: <4606972F.2010608 at yellowswordfish.com>
>> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>>
>> yes of course.
>> The one WITH the parameter:
>>
>> http://codex.wordpress.org/Writing_a_Plugin#Localizing_Plugins
>>
>> And the one without:
>>
>> http://codex.wordpress.org/Localizing_WordPress
>>
>> with the first one of these seeming to be the correct format.
>>
>> Andy
>>
>>
>>
>> Jennifer Hodgdon wrote:
>>>> There is conflicting advice on the codex regarding the __() format.
>>>> One said you required the text domain the other did not include it
>>>> and I thought the one without was the more recent article so I used
>>>> that.
>>>
>>> Can you tell us which articles you are referring to so we can fix
>>> them? Thanks,
>>>     Jennifer
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>>
>> End of wp-hackers Digest, Vol 26, Issue 80
>> ******************************************
>> --------------------------------------------------------------------------------------- 
>>
>> Orange vous informe que cet  e-mail a ete controle par l'anti-virus 
>> mail.
>> Aucun virus connu a ce jour par nos services n'a ete detecte.
>>
>>
>>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



More information about the wp-hackers mailing list