vmware / vmware/singleton

[BUG] [Ruby Client]getString_p() interface doesn't support the requested string with placeholder.

Open
#1,443 1 comment 0 reactions 1 assignee View on GitHub

@Xiaochao8 is already working on this.

Since Mar 11, 2022.

area/ruby-client kind/bug priority/low
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

Describe the bug
getString_p(component, key, plural_args, locale) interface doesn't support the requested string with placeholder.

To Reproduce
Steps to reproduce the behavior:

  1. There is no placeholder parameter in getString_p(component, key, plural_args, locale) interface.
  2. User can't get the string with placeholder in plural form.
pluralsstrArg: "%<{ \"cat_count\": { \"one\": \"s_there is one cat in %2$s and %1$s room\", \"other\": \"s_there are %{cat_count} cats in %2$s and %1$s room\" } }>"
pluralsstrNamedArg: "%<{ \"cat_count\": { \"one\": \"s_there is one cat in {A2} and {A1} room\", \"other\": \"s_there are %{cat_count} cats in {A2} and {A1} room\" } }>"

Expected behavior
User can get the string with placeholder in plural form.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.