mozilla / persona

Persona is a secure, distributed, and easy to use identification system.
https://login.persona.org
Other
1.83k stars 264 forks source link

dev.diresworb.org/sign_in db-LB server side gettext not translated #1013

Closed ozten closed 12 years ago

ozten commented 12 years ago

Steps to Reproduce 1) Set Browser Locale to it-CH (db-LB trigger locale) 2) Go to http://dev.myfavoritebeer.org/ 3) Click Sign in

Actual: View Source: "BrowserID Home" as well as the footer "BrowserID is the fast and secure way to sign in — learn more" aren't translated, but the rest of the page is.

Expected: All user visible strings would be upside down.

ozten commented 12 years ago

Doing the following... I get the localized strings back

ssh into dev.diresworb

cd /home/browserid/code
node
fs = require('fs');
gt = require('node-gettext');
g = new gt();
g.addTextdomain('db_LB', fs.readFileSync('./locale/db_LB/LC_MESSAGES/messages.mo'));
g.textdomain('db_LB');
g.gettext('BrowserID is the fast and secure way to sign in &mdash; <a target="_blank" href="/about">learn more</a>');

outputs ' ‮ԐɹoʍsǝɹIᗡ ıs ʇɥǝ ɟɐsʇ ɐup sǝɔnɹǝ ʍɐʎ ʇo sıƃu ıu —‮ ‮ʅǝɐɹu ɯoɹǝ</a<