On 23 Aug 2012, at 22:56, Gale Andrews wrote:

> 
> | From Paul Livesey <[email protected]> 
> | Thu, 23 Aug 2012 22:27:10 +0100
> | Subject: [Audacity-translation] Release Candidate 2.0.2rc4 downloads are 
> posted. Please test.
>> On 23 Aug 2012, at 20:04, Gale Andrews wrote:
>> 
>>> 
>>> | From Vaughan Johnson <[email protected]> 
>>> | Thu, 23 Aug 2012 11:25:27 -0700
>>> | Subject: [Audacity-translation] Release Candidate 2.0.2rc4 downloads are 
>>> posted. Please test.
>>>> Thanks, guys. I don't think this warrants an rc5, although it's not
>>>> clear to me how widespread it is, or whether it's OS X only.
>>>> 
>>>> Cleber, is this a new thing, e.g., isn't the same true of 2.0.1? 
>>>> 
>>>> - Vaughan
>>> 
>>> I assume most of the issue is because in the Mac builds, the wxstd.mo
>>> files are not included in the locale folders in "Languages". This is
>>> true for 2.0.0 and 2.0.1, so Paul needs to look at this - I've Cc'd him. 
>>> 
>>> The wxstd-translated parts seem to be working as well as they usually
>>> do on Windows. 
>>> 
>>> I'm inclined to agree we don't need an rc5 for this as it is no worse 
>>> than 2.0.0.
>> 
>> Does anything need to happen other than a copy of wxstd.po 
>> being put into the locale folder?
>> 
>> It doesn't need to be renamed or anything like that?
>> 
>> If this is the case I'll get my build script to insert it. 
> 
> I am guessing you may have to amend xcode so that it runs the 
> required msgfmt operation to build the wxstd.mo files then puts
> each in the correct locale folder, in a similar way that you
> currently build the .mo files for each locale folder. 
> 
> If it helps, this is what Leland did to build the wxstd.mo files 
> on Windows from the current installation of Widgets:
> http://code.google.com/p/audacity/source/detail?r=11372 . 
> 

On further investigation, I found this little beauty in the Xcode project

if [ -e "${WX_PREFIX}/share/locale/${INPUT_FILE_BASE}/LC_MESSAGES/wxstd.mo" ]
   then
      cp "${WX_PREFIX}/share/locale/${INPUT_FILE_BASE}/LC_MESSAGES/wxstd.mo" 
"${OD}/wxstd.mo"
      chmod "${INSTALL_MODE_FLAG}" "${OD}/wxstd.mo"
      chown "${INSTALL_OWNER}:${INSTALL_GROUP}" "${OD}/wxstd.mo"
fi

Now, there's only one problem with this, which I've currently hacked around but 
needs resolving.
When I build wxMac none of the .mo files get built. Not a big problem I can 
just run "make allmo" on the makefile in locale.

The problem is more on installing them in WX_PREFIX/share/local. I've written a 
little bash script to do it for me (and rename the files as they go to 
wxstd.mo) but I can guarantee that by the time I build the next version of 
wxMac I will have completely forgotten about this. So my question is, is this a 
peculiarity of wxMax, not putting the mo files in locale/XX/LC_MESSAGES or is 
this a feature which my Windows and Linux brethren have their own ways of 
dealing with?

The next nightly should have the missing wxstd.mo files. This assumes that I've 
built and copied the mo files correctly. I think it's working!

Any help or insight greatly appreciated.

Paul.

> 
>> For future reference and the benefit of people trying to build from 
>> the source, should a copy of wxstd.po by in the Audacity source tree?
> 
> Yes at least Martyn and I are in favour of that. This would allow
> translators to make their own localised wxstd.po for those locales
> where widgets provides no translated wxstd file. 
> 
> 
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Audacity-translation mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-translation

Reply via email to