These are chat archives for chocolatey/ChocolateyGUI

3rd
Jan 2019
Gary Ewan Park
@gep13
Jan 03 09:57
@wget @Kangerine_twitter translations for Chocolatey GUI are handled via an online service called transifex, you can request to be added as a translator here:
Which would then allow you to make changes to the translations that you think need to be updated
@mwallner I suspect that you are right, and that there might be more work required to get this to work properly, but we won't know until we try
William Gathoye
@wget
Jan 03 10:09
@gep13 Excellent. I know this service pretty well. Request sent.
Gary Ewan Park
@gep13
Jan 03 10:14
@wget perfect!
William Gathoye
@wget
Jan 03 10:21
@gep13 In the translation can we use French quotes with nbsp ? « Hello »
The chocolatiest bot this side of the Mississippi
@choco-bot
Jan 03 10:21
Marnin', William Gathoye (wget)
William Gathoye
@wget
Jan 03 10:22
I mean is this supported properly by Posh?
Gary Ewan Park
@gep13
Jan 03 10:23
I am not sure where PowerShell would come into this. The translations entered into Transifex are .resx files, which are then imported into the C# Application that is Chocoalatey GUI, so PowerShell doesn't play a part.
William Gathoye
@wget
Jan 03 10:27
Ah ok. Indeed if this is C# no issue then :)
Consider french quotes and non breaking spaces implemented for the french translation (at least by end of day)
Gary Ewan Park
@gep13
Jan 03 10:29
:+1:
William Gathoye
@wget
Jan 03 11:11
Screenshot_20190103_121046.png
What does mean "self service" in this context?
Gary Ewan Park
@gep13
Jan 03 11:12
That is referring to this:
William Gathoye
@wget
Jan 03 11:28
Ok understood.
French translation updated. There were a bunch of issues, like if the translation was made by someone not speaking french natively (mayb some German guy, because I found german in some strings).
@Kangerine_twitter The French translation should be okay now. Please note the term "Pin/pinning/unpin" has now been corrected by using the right translation (like in Debian).
Unfortunatelly with Transifex, we are unable to set notes for other/forthcoming translators.
William Gathoye
@wget
Jan 03 12:33
@gep13 "Error: Failed to install tool 'transifex-client'." Do you know why? I don't have logs :/
(at least I think)
Gary Ewan Park
@gep13
Jan 03 13:02
@wget Can you show me some more of the output there?
Do you have Chocolatey installed on the machine where you are trying to run the build?
Maurice Kevenaar
@mkevenaar
Jan 03 13:07
Works on my machine:
Chocolatey v0.10.12-beta-3-gb65f586 Business
Installing the following packages:
transifex-client
By installing you accept licenses for the packages.
Progress: Downloading python 3.7.2... 100%
Progress: Downloading transifex-client 0.13.5... 100%

python v3.7.2 [Approved]
python package files install completed. Performing other installation steps.
 The install of python was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

transifex-client v0.13.5 [Approved]
transifex-client package files install completed. Performing other installation steps.
 ShimGen has successfully created a shim for tx.exe
 The install of transifex-client was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 2/2 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Gary Ewan Park
@gep13
Jan 03 13:22
@mkevenaar I believe that @wget is referring to the Cake Build Script that is used to build the WPF Application that is Chocolatey GUI. During that process, it will attempt to install the transifex client, which is used to download the resx files that go into the translation side of things
William Gathoye
@wget
Jan 03 13:26
@gep13 Yes indeed. Is the build.ps1 script supposed to install transifex-client for us? Because I don't see an instruction like that in the buid.ps1 script: https://github.com/chocolatey/ChocolateyGUI/blob/develop/build.ps1
otherwise, it would be nice to set such a requirement in the readme: https://github.com/chocolatey/chocolateygui/#building
Gary Ewan Park
@gep13
Jan 03 13:32
It will install it as part of the Cake Build Step, which the build.ps1 invokes.
The fact that it hasn't been able to suggests that something else went wrong
William Gathoye
@wget
Jan 03 13:33
Okay. I was running the script as a standard user. Might be the reason why it complained "I cannot install transifex blablabal"
Gary Ewan Park
@gep13
Jan 03 13:33
Can you go ./build.ps1 --verbosity=diagnostic
and let me see the relevant section on the output?
Ah, that could well be it
Can you do it from an elevated shell?
William Gathoye
@wget
Jan 03 13:52
Indeed. It is asking me transifex credentials now.
@gep13 Do you know why the wixtoolset is not set as a cake dependency? It would have been more coherent to put it inside cake
also, by defautl cake is skipping msi creation :-/
Gary Ewan Park
@gep13
Jan 03 13:57
@wget it could be that this is a missing dependency that needs to be addressed.
In order for the MSI to be generated, it needs to be signed, and that can only happen with the signing certificate in place, which you don't have
As a result, you won't be able to build the MSI
I am surprised that you were asked for credentials, this shouldn't have been necessary
Can you confirm you have the latest Chocolatey GUI source code?
William Gathoye
@wget
Jan 03 14:01
I confirm. Actually it is asking me API token, not credentials
Gary Ewan Park
@gep13
Jan 03 14:04
Even then, that shouldn't be necessary, as this should either be set as part of the build, or skipped, since the necessary environment variables won't have been populated
William Gathoye
@wget
Jan 03 14:04
@gep13 Have sent the logs in DM
Gary Ewan Park
@gep13
Jan 03 16:18

@wget I have just made a slight change to the Chocolatey GUI repository, and this in place, and without doing anything else on a clean machine, all I had to do was:

choco install wixtoolset
./build.ps1

and the end result was:

image.png
If you could test again, and let me know, that would be great, thank you
NOTE: this won't result in an MSI that has the translation files included in it, since by default, those steps are skipped
If that is your intention, we would need to set up some environment variables to allow those to be downloaded from transifex as part of the build that you have
William Gathoye
@wget
Jan 03 17:35
@gep13 Thanks this is now indeed working: https://gist.github.com/wget/2c252f3c65b95593904dc15d74c135b8
How do you have sorted out the issue with transifex? Cake is not asking me my api key again?
Are the new strings properly pulled?
William Gathoye
@wget
Jan 03 17:52
Ok the vrsion I built is using the latest strings from transifex. Now I have a little bit more context, I'm gonna tweak some of these translations.
William Gathoye
@wget
Jan 03 17:58
Screenshot_20190103_185750.png
@gep13 The features column is not translated. Is this intended?
Gary Ewan Park
@gep13
Jan 03 18:23
@wget in order to avoid duplication, we pull the text regarding the features directly out of Chocolatey itself. As a result, there is no way, currently, to translate those strings.
Sami B.
@Kangerine_twitter
Jan 03 19:25
@gep13 @wget looking at the translated strings on transifex, they indeed seem all right, but they don’t match what I see in the actual UI at all
what could be going on here?
does the program use an old version of the translation?
(sorry for only getting back to you now, new year was a bit busy…)
Gary Ewan Park
@gep13
Jan 03 19:38
@Kangerine_twitter this question has been asked a couple of times, and I have realised that it is isn't documented very well. Let me update the documentation to reflect what is done, and I will send you a link to it to have you read over to see if it makes sense.
Gary Ewan Park
@gep13
Jan 03 21:04
@Kangerine_twitter @wget if I could get you both to have a look at this:
And let me know if there is anythign that is not clear, or missing, I would really appreciate it
Thanks!
@AdmiringWorm if you have a minute as well, could you have a read through it? Thanks!
Maurice Kevenaar
@mkevenaar
Jan 03 22:12

@gep13 I tought you mentioned that one can only generate the MSI if one has the certificate?

“Assuming that completes successfully, you should be able to install the generated MSI, which will contain the most recent translations available”

Other than that, it is clear to me
Gary Ewan Park
@gep13
Jan 03 22:39
@mkevenaar off the top of my head, I thought that was the case as well, however, when I checked, the build-msi task is separate from the sign-msi step, so I was mistaken.