-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing issue #20
Comments
Also (probably because of the <%= label %> syntax) -<%= label nil, :new_host_id, 'New host' %> |
This one is interesting. It seems to have keyed in on the plaintext "qux" but then symbolized the first AND second instances of "qux." -<%=h foo.foo_bar %>; <%=h foo.foo_baz %>; <%=h foo.foo_quxes %>qux |
And another. Maybe some kind of catchall or
|
Don't mind me, just documenting interesting stuff I find :) I understand the 80/20 rule.
[brackets] and other symbols aren't valid yml
|
Hi ! :) Thank you for this very useful gem ! Here is some other bug that concerns strings that should not have been replaced or ones that have been replaced incorrectly. (Actually, it's the same than zyphlar.) It seems that if there are some code after the :label => " ", the remplacement fails. In a form with semantic_form_for :
|
Here is some others bugs :
It doesn't seem to like the ' . :) |
Is there some way we can parse ERB just like Rails does, rather than trying
|
Same thing happening to me, trying to figure it out with http://rubular.com, but Regex is hard haha this guy is awesome, will be cool to add type of strings to the reserve words |
Unknown why i15r had issues with this line. Maybe it's because of the custom form generator we're using that provides a :label attribute? A very interesting failure mode.
-<%= f.text_field :feature_list, :size=>60, :label=>'Feature flags', :append=>' (space separated)', :help=>"Known: #{@features.join(', ')}" %>
+<%= f.text_field :feature_list, :size=>60, :label=>I18n.t("admin.accounts.form.feature_flags_append=>space_separated_help=>known{@featuresjoin_", :default => 'Feature flags', :append=>' (space separated)', :help=>"Known: #{@features.join(', '))}" %>
-<%= f.text_field :account_id, :label=>'Account ID', :size=>12, :readonly=>true, :clear=>false %>
+<%= f.text_field :account_id, :label=>'Account ID', I18n.t("admin.guests.form.size", :default => "size")=>12, :readonly=>true, :clear=>false %>
-<%= f.text_field :cluster_name, :label=>'Location', :size=>12, :readonly=>true %>
+<%= f.text_field :cluster_name, :label=>'Location', I18n.t("admin.guests.form.size", :default => "size")=>12, :readonly=>true %>
The text was updated successfully, but these errors were encountered: