Jira (PDOC-207) i18n in puppet-strings
Title: Message Title Eric Putnam updated an issue Puppet Strings / PDOC-207 i18n in puppet-strings Change By: Eric Putnam See PDOC-193 for info on existing yard tool.You can see this in raw action by simply calling the CLI tool from the PuppetStrings.generate method and then running strings on a module.{code:ruby}YARD::CLI::I18n.run(search_patterns){code}See from the attached file, there's a lot of stuff that we won't want in there. It will be confusing to the translator and lots of unnecessary work. A few examples:A lot of tags get the tag itself extracted into a msgid that looks like the one here:{code}# @param [String]#: ../lib/puppet/type/radius.rb:3#: ../manifests/install.pp:10msgid "tag|param|name"msgstr ""{code}First of all, we don't want the param name translated. Second, that's just confusing to look at.In other cases, we _do_ want part of this msgid. This mostly occurs in examples:{code}# @example#: ../lib/puppet/type/radius.rb:3msgid "tag|example|Here's an example"msgstr ""{code}Finally, we don't want to translate code examples, obviously{code} # @example Using the type.#: ../lib/puppet/type/test.rb:3msgid "test { 'mctesterson':\n"" foo => 'hi',\n"" my_prop => 'bar',\n""}"msgstr ""{code} The attached file also includes the README, which we may or may not want to pursue.So *this work probably involves*1. Running the #run method as suggested above2. Some kind of post-processing? I actually don't have a good idea. Monkey patching? Add Comment This message was sent by Atlassian JIRA
Jira (PDOC-207) i18n in puppet-strings
Title: Message Title Eric Putnam updated an issue Puppet Strings / PDOC-207 i18n in puppet-strings Change By: Eric Putnam See PDOC-193 for info on existing yard tool.You can see this in raw action by simply calling the CLI tool from the PuppetStrings.generate method and then running strings on a module.{code:ruby}YARD::CLI::I18n.run(search_patterns){code} You can see See from the attached file, there's a lot of stuff that we won't want in there. It will be confusing to the translator and lots of unnecessary work. A few examples:A lot of tags get the tag itself extracted into a msgid that looks like the one here:{code}# @param [String]#: ../lib/puppet/type/radius.rb:3#: ../manifests/install.pp:10msgid "tag|param|name"msgstr ""{code}First of all, we don't want the param name translated. Second, that's just confusing to look at.In other cases, we _do_ want part of this msgid. This mostly occurs in examples:{code}# @example#: ../lib/puppet/type/radius.rb:3msgid "tag|example|Here's an example"msgstr ""{code}Finally, we don't want to translate code examples, obviously{code} # @example Using the type.#: ../lib/puppet/type/test.rb:3msgid "test { 'mctesterson':\n"" foo => 'hi',\n"" my_prop => 'bar',\n""}"msgstr ""{code} Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Jira (PDOC-207) i18n in puppet-strings
Title: Message Title Eric Putnam updated an issue Puppet Strings / PDOC-207 i18n in puppet-strings Change By: Eric Putnam See PDOC-193 for info on existing yard tool. You can see this in raw action by simply calling the CLI tool from the PuppetStrings.generate method and then running strings on a module.{code:ruby}YARD::CLI::I18n.run(search_patterns){code}You can see from the attached file, there's a lot of stuff that we won't want in there. It will be confusing to the translator and lots of unnecessary work. A few examples:A lot of tags get the tag itself extracted into a msgid that looks like the one here:{code}# @param [String]#: ../lib/puppet/type/radius.rb:3#: ../manifests/install.pp:10msgid "tag|param|name"msgstr ""{code}First of all, we don't want the param name translated. Second, that's just confusing to look at.In other cases, we _do_ want part of this msgid. This mostly occurs in examples:{code}# @example#: ../lib/puppet/type/radius.rb:3msgid "tag|example|Here's an example"msgstr ""{code}Finally, we don't want to translate code examples, obviously{code} # @example Using the type.#: ../lib/puppet/type/test.rb:3msgid "test { 'mctesterson':\n"" foo => 'hi',\n"" my_prop => 'bar',\n""}"msgstr ""{code} Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Jira (PDOC-207) i18n in puppet-strings
Title: Message Title Eric Putnam updated an issue Puppet Strings / PDOC-207 i18n in puppet-strings Change By: Eric Putnam Story Points: 5 Add Comment This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PDOC-207) i18n in puppet-strings
Title: Message Title Eric Putnam created an issue Puppet Strings / PDOC-207 i18n in puppet-strings Issue Type: New Feature Assignee: Unassigned Created: 2018/01/25 1:56 PM Priority: Normal Reporter: Eric Putnam See PDOC-193 for info on existing yard tool. Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)