[libreoffice-l10n] Deckard a Web based Glade Runner again

2016-05-21 Thread Usama Akkad
Hi,

I've read an older discussion about Deckard (a Web based Glade Runner)
in 2013 [1].

I would like to know if there is any update on using it for LO.

Running instance: http://deckard.malizor.org/
Code: https://github.com/Malizor/deckard

1. https://listarchives.libreoffice.org/global/l10n/msg06088.html

Best regards,
Usama

-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-13 Thread Nicolas Delvaux
Hi everyone,

 On the launchpad page, it says: "In the long run, it would be cool to have
 distinct instances for distinct projects like Xfce or LibreOffice."

Yes, I though Deckard could be useful for LO when I read the 4.0
changelog about the new .uis.

 As I understand it, the runner takes translation from a po file in a
 repository, converts it and  displays the dialog. So, to see the result, it
 is necessary to upload po file to the repository.

Yes, the runner basically needs a folder containing a .ui and a .mo file.

The layout expected by Deckard is documented in the README file:
http://bazaar.launchpad.net/~malizor/deckard/trunk/view/head:/README#L90

I wrote a script that create such a layout from Gnome git repositories
(which run once a day), so you may just want to write a similar script
for LO.
In fact I was planning to write one at some point, but it would be much
easier for someone familiar with the LO organisation.


> Looks great. I think it should basically "just work" for LibreOffice and
> the 250+ new .ui elements. Our .uis pretend to be gtk3 ones, with a
> handful of custom widgets, mostly previews. We have a glade catalog for
> the custom ones to provide stubs for glade. So, what does deckard do
> there, does it load the .ui with standard gtk3 code, i.e. expects all
> the widgets to be instantiatable, or does it load it the glade way, i.e.
> can reuse a glade catalog to handle those ?

It instantiates all widgets. If it encounters an unknown one, it tries
to replace it with a placeholder.
All this magic happens in the "gladerunner.py" file (you can download it
and easily experiment with it in a standalone way).

It may be possible to make it work with a glade catalog, I will try to
have a look at it (though I don't have much free time currently).


> There might also be a little bit of tweaking required to stitch the .po
> and .ui together because we're not (currently) using gettext natively in
> LibreOffice but are using it as an intermediate format so it probably
> wouldn't work to just throw a libreoffice .po with translations for a
> dialog at the normal gtk3 gettext loader and get it to do the right
> thing.

It is true that Deckard is a bit Gnome centric for now, so any
suggestion or patch (better :p) to make Deckard more suitable for other
projects/infrastructures would be very much welcomed.

Cheers,
Nicolas

-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-13 Thread Caolán McNamara
On Wed, 2013-06-12 at 12:58 +0300, Коростіль Данило wrote:
> > Added Nicolas, who is the developer.
> >
> > Top-posted to keep content.
> >
> > On Wed, Jun 12, 2013 at 2:05 PM, Miloš Šrámek  
> > wrote:
> >> Hi,
> >>
> >> there exists a web-based tool for display of translated glade dialogs:
> >> https://launchpad.net/deckard
> >> gnome dialogs: http://deckard.malizor.org/
> >>
> >> It would be really great to have something like that for LO - it would
> >> simplify our work and simultaneously improve the quality of translations.
> >>
> >> On the launchpad page, it says: "In the long run, it would be cool to have
> >> distinct instances for distinct projects like Xfce or LibreOffice."
> >>
> >> As I understand it, the runner takes translation from a po file in a
> >> repository, converts it and  displays the dialog. So, to see the result, it
> >> is necessary to upload po file to the repository.
> >>
> >> Can we talk to Deckard developers regarding that?
> >>
> >> Milos
> >>
> >> --
> >> -
> >> Milos Sramek
> >> Gregor Mendel Institute of Molecular Plant Biology,
> >> Dr. Bohr-Gasse 3, 1030 Vienna, Austria
> >> TEL: +43 1 79044 9810 EMAIL: milos.sra...@oeaw.ac.at
> >> -
> >
> >
> > --
> > sankarshan mukhopadhyay
> > 
> >
> As far as I know the tool is based on GTK3+, so at least we need to wait 
> for the port to .ui dialog system. Nevertheless, even that couldn't mean 
> it'd support LO, but I'm not sure.
> 
> +dev list and Caolán McNamara.
> 
> Probably Caolán who's converting the dialogs may tell us more.
> 
> And yes, it's really really useful tool for localization QA, especially 
> for such huge project as LO. So I'm looking forward to that great 
> feature as well.

Looks great. I think it should basically "just work" for LibreOffice and
the 250+ new .ui elements. Our .uis pretend to be gtk3 ones, with a
handful of custom widgets, mostly previews. We have a glade catalog for
the custom ones to provide stubs for glade. So, what does deckard do
there, does it load the .ui with standard gtk3 code, i.e. expects all
the widgets to be instantiatable, or does it load it the glade way, i.e.
can reuse a glade catalog to handle those ? 

There might also be a little bit of tweaking required to stitch the .po
and .ui together because we're not (currently) using gettext natively in
LibreOffice but are using it as an intermediate format so it probably
wouldn't work to just throw a libreoffice .po with translations for a
dialog at the normal gtk3 gettext loader and get it to do the right
thing.

C.


-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-12 Thread Martin Srebotnjak
Hi,

I would suggest inclusion into open-tran.eu site, which already supports
search in many open souce projects localizations, and even old translations
from OpenOffice.org.

www.open-tran.eu

Lp, m.

-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-12 Thread Коростіль Данило



Added Nicolas, who is the developer.

Top-posted to keep content.

On Wed, Jun 12, 2013 at 2:05 PM, Miloš Šrámek  wrote:

Hi,

there exists a web-based tool for display of translated glade dialogs:
https://launchpad.net/deckard
gnome dialogs: http://deckard.malizor.org/

It would be really great to have something like that for LO - it would
simplify our work and simultaneously improve the quality of translations.

On the launchpad page, it says: "In the long run, it would be cool to have
distinct instances for distinct projects like Xfce or LibreOffice."

As I understand it, the runner takes translation from a po file in a
repository, converts it and  displays the dialog. So, to see the result, it
is necessary to upload po file to the repository.

Can we talk to Deckard developers regarding that?

Milos

--
-
Milos Sramek
Gregor Mendel Institute of Molecular Plant Biology,
Dr. Bohr-Gasse 3, 1030 Vienna, Austria
TEL: +43 1 79044 9810 EMAIL: milos.sra...@oeaw.ac.at
-



--
sankarshan mukhopadhyay


As far as I know the tool is based on GTK3+, so at least we need to wait 
for the port to .ui dialog system. Nevertheless, even that couldn't mean 
it'd support LO, but I'm not sure.


+dev list and Caolán McNamara.

Probably Caolán who's converting the dialogs may tell us more.

And yes, it's really really useful tool for localization QA, especially 
for such huge project as LO. So I'm looking forward to that great 
feature as well.


--
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-12 Thread Sankarshan Mukhopadhyay
Added Nicolas, who is the developer.

Top-posted to keep content.

On Wed, Jun 12, 2013 at 2:05 PM, Miloš Šrámek  wrote:
> Hi,
>
> there exists a web-based tool for display of translated glade dialogs:
> https://launchpad.net/deckard
> gnome dialogs: http://deckard.malizor.org/
>
> It would be really great to have something like that for LO - it would
> simplify our work and simultaneously improve the quality of translations.
>
> On the launchpad page, it says: "In the long run, it would be cool to have
> distinct instances for distinct projects like Xfce or LibreOffice."
>
> As I understand it, the runner takes translation from a po file in a
> repository, converts it and  displays the dialog. So, to see the result, it
> is necessary to upload po file to the repository.
>
> Can we talk to Deckard developers regarding that?
>
> Milos
>
> --
> -
> Milos Sramek
> Gregor Mendel Institute of Molecular Plant Biology,
> Dr. Bohr-Gasse 3, 1030 Vienna, Austria
> TEL: +43 1 79044 9810 EMAIL: milos.sra...@oeaw.ac.at
> -



--
sankarshan mukhopadhyay


-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-l10n] Deckard: a web based Glade Runner

2013-06-12 Thread Miloš Šrámek

Hi,

there exists a web-based tool for display of translated glade dialogs:
https://launchpad.net/deckard
gnome dialogs: http://deckard.malizor.org/

It would be really great to have something like that for LO - it would 
simplify our work and simultaneously improve the quality of translations.


On the launchpad page, it says: "In the long run, it would be cool to 
have distinct instances for distinct projects like Xfce or LibreOffice."


As I understand it, the runner takes translation from a po file in a 
repository, converts it and  displays the dialog. So, to see the result, 
it is necessary to upload po file to the repository.


Can we talk to Deckard developers regarding that?

Milos

--
-
Milos Sramek
Gregor Mendel Institute of Molecular Plant Biology,
Dr. Bohr-Gasse 3, 1030 Vienna, Austria
TEL: +43 1 79044 9810 EMAIL: milos.sra...@oeaw.ac.at
-


--
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted