Thanks Andrey, I got it working.
Le 03/01/2014 17:48, Andrey Kozhevnikov a écrit : > you need to add your translations to INSTALLS > > On 03.01.2014 22:34, Franck Routier (perso) wrote: > pro file is as follows: > > # The name of your app. > # NOTICE: name defined in TARGET has a corresponding QML filename. > # If name defined in TARGET is changed, following needs to be > # done to match new name: > # - corresponding QML filename must be changed > # - desktop icon filename must be changed > # - desktop filename must be changed > # - icon definition filename in desktop file must be changed > TARGET = MkPokerPlanning > > CONFIG += sailfishapp > > SOURCES += src/MkPokerPlanning.cpp > > evil_hack_to_fool_lupdate { > SOURCES += \ > qml/MkPokerPlanning.qml \ > qml/cover/CoverPage.qml \ > qml/pages/MainPage.qml \ > qml/pages/Card.qml \ > qml/pages/CardPage.qml \ > qml/pages/About.qml \ > qml/pages/CardDeckModel.qml \ > qml/pages/AppSettings.qml \ > qml/pages/SettingsPage.qml > } > > OTHER_FILES += qml/MkPokerPlanning.qml \ > qml/cover/CoverPage.qml \ > rpm/MkPokerPlanning.spec \ > rpm/MkPokerPlanning.yaml \ > MkPokerPlanning.desktop \ > qml/pages/MainPage.qml \ > qml/pages/Card.qml \ > qml/pages/CardPage.qml \ > qml/pages/About.qml \ > LICENSE.txt \ > changelog \ > qml/pages/CardDeckModel.qml \ > qml/pages/AppSettings.qml \ > qml/pages/SettingsPage.qml \ > languages/mkpokerplanning_fr.ts \ > languages/mkpokerplanning_fr.qm > > RESOURCES += \ > images.qrc > > HEADERS += > > TRANSLATIONS = languages/mkpokerplanning_fr.ts > > Le 03/01/2014 17:30, Andrey Kozhevnikov a écrit : >>>> show pro file >>>> >>>> On 03.01.2014 22:22, Franck Routier (perso) wrote: >>>>> Hi, >>>>> >>>>> still in the process of finishing my first application... >>>>> >>>>> Now I have translation files (.ts and .qm), that are located in >>>>> a 'languages' directory. >>>>> >>>>> I have added them to the .pro file, and I have modified the yaml >>>>> RPM definition, but I must be missing something, as I get an RPM >>>>> error "error: File not found: >>>>> /home/deploy/installroot/usr/share/MkPokerPlanning/languages" >>>>> >>>>> Indeed, I can find my files on the mersdk VM in >>>>> /home/mersdk/devl/MkPokerPlanning/languages, but it does not make >>>>> it to /home/deploy/installroot/usr/share/MkPokerPlanning/... >>>>> >>>>> Here is my yaml: >>>>> >>>>> Name: MkPokerPlanning Summary: Participate in a poker planning >>>>> session and show off your Jolla Version: 0.4 Release: 1 Group: >>>>> Qt/Qt URL: http://example.org/ License: GPLv3 Sources: - >>>>> '%{name}-%{version}.tar.bz2' Description: |- This app will let >>>>> you choose your poker planning evaluation in a set of cards, and >>>>> show it to your scrum-mates in due time, and on your Jolla. >>>>> Configure: none Builder: qtc5 PkgConfigBR: - Qt5Quick - Qt5Qml - >>>>> Qt5Core - sailfishapp >= 0.0.10 Requires: - sailfishsilica-qt5 >= >>>>> 0.10.9 Files: - '%{_bindir}' - '%{_datadir}/%{name}/qml' - >>>>> '%{_datadir}/%{name}/languages' - >>>>> '%{_datadir}/applications/%{name}.desktop' - >>>>> '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' - /usr/bin - >>>>> /usr/share/MkPokerPlanning - >>>>> /usr/share/MkPokerPlanning/languages - /usr/share/applications - >>>>> /usr/share/icons/hicolor/86x86/apps PkgBR: [] >>>>> >>>>> Can someone help me spot the problem ? >>>>> >>>>> Thanks in advance, >>>>> >>>>> Franck _______________________________________________ >>>>> SailfishOS.org Devel mailing list >>>> _______________________________________________ SailfishOS.org >>>> Devel mailing list >> _______________________________________________ >> SailfishOS.org Devel mailing list > > _______________________________________________ > SailfishOS.org Devel mailing list _______________________________________________ SailfishOS.org Devel mailing list