The WebTranslateIt Blog · Page 47

i18n news and Product Updates about WebTranslateIt · Page 47

New in Web Translate It: Download invoices as PDF files

By Edouard on March 31, 2011

Organization owners can now download their invoices as PDF files. Click on “Account”, then browser under the “Invoices” tab. You should see this screen.

Click on “Download” and you should download our brand new PDF invoices. This improvement should make your bookkeeping easier.

web_translate_it gem v 1.7.2.1 released

By Edouard on March 31, 2011

I just released a new version of the synchronisation client wti for Web Translate It. wti is a powerful command line tool to synchronise your local translation files with the Web Translate It service.

This is a minor release. It includes one bug fix. You can read more about it in the changelog.

To upgrade to the latest version, type in a terminal: gem install web_translate_it.

web_translate_it gem v 1.7.2.0 released

By Edouard on March 10, 2011

I just released a new version of the synchronisation client wti for Web Translate It. wti is a powerful command line tool to synchronise your local translation files with the Web Translate It service.

This is a somewhat important release . It includes several new features, and deprecates a few commands.

New features

Hooks

The before_pull and after_pull hooks now work within wti pull. Prior to this version they were only used by the synchronisation server.

There are also 2 new hooks: before_push and after_push, which are executed before and after pushing new translations.

These hooks can be defined in the configuration file.

Here’s an example:

api_key: sekret

# Optional: locales not to sync with Web Translate It.
# eg. [:en, :fr] or just 'en'
# ignore_locales: 'en'

# Optional hooks
before_pull: "say 'before pull'"
after_pull:  "say 'after pull'"
before_push: "say 'before push'"
after_push: "say 'after push'"

Multi-locales push and pull

wti pull -l and wti push -l now accept several locales passed as an argument. So you can do:

$ wti pull -l "fr en ja kr"

Which will pull your language files for French, English, Japanese and Korean.

Better help

Under the hood, we replaced the option parser. The new parser gives better control over the accepted options. Each command now has its own help topic, by appending --help. For instance you can type: wti pull --help which gives:

Usage: wti <command> [options]+

The most commonly used wti commands are:

  pull        Pull target language file(s)
  push        Push master language file(s)
  match       Display matching of local files with File Manager
  add         Create and push a new master language file
  addlocale   Add a new locale to the project
  server      Start a synchronisation server
  status      Fetch and display project statistics
  init        Configure your project to sync      

See `wti <command> --help` for more information on a specific command.

[options] are:
  --config, -c:   Path to a translation.yml file (default: .wti)
     --version, -v:   Print version and exit
        --help, -h:   Show this message

Colour!

wti now use some colour and display successes in green, and failures in red.

Deprecations

  • wti autoconf displays a deprecation warning. This command will be deprecated in a future version in favour of wti init.
  • wti stats displays a deprecation warning. This command will be deprecated in a future version in favour of wti status. A new alias wti st has also been created.
  • wti push --ignore_missing and wti push --low_priority were replaced by wti push --ignore-missing and wti push --low-priority.

Upgrade

To upgrade to the latest version, type in a terminal: gem install web_translate_it.

About yesterday’s file import hiccup

By Edouard on March 3, 2011

We had a technical issue yesterday afternoon. Some file imports created duplicated strings instead of aligning the translations.

This post is fairly technical. If you’re not technically versed, rest assured I fixed the problem yesterday and I am now making sure this doesn’t happen again. I’d like to sincerely apologise if you had any issue yesterday.

Please contact support@atelierconvivialite.com if we can make it up for you or if you spot any problem.

What happened

We have 3 distinct work environments:

  • development, on my computer,

  • staging, a separate environment on the production server, where I test things before going to production,

  • and production, the live Web Translate It.

I am currently working on improving the importer’s speed. After testing my changes on my development environment, I deployed them on the staging environment.

Web Translate It’s importers are long-running tasks (sometimes up to 10 minutes for large files), so they have to run in the background. We have a queue system (delayed_job) and currently 4 workers working off jobs from the queue. We use god to monitor our workers and restart them automatically when they crash or eat too much memory or CPU.

When we deploy new code, the deploy script restarts the workers so they use the newer code. However, I didn’t expect the deployment script for the staging website to actually restart the production workers and replace them by the staging workers. I didn’t noticed it immediately, so for a few hours, we had staging workers working off jobs from the production database.

These workers were buggy and in some cases, were duplicating strings instead of aligning the translations. I’m really sorry about that.

This shouldn’t happen again

Lesson learnt. I’m moving the staging environment off to a separate server. Such mistakes should be really hard to make in the future.

web_translate_it gem v 1.7.1.6 released

By Edouard on February 25, 2011

I just released a new version of the synchronisation client wti for Web Translate It. wti is a powerful command line tool to synchronise your local translation files with the Web Translate It service.

This is a minor release, including one bug fix regarding wti server, and upgrading our dependency to Sinatra.

For more information, have a look at the detailed changelog.

To upgrade to the latest version, simply type in a terminal:

gem install web_translate_it.

Are you a Microsoft Windows user? We also have some installation instructions for you.