Git Product home page Git Product logo

Comments (7)

liuwin7 avatar liuwin7 commented on September 13, 2024

@iafan

from serge.

iafan avatar iafan commented on September 13, 2024

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.

liuwin7 avatar liuwin7 commented on September 13, 2024

@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.

liuwin7 avatar liuwin7 commented on September 13, 2024

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.

liuwin7 avatar liuwin7 commented on September 13, 2024

And the translations table in the sqlite database shows noting. Isn't it where the translations should be?
So strange.

from serge.

liuwin7 avatar liuwin7 commented on September 13, 2024

@iafan

from serge.

liuwin7 avatar liuwin7 commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.