jim-easterbrook / Photini

An easy to use digital photograph metadata (Exif, IPTC, XMP) editing application.
https://photini.readthedocs.io/
GNU General Public License v3.0
163 stars 24 forks source link

How to select photini language? #44

Closed aseques closed 5 years ago

aseques commented 5 years ago

I wanted to test the newly create catalan translation, so after clonning git master I do:

python3 setup.py lrelease python3 setup.py build
sudo python3 setup.py install

I get some errors but the process seems to finnish well, as I get the qm files:

running lrelease
creating src/photini/data/lang
lrelease-qt5 src/lang/photini.pl.ts -qm src/photini/data/lang/photini.pl.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.pl.ts -qm src/photini/data/lang/photini.pl.qm
Updating 'src/photini/data/lang/photini.pl.qm'...
    Generated 135 translation(s) (135 finished and 0 unfinished)
    Ignored 89 untranslated source text(s)
lrelease-qt5 src/lang/photini.cs_CZ.ts -qm src/photini/data/lang/photini.cs_CZ.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.cs_CZ.ts -qm src/photini/data/lang/photini.cs_CZ.qm
Updating 'src/photini/data/lang/photini.cs_CZ.qm'...
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
    Generated 228 translation(s) (228 finished and 0 unfinished)
    Ignored 124 untranslated source text(s)
lrelease-qt5 src/lang/photini.de.ts -qm src/photini/data/lang/photini.de.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.de.ts -qm src/photini/data/lang/photini.de.qm
Updating 'src/photini/data/lang/photini.de.qm'...
    Generated 201 translation(s) (201 finished and 0 unfinished)
lrelease-qt5 src/lang/photini.es.ts -qm src/photini/data/lang/photini.es.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.es.ts -qm src/photini/data/lang/photini.es.qm
Updating 'src/photini/data/lang/photini.es.qm'...
    Generated 137 translation(s) (137 finished and 0 unfinished)
    Ignored 87 untranslated source text(s)
lrelease-qt5 src/lang/photini.en.ts -qm src/photini/data/lang/photini.en.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.en.ts -qm src/photini/data/lang/photini.en.qm
Updating 'src/photini/data/lang/photini.en.qm'...
    Generated 224 translation(s) (224 finished and 0 unfinished)
lrelease-qt5 src/lang/photini.ca.ts -qm src/photini/data/lang/photini.ca.qm
unable to execute 'lrelease-qt5': No such file or directory
lrelease src/lang/photini.ca.ts -qm src/photini/data/lang/photini.ca.qm
Updating 'src/photini/data/lang/photini.ca.qm'...
    Generated 228 translation(s) (228 finished and 0 unfinished)
    Ignored 124 untranslated source text(s)

Still, when I open the app the language is always english, I tried overriding the language like this with no efect.

LANG=es photini I saw that there aren't any command line switches language, neither a picker from the GUI, so I'm a bit lost on what to do now. Thanks

jim-easterbrook commented 5 years ago

LANG=es doesn't do anything obvious for me as my Spanish translation file is incomplete. The Flickr uploader tab is mostly translated though.

jim-easterbrook commented 5 years ago

Actually the Spanish translation file isn't that incomplete, but changes in the Photini source means many strings aren't found. Running python3 setup.py lupdate -l es fixes most of the problems.

orensbruli commented 5 years ago

I have just seen Spanish on this conversation... is there something I can help with?

On Wed, 18 Sep 2019 at 11:20, Jim Easterbrook notifications@github.com wrote:

Actually the Spanish translation file isn't incomplete, but changes in the Photini source means many strings aren't found. Running python3 setup.py lupdate -l es fixes most of the problems.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jim-easterbrook/Photini/issues/44?email_source=notifications&email_token=ABMEEIE6AQKQSPXOQCHX733QKHXEFA5CNFSM4IXVTPW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67NF4A#issuecomment-532599536, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMEEIH6SJNJDLTGKRG4VR3QKHXEFANCNFSM4IXVTPWQ .

-- Esteban Martinena Guerrero Fotoperiodista http://emartinena.es

jim-easterbrook commented 5 years ago

If you're interested in "localising" Photini for the Spanish language there's an incomplete translation that could be finished off. You can use an online service "Transifex" or do it locally on your own computer. See https://photini.readthedocs.io/en/latest/other/localisation.html for more info. (If two or more people work on it simultaneously things might get complicated...)

jim-easterbrook commented 5 years ago

Sorry, just noticed you (@orensbruli) did the original translation. It's a bit out of date now...

orensbruli commented 5 years ago

Yes, no problem. I will take a look to it.

On Wed, 18 Sep 2019 at 12:06, Jim Easterbrook notifications@github.com wrote:

Sorry, just noticed you did the original translation. It's a bit out of date now...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jim-easterbrook/Photini/issues/44?email_source=notifications&email_token=ABMEEIDB2KANPZ3CYNJR2S3QKH4TFA5CNFSM4IXVTPW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67ROTA#issuecomment-532617036, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMEEICTTJYJWYCTZCQVJ4DQKH4TFANCNFSM4IXVTPWQ .

-- Esteban Martinena Guerrero Fotoperiodista http://emartinena.es

jim-easterbrook commented 5 years ago

I apologise for suggesting the Spanish translation was very incomplete. When I made some major changes recently I changed the names of some classes but did not update the translation files to match. This meant that the translated strings were not being found so Photini appeared to have no translation, as @aseques found.

I will be more careful in future. The important step is to run lupdate reasonably frequently. It can detect moved strings and do the right thing to the translation files.

aseques commented 5 years ago

hi @jim-easterbrook in fact I wanted to start the program in my locale that's catalan (that should be fully translate at the moment), that didn't show up, so I tried spanish instead. After your last changes (227607069e7c81fe8b0468c10a2e58086a4fca77), I can start now photini in catalan.

Thanks again