Hi,

On Mon, May 5, 2008 at 4:59 PM, Ivo Hinkelmann <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> Huda Sarfraz wrote:
>
> > Hi,
> >
> ...
>
> Your approach looks correct!
>
>  Now I am trying to incorporate some of the translations into the build.
> > This
> > is what I tried:
> >
> >
> >   1. Entered only one translation into the PO files for OOH680_m12
> >   (entered the tooltip text which appears on the OpenOffice Writer
> > shortcut)
> >   2. Created the GSI_ur.sdf file using translate-toolkit 1.1.1
> >   3. Tried to merge the translation into the source using
> >   ./transex3/scripts/localize -m -l ur -f GSI_ur.sdf
> >
>
> I don't know exactly where your string is so I give you an example, lets
> assume your string is:
>
> sc  source\ui\src\attrdlg.src   0   fixedline   RID_SCPAGE_PROTECTION
> FL_PRINT            248 ur  XXX
>
> Try the following:
>
> -Look into the GSI_ur.sdf file and check that your new translation is
> there.
> -Go to the sc/source/ui/src/localize.sdf and check if your string is there
> - 'setenv WITH_LANG "ur" && dmake' in that directory, go to the
> sc/common(.pro)/misc/ui/attrdlg.src and check if your string is there
>
> If your string makes it into the attrclg.src then the wrong src file is
> part of your insetallation set...
>
> Hope that helps,
> Ivo
>
>    4. Created the "ur" build
> >
> >
> > I get the ur build with the RTL layout, but I cannot see the translation
> > that I entered, and I did not get errors in the process described above.
> > Can
> > someone please let me know how I should proceed now.
> >
> > If there are any instructions available for incorporating translations
> > into
> > a localized build, please let me know. I could not find any online, and
> > I am
> > following the instructions I have found in the book, PAN Localization
> > Guide
> > to Localization of Open Source Software which has a chapter on
> > OpenOffice.org Localization.
> >
> > Thanks & Regards,
> > Huda
> >
> >
I followed the steps listed, and I am not getting the translation in the
localize.sdf file. Here is what I did:

1. Translated the following string (in the POT files for OOH680_m12):
officecfg    registry\data\org\openoffice\Office\UI\WriterCommands.xcu
0    value
..WriterCommands.UserInterface.Commands..uno:InsertReferenceField
Label            0    en-US    Cross-reference...                2002-02-02
02:02:02

2. Converted the POT files to PO, and created the GSI_ur.sdf file (using
translate-toolkit 1.1.1), and I can see the translation in the GSI_ur.sdf
file.

3. Ran ./transex3/scripts/localize -m -l ur -f GSI_ur.sdf

4. Checked OOH680_m12\officecfg\registry\data\org\openoffice\localize.sdf
It turns out empty, and I cannot see the string when I make the ur build.

I also tried running dos2unix on my GSI_ur.sdf file, but localize.sdf still
turns out to be empty.

Any suggestions will be appreciated,

Thanks & Regards,
Huda

Reply via email to