Discussion:
[whispersystems] Translation for zh_TW
c***@tutanota.com
2016-02-13 15:57:03 UTC
Permalink
I read [1] and [2] but do not find any guidelines for translation (Transifex
doesn't have the language available for zh_Tw or Traditional Chinese). So I
clone and give a quick translation for for zh_TW[3] version. Then trying to
test by following the guideline[2], it complains with error  (line between
36642 and 36648).

WebSocket connection to
'wss://textsecure-service-staging.whispersystems.org/v1/websocket/provisioning/?agent=OWD'
failed: WebSocket opening handshake was canceled

getProvisioningSocket: function () { return new
WebSocket( this.url.replace('https://', 'wss://')
.replace('http://', 'ws://') +
'/v1/websocket/provisioning/?agent=OWD' ); }

Also the loaded Signal Desktop do not show translated text in created folder
zh_tw under _locales directory. Any global setting is required so that
translation for a particular language will be activated? 
Thanks
[1]. https://github.com/WhisperSystems/Signal-Desktop[2]. https://github.com/WhisperSystems/Signal-Desktop/blob/master/CONTRIBUTING.md[3]. https://github.com/chlin501/Signal-Desktop/blob/master/_locales/zh_TW/messages.json
Sam Lanning
2016-02-13 16:01:23 UTC
Permalink
I'm unsure about the transifex support question, perhaps someone else
can chime in there.

Regarding the websocket connection though, I think that the staging
server is not currently working. You want to run the command "grunt"
in the directory of the repository, and the add the extension in the
folder "dist" to chrome, not the root repository. This will mean that
all compilation is done as required, and the staging URLS are replaced
with the URLS to the live server.

Cheers,
Sam.
Post by c***@tutanota.com
I read [1] and [2] but do not find any guidelines for translation (Transifex
doesn't have the language available for zh_Tw or Traditional Chinese). So I
clone and give a quick translation for for zh_TW[3] version. Then trying to
test by following the guideline[2], it complains with error (line between
36642 and 36648).
WebSocket connection to
'wss://textsecure-service-staging.whispersystems.org/v1/websocket/provisioning/?agent=OWD'
failed: WebSocket opening handshake was canceled
getProvisioningSocket: function () { return new WebSocket(
this.url.replace('https://', 'wss://') .replace('http://', 'ws://') +
'/v1/websocket/provisioning/?agent=OWD' ); }
Also the loaded Signal Desktop do not show translated text in created folder
zh_tw under _locales directory. Any global setting is required so that
translation for a particular language will be activated?
Thanks
[1]. https://github.com/WhisperSystems/Signal-Desktop
[2].
https://github.com/WhisperSystems/Signal-Desktop/blob/master/CONTRIBUTING.md
[3].
https://github.com/chlin501/Signal-Desktop/blob/master/_locales/zh_TW/messages.json
Loading...