From kde-i18n-doc Sun Oct 21 21:30:20 2012 From: Albert Astals Cid Date: Sun, 21 Oct 2012 21:30:20 +0000 To: kde-i18n-doc Subject: Re: QML Gettext extraction Message-Id: <1961146.AlQMmSDZxN () xps> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=135085503504079 El Diumenge, 21 d'octubre de 2012, a les 22:49:57, Adri=C3=A1n Chaves F= ern=C3=A1ndez va=20 escriure: > Hi, >=20 > I=E2=80=99ve read over and over searching the Internet how this is su= pposed to > actually work: >=20 > [gallaecio@afonsox l10n]$ cat ../ui/menu/column/Column.qml | grep "i1= 8n" > text: i18n("Fool=E2=80=99s Mate") > label: i18n("Campaign") > label: i18n("Settings") > label: i18n("Exit") > text: i18n("0.0.0.1") > [gallaecio@afonsox l10n]$ xgettext ../ui/menu/column/Column.qml --fro= m- > code=3DUTF-8 -L java -o test.pot > [gallaecio@afonsox l10n]$ cat test.pot > cat: test.pot: No such file or directory >=20 > Any suggestion why it does not? Because you're doing it wrong. You need to tell xgettext which keywords to extract (why would it extra= ct=20 i18n?) But you'd still be doing it wrong if you do specify the keywords for a = project=20 hosted in kde infrastructure, you're supposed to just use $XGETTEXT or=20= $XGETTEXT_FLAGS in your Messages.sh Cheers, Albert