Ivo Hinkelmann wrote:

> Hi ,
> 
> Mathias Bauer schrieb:
>> Ivo Hinkelmann wrote:
>> 
>>> Hi Eike,
>>>
>>> Eike Rathke wrote:
>>>> I guess that for building a language pack the OOo source tree would not
>>>> be needed anymore, except maybe a few modules, is still a wish for the
>>>> far future?
>>> MBA had the idea to move also all resource source files into a own 
>>> module but we first need to discuss this a bit further ....
>> 
>> This is a very reduced version of my idea. :-)
>> 
>> We have to balance two requirements: developers working on e.g. a dialog
>> may want to keep the english resources in their code module (this has to
>> be clarified). OTOH developers building language packs would welcome to
>> get rid of the source trees.
>> 
>> There is a possible and clean way to fulfil both requirements, but it
>> would require some coding work: we could keep the resouces in the source
>> tree, but change the resource system in a way that the localized
>> versions don't contain complete resources but only the strings. At
>> runtime the code then will always load the english resource and mergers
>> in all localized strings. Another potential benefit: we could get rid of
>> the sdf format here and move to e.g. po files (or any other format that
>> the localization community might prefer).
> 
> the reason why we did not implement that is that this will not work that 
> easy with helpcontent2, readme , java properties etc ...
You don't have the same problem with these files as C++ files don't have
dependencies on them. So you can easily move the complete files out of
the source modules. But this is not true for resouces. Resources share
files (hrc files) with the C++ sources and moving out the resources
completely will create new build dependencies that will force all
developers to always build in two modules for each change in a dialog.
But we should discuss that off-list. :-)

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to