Notices


Reply
Thread Tools
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#101
Ok, I found a way that worked for me!

If you use sailfish-qml to start your PyOtherSide/QML application you have to place your qm-translation files in a folder called translations.

Translation files are supposed to be named "<appname>-<lang>.qm" in "/usr/share/<appname>/translations/"

That works for me, found it at the source code of sailfishlib project:
https://github.com/sailfish-sdk/libs...shapp_priv.cpp
 

The Following 4 Users Say Thank You to EmaNymton For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Mar 2015
#102
Hello.

I've tried to install PyQt on Jolla, but got the error about failed dependencies:

"Qt5Multimedia.WIdgets.so.5 is needed by python-pyqt-5.1.1-1.armv7hl"

And the same error occurs while trying to install Panucci.

Is there a way to install the missing module?
 
Posts: 1,360 | Thanked: 6,192 times | Joined on Apr 2010 @ Czech Republic
#103
Originally Posted by otsaloma View Post
Any advice on how to handle translations of strings in Python code? In particular when doing string formatting in Python and the unformatted string should be subject to translation.

Is there a way to access ts-file data from Python without importing some huge PyQt? Or am I just wrong to put strings in Python and should move them all to QML? The whole Qt translation system seems very primitive compared to gettext.

https://github.com/otsaloma/poor-maps/issues/1
What about using gettext for the Python part and the Qt thing for the QML part ?
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !
 
Posts: 3,230 | Thanked: 4,116 times | Joined on May 2011 @ Poland
#104
Why is Jolla so reluctant to support PyQt5 in Harbour?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Current project:
Porting SailfishOS onto OnePlus 3

Projects no longer actively developed: here
 
Posts: 1,360 | Thanked: 6,192 times | Joined on Apr 2010 @ Czech Republic
#105
Originally Posted by marmistrz View Post
Why is Jolla so reluctant to support PyQt5 in Harbour?
Maybe because it's so much larger than PyOtherSide ? PyQt attepmts to wrap and make accessible all Qt 5 classes while PyOtherSide is just a light RPC interface for QML.

In any case it would be a good idea to raise the issue on the Community Meeting.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !
 

The Following 2 Users Say Thank You to MartinK For This Useful Post:
Posts: 1,360 | Thanked: 6,192 times | Joined on Apr 2010 @ Czech Republic
#106
I've just submitted a merge request for updating PyOtherSide in Sailfish OS from 1.4 to 1.5:
https://git.merproject.org/mer-core/...rge_requests/2

If it is accepted by maintainers it these are the main features that will be available to Python application developers:
  • Support for OpenGL rendering in Python using PyOpenGL >= 3.1.0
  • New QML components: PyGLArea, PyFBO
  • pythonVersion() now returns the runtime Python version
  • Add the library to PYTHONPATH for standard library appended as .zip (except on Windows)
  • Call PyDateTime_IMPORT as often as necessary (Fixes #46)
  • Added pyotherside.format_svg_data for using SVG data in the image provider
  • Handle converting QVariantHash to Python dict type
  • Added .qmltypes file to provide metadata information for Qt Creator
  • New functions importNames() and importNames_sync() for from-imports
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !

Last edited by MartinK; 2017-01-30 at 01:22.
 

The Following 10 Users Say Thank You to MartinK For This Useful Post:
Posts: 1,360 | Thanked: 6,192 times | Joined on Apr 2010 @ Czech Republic
#107
My PyOtherSide update request (to version 1.5.1) has been merged, and should be (according to Larstiq on IRC) part of the Sailfish OS Update that comes after the next one (2.1.0 + 2 updates). So let's hope the Sailfish OS update cycle speeds up now that Qt 5.6 is in and we can soon make use of all the nice new features and fixes of the updated PyOtherSide.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !
 

The Following 15 Users Say Thank You to MartinK For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:26.