From kde-bindings Mon Dec 05 22:20:41 2011 From: Robert Riemann Date: Mon, 05 Dec 2011 22:20:41 +0000 To: kde-bindings Subject: Re: [Kde-bindings] Automated translation for non-C++ code in Message-Id: <4016890.EqTXAQHJ81 () theta ! site> X-MARC-Message: https://marc.info/?l=kde-bindings&m=132312375111333 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============5626679348293774792==" --===============5626679348293774792== Content-Type: multipart/signed; boundary="nextPart4649964.nxvvEsyXSj"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable --nextPart4649964.nxvvEsyXSj Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi Albert, hi kdebindings team I hope you remember our last talk about this project when we both atten= ded the=20 kde mobile sprint. I told you about some ruby related dependency problems of my tool, whic= h=20 extracts i18n strings from ruby code. These issues could resolved by now. > https://github.com/cameel/gettext/issues/1 In the meanwhile I asked on the KDE active ML to add my app. (topic: "add youtube application to KDE Plasma Active images") Aaron denied and explained: > so, the reason i haven't responded yet to this is that i haven't been= able > to get it running. the dependencies on korundum4, smoke, etc. are a b= it > much to build casually i'm afraid and i think this bodes ill for mobi= le > targets where we really want to keep the number of packages and > dependency chains down. So I'm considering to write kubeplayer again using C++ and QML. So after all there is the question: Do we still want a ruby-aware i18n strings extractor? To get this, we would need the following requirements on the server: ruby 1.8.x, Rubygems and something like 4 ruby-packages (gems), which w= ould managed by Rubygems itself. Kind regards, Robert Am Sonntag, 18. September 2011, 15:33:06 schrieb Albert Astals Cid: > A Diumenge, 18 de setembre de 2011, Robert Riemann v=E0reu escriure: > > Am Sonntag, 18. September 2011, 15:17:53 schrieb Albert Astals Cid:= > > > A Diumenge, 18 de setembre de 2011, Robert Riemann v=E0reu escriu= re: > > > > Am Sonntag, 18. September 2011, 14:37:21 schrieb Albert Astals = Cid: > > > > > A Diumenge, 18 de setembre de 2011, Robert Riemann v=E0reu es= criure: > > > > > > Am Sonntag, 18. September 2011, 14:02:56 schrieb Albert Ast= als=20 Cid: > > > > > > > A Dissabte, 17 de setembre de 2011, Robert Riemann v=E0re= u=20 escriure: > > > > > > > > Hi all, > > > > > > >=20 > > > > > > > Hi > > > > > > >=20 > > > > > > > > I'm the developer of kubeplayer > > > > > > > > (https://projects.kde.org/projects/playground/mu > > > > > > > > ltim > > > > > > > > edia/kub > > > > > > > > eplayer) . > > > > > > > >=20 > > > > > > > > I would like to know if there is already a > > > > > > > > workflow/introduced > > > > > > > > toolchain to handle automated translations for > > > > > > > > non-C++ > > > > > > > > source code > > > > > > > > in our official git repo. > > > > > > > >=20 > > > > > > > > kubeplayer is a project based on ruby. As > > > > > > > > txgettext > > > > > > > > wasn't > > > > > > > > capable > > > > > > > > to handle ruby code, I created an own tool two > > > > > > > > year > > > > > > > > ago. > > > > > > > > https://github.com/saLOUt/KDEgettext.rb > > > > > > >=20 > > > > > > > Does this create a valid .po[t] file? > > > > > >=20 > > > > > > Executing kdegettext.rb **/*.rb > kubeplayer.pot in my > > > > > > project home > > > > > > generates this attached file. I think it should be fine. > > > > >=20 > > > > > Seems ok-ish. > > > > >=20 > > > > > A new question, are you using kde i18n libraries for this? > > > > > Because if > > > > > you > > > > > are, you have a %i that should be %1, and if you are not, > > > > > you > > > > > should > > > > > try to use them ;-) > > > > >=20 > > > > > Albert > > > >=20 > > > > Small mistake in my kubeplayer app. I'm using the KDE i18n > > > > calls. > > > >=20 > > > > Do you think you can add ruby support? What must be done to do= > > > > this? > > >=20 > > > That's fairly simple then, you only need a Messages.sh that calls= > > > your > > > kdegettext.rb script. > > >=20 > > > Thing is the l10n.kde.org machine needs to have that script. If y= ou > > > are > > > willing to maintain this script and fix any problem that might ar= ise > > > from > > > its usage ny suggestion is that you move the sources of kdegettex= t > > > from > > > github either to l10n-kde4/scripts or to kdesdk/scripts (since by= > > > the > > > name it seems to be kde-specific). > >=20 > > I think kdesdk/scripts fits better. Is this a git repo? >=20 > Nope, it's svn still >=20 > > Is pulling =3D installing? >=20 > If you put it there the l10n machine can have access to it >=20 > > What about dependencies? My script requires ruby and two non-stdlib= > > modules (in ruby space these are called gems) which may have their = own > > dependencies. > >=20 > > So most probably the job isn't done by placing one single file in t= he > > right repo. >=20 > If they are availalbe on debian and/or can get gem-installed easily t= hat is > not a problem. >=20 > Albert >=20 > > > If you do not feel confortable commiting to that much, you can co= py > > > it > > > to > > > the kubeplayer repo. > > >=20 > > > And that should be all. > > >=20 > > > Albert > > >=20 > > > > Robert > > > >=20 > > > > > > In the case the pot file is not valid, we can still fix > > > > > > this. > > > > > > kdegettext.rb is a rather small project: one file with > > > > > > less > > > > > > than 300 lines of code. Should be easy to add stuff or > > > > > > fix > > > > > > something. > > > > > >=20 > > > > > > Robert > > > > > >=20 > > > > > > > Albert > > > > > > >=20 > > > > > > > > I'm aware, that there are only few ruby-based > > > > > > > > KDE > > > > > > > > applications (Do > > > > > > > > you > > > > > > > > know another one ;) ). But maybe usage would > > > > > > > > increasing, > > > > > > > > once other > > > > > > > > languages get first-class support, too. > > > > > > > >=20 > > > > > > > > Kind regards, > > > > > > > > Robert --nextPart4649964.nxvvEsyXSj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEABECAAYFAk7dQ7sACgkQe/YPSoYbw6MT1gCgr/WhFnu+D8oa+71AGv97iRIQ x6MAnA5kpPeIzs0ntSG6S0C74zqD/lUn =G1ES -----END PGP SIGNATURE----- --nextPart4649964.nxvvEsyXSj-- --===============5626679348293774792== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings --===============5626679348293774792==--