Transifex_demo #1

Closed
cisosama wants to merge 1 commits from cisosama/transifex-webhook:Transifex_demo into main
First-time contributor

Transifex demo added, now source string is translated into french

Transifex demo added, now source string is translated into french
cisosama added 1 commit 2022-12-14 08:42:39 +01:00
PeterSurda requested changes 2022-12-19 07:49:07 +01:00
PeterSurda left a comment
Owner
  • Sanitize
  • in general correct but incomplete (no requirements.txt, Dockerfile, docker-compose.yml, webhook argument processing)
- Sanitize - in general correct but incomplete (no `requirements.txt`, `Dockerfile`, `docker-compose.yml`, webhook argument processing)
cisosama force-pushed Transifex_demo from bff51a74da to ee0e081983 2022-12-19 14:25:54 +01:00 Compare
cisosama force-pushed Transifex_demo from ee0e081983 to fcade1debb 2022-12-19 14:26:47 +01:00 Compare
cisosama force-pushed Transifex_demo from fcade1debb to 3628348322 2022-12-19 14:55:46 +01:00 Compare
PeterSurda requested changes 2022-12-20 07:59:09 +01:00
Dockerfile Outdated
@ -0,0 +1,5 @@
FROM python:3
ADD requirements.txt /

I would create a directory for the app, such as /app

I would create a directory for the app, such as `/app`
@ -0,0 +1,17 @@
"""Transifex basic implementation using python native sdk """

should be made into a web app (e.g. cherrypy, flask, django, ...)

should be made into a web app (e.g. cherrypy, flask, django, ...)
@ -0,0 +4,4 @@
from transifex.native import init, tx
from transifex.native.parsing import SourceString
env_path=os.path.join(os.getcwd(),'transifex.env')

since we're already telling docker-compose to load the transifex.env file, we don't need to do this anymore

since we're already telling docker-compose to load the `transifex.env` file, we don't need to do this anymore
PeterSurda marked this conversation as resolved
cisosama force-pushed Transifex_demo from 532389c76e to 1971fb0604 2022-12-21 08:04:47 +01:00 Compare
cisosama force-pushed Transifex_demo from 1971fb0604 to 761d0b7bbb 2022-12-21 11:23:02 +01:00 Compare
cisosama force-pushed Transifex_demo from 761d0b7bbb to ed85f418af 2022-12-21 11:32:30 +01:00 Compare
cisosama force-pushed Transifex_demo from ed85f418af to 9f7384d6c6 2022-12-21 16:04:15 +01:00 Compare
PeterSurda approved these changes 2022-12-27 07:46:52 +01:00
@ -0,0 +71,4 @@
response = requests.put("https://www.transifex.com/api/2/project/pybitmessage/resource/pybitmessage/content/",
headers=headers, files={'bitmessage_en.ts': open("src/translations/bitmessage_en.ts", "rb")})
return response
@expose
def upload_source()
	queue_async_job(id)
    return ok
    
def async_job(id)
   while not  requests.get url+id
      sleep (1)
      # todo expire after maybe 10 minutes
   transifex_api_upload_resource
``` @expose def upload_source() queue_async_job(id) return ok def async_job(id) while not requests.get url+id sleep (1) # todo expire after maybe 10 minutes transifex_api_upload_resource ```
PeterSurda requested changes 2022-12-27 07:47:16 +01:00
PeterSurda left a comment
Owner

please make the changes required

please make the changes required
cisosama force-pushed Transifex_demo from 52cac358b4 to 9cfbadbe45 2022-12-30 07:10:34 +01:00 Compare
cisosama force-pushed Transifex_demo from 9cfbadbe45 to 3052e97d90 2022-12-30 07:13:06 +01:00 Compare
cisosama force-pushed Transifex_demo from 3052e97d90 to 02246b8602 2022-12-30 07:19:25 +01:00 Compare
cisosama force-pushed Transifex_demo from 02246b8602 to 03132afaf7 2022-12-30 07:29:39 +01:00 Compare
Owner

obsolete

obsolete
PeterSurda closed this pull request 2023-01-06 07:33:39 +01:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/transifex-webhook#1
No description provided.