Comments (5)
Edit: Just noticed the app could not build by using this trick. So I currently don't have any solution
from contractor.
You do not need to translate contract files. You can call Granite.Service.Contract.get_display_name () to get the internationalized name.
However, be aware that the contractor framework does not currently work with Flatpak applications and most of its usage is likely to be replaced by portals.
from contractor.
See for example https://github.com/codygarver/os-patch-file-roller-xenial/blob/master/data/file-roller-compress.contract. You just need to provide the appropriate Gettext-domain
key.
from contractor.
I guess this assumes that the string used for the Name
key is the same as one used (and translated) in the associated app though.
from contractor.
Thanks for the explanation @jeremypw
I'll report this to the developer 😄
from contractor.
Related Issues (18)
- Support TryExec key like in .desktop files HOT 4
- Discriminate between single file and multi-file actions [$50] HOT 4
- documentation anywhere?? HOT 7
- filter functions based on file size HOT 1
- How to debug? HOT 5
- Migrate to Meson
- meson regression: contract directory no longer installed HOT 4
- Put all contracts in a single repository HOT 1
- Contractor doesn't allow disabling system-wide contracts HOT 5
- wrong RDNN for dbus service
- Document how to provide contracts from flatpak apps HOT 3
- Doesn't support actions exposed via D-bus HOT 4
- Doesn't provide a way to conditionally show contracts or make them sensitive HOT 3
- Support text buffers like plain text selection or URL HOT 2
- Contractor is GIGO HOT 1
- Send files via Bluetooth option present when no bluetooth HOT 1
- man page is in packaging instead of main source code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contractor.