This repository has been archived by the owner. It is now read-only.

L10n preview is not updating #2147

mathjazz opened this Issue Jul 24, 2012 · 15 comments


None yet
6 participants

mathjazz commented Jul 24, 2012

The preview site we have used until this train only allows us to preview dialog translations:

Now that we also localize the main site, localizers need l10n preview for it.

I thought it was, but it doesn't update automatically when translations get commited to SVN.


ozten commented Jul 24, 2012


mathjazz commented Jul 25, 2012

The dialog preview site is also not updated:

Shouldn't this happen automatically, when the new train is cut?

This issue is pretty urgent, becasue ~50% strings have changed in the current train and localizers have nowhere to preview traslations.


jbonacci commented Jul 26, 2012

The l10n server gets updated when we roll Stage.
Stage has not completed, so l10n is still older code.

And honestly I did not know either site was suppposed to update automatically when translations get commited to SVN.


floatingatoll commented Jul 26, 2012

I looked at the logs on the l10n-preview server, and it seems to be both updating regularly in the cron logs and also reflecting the "latest" revision in ver.txt, and the "browserid" (behind the router) node.js process was last restarted moments after the update to the latest commit, r107808.

If someone can suggest other diagnostics that I haven't tried yet, I'd be happy to try them.

$ curl | grep locale
locale svn r107808

$ grep '^07/25/12.*complete$' /var/log/locale-update.log
07/25/12-01:54:01: update to r107801 complete
07/25/12-01:58:58: update to r107802 complete
07/25/12-03:18:58: update to r107803 complete
07/25/12-03:29:02: update to r107804 complete
07/25/12-04:09:00: update to r107805 complete
07/25/12-11:14:02: update to r107808 complete

$ svn info /var/tmp/l10n-preview-locale
Last Changed Rev: 107808

$ cd /var/tmp/l10n-preview-locale; svn log -r 107808:HEAD
r107808 | tobias_ <> | 2012-07-25 11:07:53 -0700 (Wed, 25 Jul 2012) | 1 line
Commit from Mozilla Verbatim by user tobias_.: 71 of 106 messages translated (10 fuzzy).

$ ps auwx | grep bin/browserid
450      12798  0.0  3.3 948908 25464 ?        Sl   11:14   0:25 node bin/browserid

jbonacci commented Jul 26, 2012

@ozten and @mathjazz I can't find the issue/bug we opened to get this site update:

Not an OPs project though...


ozten commented Jul 26, 2012

@mathjazz are these the STR?

Steps to Reproduce:

  1. Set language to zh-tw (Chinese/Taiwan)
  2. go to


All content is localized.


Only parts of the footer and header are localized.

If so, doesn't Issue #1862 (and closed duplicate Issue #2047) need to be fixed first?


mathjazz commented Jul 26, 2012

@ozten: yes, these are the steps to reproduce.


mathjazz commented Jul 26, 2012

Strings that appear on were extracted and are already available in ~15 languages. So I guess #1862 is not causing the issue.


mathjazz commented Jul 26, 2012

I can see the json file updated for zh-TW:

But the strings (e.g. "Persona is flexible") still show up in English:

@ghost ghost assigned ozten Jul 26, 2012


lloyd commented Aug 3, 2012

There is a new translation environment we'll be using for now.

URL to main site:
URL to website that uses it:
URL to current github SHA and SVN version deployed:

Updating details:

polls SVN at 5 minute intervals. When change is detected, update takes about 8 minutes, that means 15 minutes is the maximum expected time between translations being committed and updates being visible.

@lloyd lloyd closed this Aug 3, 2012

Thanks. That's great!
But does not seem to work (Unable to connect).


lloyd commented Aug 3, 2012

ack! I'm sorry, it's (no ssl)

And when translations are changed, you must wait until is updated (at this very moment apparently someone has committed translations and the server is updating)

Thanks. It works great!


jbonacci commented Aug 3, 2012

Verified that the temp environment is working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.