ppawlak / gettext-js Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gettext-js
License: MIT License
Automatically exported from code.google.com/p/gettext-js
License: MIT License
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:
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
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:
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
I personnaly don't use console.log and prefer the native function dump().
Original issue reported on code.google.com by [email protected]
on 11 Feb 2011 at 11:28
Attachments:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.