Coder Social home page Coder Social logo

mynewsdesk / deprecated-translate Goto Github PK

View Code? Open in Web Editor NEW
346.0 346.0 87.0 569 KB

A Ruby on Rails plugin with a web interface for translating I18n texts

Home Page: http://developer.newsdesk.se/2009/01/21/translate-new-rails-i18n-plugin-with-a-nice-web-ui

License: MIT License

Ruby 99.95% JavaScript 0.05%

deprecated-translate's People

Contributors

himynameisjonas avatar moskyt avatar simonrentzke avatar timnilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deprecated-translate's Issues

translate + lockdown

i am receiving the error:
undefined local variable or method `current_user' for #TranslateController:0x1032e7b70

current_user is a method defined for use with lockdown gem. is this a compatibility issue?

Standalone App

Hey,

Just thought that this would be very useful as a standalone rack app, that you hook into your rails app, or others.

Would it be very difficult? Because a standalone app for editing yaml locale files would be quite nice for other projects aswell

String escaping in Rails 2.3.8

Hi,

In Rails 2.3.8 strings are escaped as they are not HTML safe by default like before. This means your plugin shows some HTML code in the views (e.g. the JavaScript stuff). Here is a patch with the modifications to make it 2.3.8 compatible: http://gist.github.com/506258

comments

i just noticed that when values are saved, all the comments are stripped out. is there a way to retain them? better yet... display them in the UI as explanations for the translators?

(ie. store: Store # noun; as in online store, not verb; as in store in the closet)

Don't include translations from other translation plugins

There are a number of rails plugins that provide a bunch of translations. Can these please have the option of being ignored, or at least not being save in the application locale file.

I have installed the plugin http://github.com/svenfuchs/rails-i18n/tree/master and want to keep those rails type translations separate from my applications own translations, however whenever I save a translation all the rails type translations are included in the application locale file, thus filling it with unnecessary crap.

Can this be changed, so that the translations are stored in the correct file?

Translate added !ruby/object:Proc {} to yml file

Hello,
Let me start by saying that your plugin is very useful. It was a great help to find untranslated strings.
I've used your plugin and it was working fine until it added two lines like the following to en.yml file:
long_ordinal: !ruby/object:Proc {}
Note: I'm using Rails 2.3.2

Issue when people use double quotes for key

Hi guys,
I'd love to make a pull request but I have really no idea on how I am supposed to do that (I believe I should add some tests)

Anyway, I guess it would be faster to just leave my thoughts here.

I am working on a project where the developers use to write <%=t ("home.login") %> wich isn't detected by your regexp.

Here is the new one:

def i18n_lookup_pattern
  /\b(?:I18n\.t|I18n\.translate|t)(?:\s|\():?["|']([a-z0-9_]+.[a-z0-9_.]+)["|']\)?/
end

I just replaced the single quotes by ["|']

Hope this helps!

PS: If you are down to explain me the process to make a proper pull request I'd love to hear from you.

Julien

empty/false values

when i show all untranslated keys, a few are returned where the values should be false or an empty string (""). these should not be considered untranslated.

google rake error

when trying to run rake translate:google FROM=en, TO=de i get the error:

rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.inject

am i running that rake task properly?

Rails 3 support?

I tried to get this running on Rails 3 - fixed view helper problems, but then noticed that the saving didn't work.

Any thoughts on supporting Rails 3?

Translations are lost when over 5 or 6 updates are saved

We have used this wonderful plugin to translate our project to 18 languages.

However, our community has raised the issue that, when saving more than 5 or 6 entries, there is loss of data. This is very frustrating after typing a whole page of translations.

The checkout we are running is 2009-11-02 and we're on Rails 2.3.4, along with the gem versions found below.

It does not appear to be a known issue. It's not very reliable to reproduce unfortunately. Do you think you know what could possibly be going on?

We also have some feedback:

1.- would it be possible to save the yml files in sorted order, so that we can clearly see diffs with git diff?
2.- "can you change the "save" button function not to go back to the 1st
page so that I can push the "save" button more frequently?"

Awesome job on this plugin! In the mean time, we have updated all gems and we will try again.

Carlos
(for the Amahi team http://www.amahi.org)

actionmailer (2.3.4, 2.3.2, 2.1.2)
actionpack (2.3.4, 2.3.2, 2.1.2)
activerecord (2.3.4, 2.3.2, 2.1.2)
activeresource (2.3.4, 2.3.2, 2.1.2)
activesupport (2.3.4, 2.3.2, 2.1.2)
ar_mailer (1.4.0)
capistrano (2.5.5)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.7)
gd2 (1.1.1)
gem2rpm (0.6.0)
gem_plugin (0.2.3)
gruff (0.3.6)
haml (2.2.7)
highline (1.5.1)
hoe (2.3.3)
mongrel (1.1.5)
mysql (2.8.1)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.11)
net-ssh-gateway (1.0.1)
passenger (2.2.5)
pluginfactory (1.0.4)
rack (1.0.1, 1.0.0)
rails (2.3.4, 2.3.2, 2.1.2)
rake (0.8.7)
rubyforge (1.0.4)
sinatra (0.10.1)
ya2yaml (0.26)
01:25:32borealis:html$ c config/environment.rb
activerecord (2.3.4, 2.3.2, 2.1.2)
activeresource (2.3.4, 2.3.2, 2.1.2)
activesupport (2.3.4, 2.3.2, 2.1.2)
ar_mailer (1.4.0)
capistrano (2.5.5)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.7)
gd2 (1.1.1)
gem2rpm (0.6.0)
gem_plugin (0.2.3)
gruff (0.3.6)
haml (2.2.7)
highline (1.5.1)
hoe (2.3.3)
mongrel (1.1.5)
mysql (2.8.1)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.11)
net-ssh-gateway (1.0.1)
passenger (2.2.5)
pluginfactory (1.0.4)
rack (1.0.1, 1.0.0)
rails (2.3.4, 2.3.2, 2.1.2)
rake (0.8.7)
rubyforge (1.0.4)
sinatra (0.10.1)
ya2yaml (0.26)

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.