Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 19:05
    glebm closed #398
  • Dec 01 19:05

    glebm on main

    Add key-values format to data t… (compare)

  • Dec 01 09:11
    arjan0307 review_requested #398
  • Dec 01 09:10
    arjan0307 synchronize #398
  • Nov 30 15:45
    djfpaagman opened #399
  • Nov 26 11:06
    arjan0307 opened #398
  • Nov 23 19:04
    ryanb commented #393
  • Nov 23 19:04
    ryanb commented #393
  • Nov 23 19:04
    ryanb commented #393
  • Nov 23 19:03
    ryanb commented #393
  • Nov 23 19:03
    ryanb commented #393
  • Nov 20 10:59
    glebm commented #397
  • Nov 20 10:59

    glebm on main

    Add specs for Ruby literal key … Allow "#{hash["key"]}" literal Treat hash literal as valid keys (compare)

  • Nov 20 10:59
    glebm closed #397
  • Nov 20 10:59
    glebm closed #354
  • Nov 20 07:29
    otoyo opened #397
  • Nov 18 22:59
    glebm commented #388
  • Nov 18 22:59
    glebm commented #388
  • Nov 18 16:13
    simonfranzen commented #388
  • Nov 18 16:12
    simonfranzen commented #388
Colin Browne
@ceres629
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
Kevin Brown
@chevinbrown
hello! I'm trying to simply find/add missing keys based on a directory. I've tried various forms of i18n-tasks add-missing -l '...', but haven't really made progress. Do I need to pipe that to another function? I have so many missing keys, I just want to step through a folder at a time.
Matthew Kennedy
@MatthewKennedy
Hello
Is there a way to set up the configs to that one key would be copied accross but not actually translated when i18n-tasks translate-missing is run
In the default file there is a key this_file_language: English (en) I would prefer that to be copied across to the other languages as `this_file_language: English (en) so a test can spot a duplicate and prompt the translator to manually set the name.
Is that possible?
Matthew Kennedy
@MatthewKennedy
If i was using a custom pattern matcher for Spree.t(:my_key) this works fine
but if using for Spree.t(:my_key, scope: 'date_picker') the scope is not picked up.
any idea how to get that to work?