Comments (8)
Hello,
I would like to take a shot at this. It seems to me that this behavior can occur only when using Save As, so I am messing with QMainWindow::saveFileName.From my brief research, QFileDialog is not able to show the "File (A) exists, Do you want to override?" dialog for file names without extension (specially since we add the extension after the dialog is closed.
I have a partial solution working with a loop that checks if the file exists and shows a dialog only if the default extension is used. However, using this solution we would need to add extra translation strings. Is this ok?
from lximage-qt.
However, using this solution we would need to add extra translation strings. Is this ok?
Yes, of course.
Sorry that I forgot this; I was/am very busy with other projects.
from lximage-qt.
@tsujan Thanks for the quick answer! Now for the real question: how do I update the .ts files in LXQt? I found some in lximage-qt/src/translations/lximage-qt but it seems that they are not used when building (instead the lxqt-i10n repo is downloaded and used). If I can get this working I can submit a patch in the next few days.
PS: The translation wiki was not very useful since it only shows how to translate the .ts files, but not how to regenerate them...
from lximage-qt.
@igordsm - trust me, you don't want to right now :D - But this will change soon.
lxqt/lxqt#1495
from lximage-qt.
@igordsm I can't help you with that because I never touch translations when working on LXQt. However, if you want to translate lximage-qt in addition to coding, it'll be easy soon; take a look at @agaida's link.
from lximage-qt.
@igordsm - in short - we had messed it up in the past few years - Weblate 3.0 was released three days ago, our only problem is to merge back the translations back into a place where they belong to. Simple task, < 800 lines code needed :P
from lximage-qt.
@agaida So I can suppose that, if I add a new translation string it will magically appear in the .ts files?
from lximage-qt.
right - if you read the linked thread, the main problem is to place the already finished translations in the repo again - without shooting us in both feets or knees. If that is done i will import the translations into weblate and add a script to our build tools that will do the translation updates. Something like:
lupdate $TRANSLATION_ROOT -ts $TRANSLATION_DIR/$SUBCOMPONENT/*.ts -locations absolute -no-sort -no-obsolete
in nice, easy and right 😎
from lximage-qt.
Related Issues (20)
- erase in the menu "View" the checkbox next to "Full Screen" HOT 1
- dark system-theme is not respected HOT 1
- Use of the spacebar key to pause/resume a slideshow HOT 3
- Top of image gets corrupted when toolbar extension popup slides back HOT 3
- Add Finnish language to Weblate [Feature request] HOT 2
- [Feature request] `Open with` does not auto-save or suggest to save HOT 1
- Support changing implicit sort order HOT 2
- Window size is not remembered when pressing F11 one or two times HOT 6
- PCX not supported by QImageReader, should not be listed in .desktop file HOT 15
- [Feature request] Switch to toggle antialiasing filter HOT 1
- [Feature request] Add line wrap support to SVG HOT 2
- Small app icon HOT 7
- [Feature request] Option to disable partial rendering HOT 4
- [Feature request] Crop + Compress + save in original quality HOT 1
- Opening an image opens another image in the folder instead of the double clicked image HOT 1
- Confusing and contradictory licensing information HOT 1
- [Feature request] Support heif format HOT 10
- Checkbox for annotations toolbar resets always to non checked HOT 5
- TGA support HOT 1
- Wrong mimetype for PGM (image/x-portable-graymap) files HOT 1
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 lximage-qt.