Comments (7)
from serge.
We have a wrapper script like this (it loads virtualenv config, switches to the desired environment and runs manage.py with all the passed parameters:
#!/bin/bash
source /usr/local/bin/virtualenvwrapper.sh
workon pootle
/path/to/manage.py $@
You can save this script under e.g. /usr/local/bin/pootle
and use this path as a value for manage_py_path
parameter.
from serge.
@iafan
My Serge and Pootle have running successfully.
However, another question come to me.
I translated my localization file on Pootle system. But I use serge pull-ts
to get the translated file, Nothing changed.
Need I configure the Pootle extra?
from serge.
Here's the result when i run serge sync
Scanning .serge files in '/Users/tropsci/serge_dir'... 1 files found
### /Users/tropsci/serge_dir/my-ios-client.serge
Updating project from VCS...
HEAD is now at 8f77a62 Automatic commit of updated project files
Current branch master is up to date.
'pull' step took 1.839886 seconds
Updating .po files from Pootle's internal database...
Running '/Users/tropsci/dev/pootle/pootle.sh sync_stores --skip-missing --project=project1'...
2016-10-12 15:39:18,283 INFO Loading custom settings from '/Users/tropsci/.pootle/pootle.conf'...
2016-10-12 07:39:21,066 INFO Using Python PO
System check identified some issues:
WARNINGS:
?: (pootle.W001) No RQ Worker running.
HINT: Run new workers with manage.py rqworker
?: (pootle.W004) Email server is not available.
HINT: Review your email settings and make sure your email server is working.
?: (pootle.W006) The sqlite database backend is unsupported
HINT: Set your default database engine to postgresql_psycopg2 or mysql
'pull-ts' step took 4.345124 seconds
Running the translation framework...
*** [project1.cm-topsci.com] "Sample job 1" ***
Preloading properties...
Source dir: [/Users/tropsci/serge_dir/serge_demo/Localization_Serge_Demo/en.lproj]
DB source: [DBI:SQLite:dbname=./translate.db3]
TS file path: [/Users/tropsci/serge/po/project1/%LOCALE%/%FILE%.po]
Output path: [/Users/tropsci/serge_dir/serge_demo/Localization_Serge_Demo/%LANG%.lproj/%FILE%]
Destination languages: [de]
Modified languages: [de]
Preloading cache for job 'project1.cm-topsci.com' in namespace 'project1'...
Updating database from source files...
Scanning directory structure...
Scanned in 0.000232 sec, 1 files match the criteria
Localization.strings
0 files are new, 0 were orphaned and 0 are no longer orphaned since last run
update_database_from_source_files() took 0.018056 seconds
Updating database from translation files for [de] language...
update_database_from_ts_files() took 0.009566 seconds
Generating translation files...
Localization.strings (not modified)
generate_ts_files() took 0.006368 seconds
Generating localized files...
Localization.strings (not modified)
generate_localized_files() took 0.000284 seconds
*** [end] ***
'localize' step took 0.1218 seconds
Updating Pootle's internal database from .po files...
Running '/Users/tropsci/dev/pootle/pootle.sh update_stores --project=project1'...
2016-10-12 15:39:21,793 INFO Loading custom settings from '/Users/tropsci/.pootle/pootle.conf'...
2016-10-12 07:39:22,016 INFO Using Python PO
System check identified some issues:
WARNINGS:
?: (pootle.W001) No RQ Worker running.
HINT: Run new workers with manage.py rqworker
?: (pootle.W004) Email server is not available.
HINT: Review your email settings and make sure your email server is working.
?: (pootle.W006) The sqlite database backend is unsupported
HINT: Set your default database engine to postgresql_psycopg2 or mysql
'push-ts' step took 0.514566 seconds
Committing updated project files back to VCS
Nothing to commit
'push' step took 0.107365 seconds
from serge.
And the translations table in the sqlite database shows noting. Isn't it where the translations should be?
So strange.
from serge.
from serge.
I have solved this problem. Maybe the Pootle is not compatible with SQLite.
I use the solution here.
Thank you all the same.
from serge.
Related Issues (20)
- parse_php_xhtml: add an ability to fine-tune the list of tags processed by default
- Serge always prints debug output on CI. HOT 1
- Qt Text Id based (ts files) HOT 5
- Localized file generation failed HOT 5
- Typo bug: DROP index items_file_id_string_id after CREATE HOT 1
- Add support for computed properties in parse_js parser
- Optimizations prevent reusing translations on existing unmodified files
- Cannot use env variable on boolean property
- Serge surprisingly cuts file name. HOT 3
- transliterate option of test_language plugin should not modify printf() parameter fields
- [Question] Are there any examples (e.g. GitLab CI)?
- Support multiple source files in single XLIFF file HOT 1
- Each <trans-unit> sets "approved=yes" for untranslated strings HOT 3
- parse nginx.conf bug,include not support wildcard HOT 1
- While put the mouse on (Notebooks section) we are unable to place mouse directly on scroll bar, please increase the mouse scroll width like how the size it as page right hand side up and down scroll bar size.
- Parse MD file
- run_command for jobs with several destination_languages dont change %OUTFILE% variable HOT 1
- export_to_ttx is not including the translated text
- Docs no longer easily accessible HOT 1
- Ownership transfer request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serge.