Coder Social home page Coder Social logo

Comments (8)

igordsm avatar igordsm commented on August 17, 2024

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.

tsujan avatar tsujan commented on August 17, 2024

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.

igordsm avatar igordsm commented on August 17, 2024

@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.

agaida avatar agaida commented on August 17, 2024

@igordsm - trust me, you don't want to right now :D - But this will change soon.
lxqt/lxqt#1495

from lximage-qt.

tsujan avatar tsujan commented on August 17, 2024

@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.

agaida avatar agaida commented on August 17, 2024

@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.

igordsm avatar igordsm commented on August 17, 2024

@agaida So I can suppose that, if I add a new translation string it will magically appear in the .ts files?

from lximage-qt.

agaida avatar agaida commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.