Git Product home page Git Product logo

gettext-js's People

gettext-js's Issues

arguments[1] is undefined

gettext.js is flooding my console with the following error :
JS error: [JavaScript Error: "arguments[1] is undefined" {file: 
"http://localhost:8888/bumrang/gettext.js" line: 45}]

Original issue reported on code.google.com by [email protected] on 11 Feb 2011 at 8:48

Some strings are not translated

I'm using the following .po file and some strings are correctly translated and 
some are not.
For example "Invalid Date!" is correctly displayed as "Date invalide !" but 
"Are you sure you want to delete this entry?" is still displayed in English.
Seems to be a problem with indexOf not finding the strings.

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 1:57

Attachments:

error str is not found exception


This library is not working, when I run the "index.html" example I got "error 
str is not found exception"

this is in line 54:

this.LCmessages[lang] = new jsGettext.Parse(str);

Where str variable is come from?

I've use gettext.js version 0.1.0 from svn on Firefox 3.6.3 - Ubuntu GNU/Linux

Original issue reported on code.google.com by [email protected] on 25 Jul 2010 at 9:55

AJAX request for PO files fails when used in RoR application

What steps will reproduce the problem?
1. use gettext.js in Ruby on Rails app
2. put PO files in the public/ folder of the app (i.e.
public/locale/bg_test.po)

PO files are expected to be fetched by AJAX requests. However, under RoR
the AJAX request fails with the following error:
ActionController::RoutingError (No route matches "/locale/bg_test.po" with
{:method=>:post})

This can be fixed by specifying in gettext.js that request method should be
'get'. (it is 'post' by default)

Also small fix for compacting the array in this.links in case there are
other link elements for stylesheets for example.

patch attached.

Original issue reported on code.google.com by [email protected] on 10 Apr 2008 at 10:41

Attachments:

Broken in Prototype 1.6

What steps will reproduce the problem?
1. upgrade prototype to 1.6
2. call _("something to translate")

The indexOf function doesn't work as expected, and doesn't find the string
in the array of msgids. I added flatten() before indexOf(str) to make it
work.  

Original issue reported on code.google.com by [email protected] on 15 Jan 2008 at 2:29

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.