Bug 450626 - [translations] install.sh does not install translations properly
Summary: [translations] install.sh does not install translations properly
Status: RESOLVED WORKSFORME
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: 0.10.8
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-20 20:20 UTC by aliquo93
Modified: 2023-03-17 03:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Localization bug (100.71 KB, image/png)
2022-02-20 20:20 UTC, aliquo93
Details
Language (94.22 KB, image/png)
2022-02-21 20:30 UTC, aliquo93
Details
Installed languages (122.61 KB, image/png)
2022-02-22 00:31 UTC, aliquo93
Details
install.sh (236.38 KB, image/png)
2022-02-22 23:18 UTC, aliquo93
Details
Possible solution? (240.38 KB, image/png)
2022-02-22 23:28 UTC, aliquo93
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aliquo93 2022-02-20 20:20:15 UTC
Created attachment 146980 [details]
Localization bug

SUMMARY
Latte dock 0.10.8 is not properly localized, previous versions were correctly shown in my language (italian), while now it's in english.

SOFTWARE/OS VERSIONS
OS: Kubuntu 21.10
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Comment 1 Michail Vourlakos 2022-02-21 06:09:11 UTC
this is not latte fault...

make sure that: right click dock -> Configure Latte... -> Help -> Configure Language
your languages are configured properly. If this is not the case then you need to contact the Italian locatization team for help.
Comment 2 aliquo93 2022-02-21 20:30:19 UTC
Created attachment 147016 [details]
Language

Only english is available and it doesn't let me add any other language.
Comment 3 Michail Vourlakos 2022-02-21 20:46:49 UTC
You haven't installed languages then. How did you install Latte?
Comment 4 aliquo93 2022-02-22 00:31:26 UTC
Created attachment 147027 [details]
Installed languages

Of course I've installed languages, my system is entirely in italian, I've installed Latte by compiling it from source. With previous versions of both Latte and KDE Plasma I've had installed it from source too and it was in italian without doing any extra configuration.
Comment 5 Michail Vourlakos 2022-02-22 05:19:16 UTC
When you install Latte by yourself, translations of latte are not installed by default of course. If I remember correctly it is, sh install.sh --include-translations you can check in install.sh to find the exact parameter to use.
Comment 6 aliquo93 2022-02-22 19:43:35 UTC
Ok, I will try soon and let you know.
Comment 7 aliquo93 2022-02-22 23:18:32 UTC
Created attachment 147065 [details]
install.sh

I've tried now adding the parameter "--translations-stable" as mentioned in install.sh file, but when compiling it said that it was an unexpected operator e when it finished nothing changed, it's still in english.

Do you think that if I try again without adding any parameter but changing the line in the else condition from "-DKDE_L10N_AUTO_TRANSLATIONS=OFF" to "-DKDE_L10N_AUTO_TRANSLATIONS=ON" it would work?

Anyway, I am 100% sure that with previous versions I didn't have to add any parameter at all, just doing "sh install.sh" was enough to have it in italian.
Comment 8 aliquo93 2022-02-22 23:24:31 UTC
Or maybe if I replace the entire "else" section with the contents of the "elif" section it would do the trick?
Comment 9 aliquo93 2022-02-22 23:28:06 UTC
Created attachment 147066 [details]
Possible solution?

I mean like this. Before proceeding I'll wait for your reply.
Comment 10 Michail Vourlakos 2022-02-23 06:25:07 UTC
You need help in installing and this is no help forum. You can try to ping your distro forums and packagers.
Comment 11 aliquo93 2022-02-23 19:01:52 UTC
You apparently don't understood man, it is a problem with your script that it doesn't recognize it's own arguments. In fact, if I append the "--traslations" argument, this is the output I get:

daniele@Daniele-HP:~/Documenti/Latte_Layouts/latte-dock-0.10.8$ sh install.sh --translations
install.sh: 12: [: --translations: unexpected operator
install.sh: 12: [: unexpected operator
install.sh: 16: [: -a: unexpected operator
install.sh: 22: [: -a: unexpected operator
install.sh: 25: [: -a: unexpected operator
install.sh: 29: [: --translations: unexpected operator
install.sh: 32: [: --translations: unexpected operator

I repeat that with previous versions I didn't have this problem at all, and of course before compiling I have installed all the dependencies, both with this version and previous ones.
Comment 12 Michail Vourlakos 2022-02-23 19:26:08 UTC
(In reply to aliquo93 from comment #8)
> Or maybe if I replace the entire "else" section with the contents of the
> "elif" section it would do the trick?

no, not installing translations by default is intentional
Comment 13 aliquo93 2022-02-23 19:28:30 UTC
(In reply to Michail Vourlakos from comment #12)
> (In reply to aliquo93 from comment #8)
> > Or maybe if I replace the entire "else" section with the contents of the
> > "elif" section it would do the trick?
> 
> no, not installing translations by default is intentional
I’ve tried anyway, but at the time of fetching translations it reports another error, give me some minutes and I’ll post it.
Comment 14 Michail Vourlakos 2022-02-23 19:33:18 UTC
(In reply to aliquo93 from comment #13)
> (In reply to Michail Vourlakos from comment #12)
> > (In reply to aliquo93 from comment #8)
> > > Or maybe if I replace the entire "else" section with the contents of the
> > > "elif" section it would do the trick?
> > 
> > no, not installing translations by default is intentional
> I’ve tried anyway, but at the time of fetching translations it reports
> another error, give me some minutes and I’ll post it.

fetching translations script is not latte responsibility but kde frameworks... post it any way in any case...
Comment 15 aliquo93 2022-02-23 20:01:20 UTC
(In reply to Michail Vourlakos from comment #14)
> (In reply to aliquo93 from comment #13)
> > (In reply to Michail Vourlakos from comment #12)
> > > (In reply to aliquo93 from comment #8)
> > > > Or maybe if I replace the entire "else" section with the contents of the
> > > > "elif" section it would do the trick?
> > > 
> > > no, not installing translations by default is intentional
> > I’ve tried anyway, but at the time of fetching translations it reports
> > another error, give me some minutes and I’ll post it.
> 
> fetching translations script is not latte responsibility but kde
> frameworks... post it any way in any case...

Here's the output:

Scanning dependencies of target fetch-translations
[100%] Fetching releaseme scripts to download translations...
Clone in 'releaseme' in corso...
remote: Enumerating objects: 293, done.
remote: Counting objects: 100% (293/293), done.
remote: Compressing objects: 100% (225/225), done.
remote: Total 293 (delta 29), reused 261 (delta 21), pack-reused 0
Ricezione degli oggetti: 100% (293/293), 148.76 KiB | 982.00 KiB/s, fatto.
Risoluzione dei delta: 100% (29/29), fatto.
[100%] Downloading translations for lattedock branch trunk...
Già aggiornato.
Found 0 elements for lattedock
make[3]: *** [CMakeFiles/fetch-translations.dir/build.make:80: CMakeFiles/fetch-translations] Errore 1
make[2]: *** [CMakeFiles/Makefile2:1009: CMakeFiles/fetch-translations.dir/all] Errore 2
make[1]: *** [CMakeFiles/Makefile2:1016: CMakeFiles/fetch-translations.dir/rule] Errore 2
make: *** [Makefile:194: fetch-translations] Errore 2
Comment 16 Luigi Toscano 2023-02-15 18:36:43 UTC
Since a few months ago the translations, which are handled outside the repositories of KDE software, are injected back inside the code repositories every day ( https://invent.kde.org/plasma/latte-dock/-/tree/master/po ), so no additional fetching should be needed. Can you please confirm that?
Comment 17 Bug Janitor Service 2023-03-02 03:45:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 18 Bug Janitor Service 2023-03-17 03:45:47 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!