Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 28 10:12
    dmitry commented #81
  • Aug 28 10:12
    dmitry commented #81
  • Aug 28 10:09
    dmitry commented #81
  • Aug 28 10:04
    dmitry edited #81
  • Aug 28 10:03
    dmitry opened #81
  • Aug 22 07:15
    KTkeyu edited #332
  • Aug 22 07:15
    KTkeyu closed #332
  • Aug 21 22:38
    KTkeyu opened #332
  • Aug 13 10:14
    i2chris edited #331
  • Aug 13 09:15
    i2chris opened #331
  • Jun 06 18:17
    glebm commented #330
  • Jun 06 18:17

    glebm on 0.8-stable

    Fix syntax error ruby 2.5.5 (#3… (compare)

  • Jun 06 18:17
    glebm closed #330
  • Jun 06 18:16
    glebm reopened #330
  • Jun 06 18:16
    glebm commented #330
  • Jun 06 18:16
    glebm closed #330
  • Jun 06 18:16
    glebm commented #330
  • May 27 13:52
    blahutka commented #330
  • May 27 13:30
    blahutka opened #330
  • May 16 01:25
    glebm labeled #329
Gleb Mazovetskiy
@glebm
@ceres629 Perhaps it's a problem with config parsing, can you please have a look?
Russell Osborne
@rposborne
Quick question I am trying to inject nil values for missing keys vs an empty string any hints on how to achieve this?
found
glebm/i18n-tasks#170
Russell Osborne
@rposborne
I am attempting to write a custom scanner for Spree, using the 0.9.0-rc2 release. Maybe someone can point me in the right direction, Spree uses a helper Spree.t("key") to use the spree namespace in I18n. I have successfully writing a Scanner for this but I am dealing with an overly eager PatterMatcherWithScope that matches these the above call again.
Gleb Mazovetskiy
@glebm
@rposborne Eager matching fixed in glebm/i18n-tasks@f15d762
@rposborne Unfortunately, this did not make it into v0.9.0 release
Gleb Mazovetskiy
@glebm
@rposborne Now released in v0.9.1
Russell Osborne
@rposborne
Awesome thanks! @glebm
souravongit
@souravongit
This message was deleted
souravongit
@souravongit
i installed it on my application. when im trying to run it show error like "i18n-tasks: Error scanning app/controllers/api/v1/bank_branches_controller.rb: undefined methodtransform_values' for {}:Hash
". If i exclude controllers from config/i18n-tasks.yml then it works.mainly not working on .rb file.Please help me out.
Colin Browne
@ceres629
I am trying to add a custom scanner and I'm sure I'm following the method outlined in the readme but I keep getting: i18n-tasks: [DEPRECATED] search.scanner is now search.scanners, an array of [ScannerClass, options] /usr/local/opt/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:261:inconst_get': uninitialized constant GettextScanner (NameError)`
I put a gist of what I've done here https://gist.github.com/ceres629/c048941009b0b4f0527c
is there a step i'm missing?
Colin Browne
@ceres629
I previously tried to do this before and couldn't get it working, the only thing i got working was to modify the gem itself and add the scanner that way, but I would prefer not to have to do it this way.
Colin Browne
@ceres629
okay silly me, I realise now you either have i18n-tasks.yml.erb or i18n-tasks.yml, not both
putting the contents of the .yml into .yml.erb works fine.
souravongit
@souravongit
hey @ceres629 can you help me
Can you tell me the configuration procedure please
Colin Browne
@ceres629
its just as i have in my updated gist
souravongit
@souravongit
which version of gem you used.and whats your ruby version
in my case it works only views when i include controllers it gives error "i18n-tasks: Error scanning app/controllers/api/v1/bank_branches_controller.rb: undefined methodtransform_values' for {}:Hash"
Gleb Mazovetskiy
@glebm
@ceres629: if you use I18n::Tasks.add_scanner, there is no need to modify search.scanners in the config, as add_scanner adds it to the default scanners.
This message was deleted
@souravongit transform_values is a method coming from activesupport (available since v4.0 I think)
@souravongit Ouch. transform_values is only available since ActiveSupport v4.2.0, but the gem depends on >= v4.0.0.
Gleb Mazovetskiy
@glebm
@souravongit I've opened #178 to track this
Colin Browne
@ceres629
Thanks @glebm removed that line and all works fine.
One question, how would I go about adding support for gettext .po files? I want to export missing keys to the .po format
souravongit
@souravongit
So can you please help me how to fix it .. Thanks.
Billz2me
@Billz2me
why was this gem made backwards incompatible for ruby < 2.0.0 ?
the RubyAstScanner uses new syntax that fails to build with Ruby 1.9
not necessary to make this breaking change
Gleb Mazovetskiy
@glebm
souravongit: a new version has been released that fixed the issue
Billz2me: because I want to use keyword arguments to make the code more readable. You can run i18n-tasks on ruby 2 even if the project uses ruby 1.9 though
souravongit
@souravongit
Thanks @glebm .. Now its working.
Gleb Mazovetskiy
@glebm
@ceres629 See https://github.com/glebm/i18n-tasks/blob/master/lib/i18n/tasks/data/file_system.rb. Just make an adapter and register it with FileSystem
@ceres629 This would make for a great gem if you get it all working :+1:
Denny Mueller
@dennym
Hey there, hope this gitter is still active... Is there a way to ignore certain yml files that should not be read for translation? Like a 'data=>read=>ignore' option?
Gleb Mazovetskiy
@glebm
@dennym There isn't, but you can use ERB there
This message was deleted
@dennym something like this
 <%= (Dir[...].map { |p| p.sub(/..\.yml\z/, '%{locale}.yml') }.uniq - [...]).inspect %>
Paulo Abreu
@pama
Hey there, I was wondering if i18n-tasks has a command that syncs all translations based on a master locale. something like add-missing , but able to remove if we remove one or more keys from the that master locale. Thanks.
Hugo BARTHELEMY
@hugobarthelemy
Hi everybody ! Your gem is really great! ;
I have a question. I have exported missing and unused data to XLSX with '$ i18n-tasks xlsx-report'. I did the translation but how to import the translated file now please?
Thank you
Gleb Mazovetskiy
@glebm
Hi @hugobarthelemy, there is no xlsx-import, but see these CSV tasks: https://github.com/glebm/i18n-tasks/wiki/Custom-CSV-import-and-export-tasks
Hi @pama, i18n-tasks add-missing && i18n-tasks remove-unused?
Hugo BARTHELEMY
@hugobarthelemy
@glebm
thank you