Issue 6 in pseudolocalization-tool: Is there any escape chars available if I want selective text (e.g. Placeholder) not to be psesudolocalized

19 views
Skip to first unread message

pseudolocal...@googlecode.com

unread,
Oct 10, 2013, 1:37:52 PM10/10/13
to pseudolocal...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 6 by ravindra...@gmail.com: Is there any escape chars available
if I want selective text (e.g. Placeholder) not to be psesudolocalized
http://code.google.com/p/pseudolocalization-tool/issues/detail?id=6

What steps will reproduce the problem?
1. psesudolocalize " Hi I don't want this {place_holder} to be
psesudolocalized "
2.
3.

What is the expected output? What do you see instead?

The Original text :Hi I don't want this {place_holder} to be
psesudolocalized
The Modified text by
psaccent :[?î?Î?ðöñ´???åñ????îš?(þ?åçé??ö?ðé?)??ö??é?þšéšûðö?öçå?îžéð? one
two three four five six seven]
The Modified text by psbidi :?Hi? ?I? ?don?'?t? ?want? ?this?
{?place?_?holder?} ?to? ?be? ?psesudolocalized?

Expected output::

?Hi? ?I? ?don?'?t? ?want? ?this? {place_holder} ?to? ?be? ?psesudolocalized?


What version of the product are you using? On what operating system?

Latest

Please provide any additional information below.



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pseudolocal...@googlecode.com

unread,
Oct 13, 2013, 1:35:10 PM10/13/13
to pseudolocal...@googlegroups.com
Updates:
Status: NeedInfo
Owner: j...@jaet.org
Labels: -Type-Defect Type-Enhancement Usability

Comment #1 on issue 6 by j...@jaet.org: Is there any escape chars available
if I want selective text (e.g. Placeholder) not to be psesudolocalized
http://code.google.com/p/pseudolocalization-tool/issues/detail?id=6

What is the actual format of the messages? Are they Java MessageFormat
messages? If so, the .properties format handler knows how to parse the
placeholders inside {} (though it doesn't handle quoting - see
https://code.google.com/p/pseudolocalization-tool/source/browse/trunk/java/com/google/i18n/pseudolocalization/format/JavaProperties.java#L41
). You can force this format with --type=properties on the command line.

If it isn't actually a Java properties file or if the messages aren't
MessageFormat-syntax, it would be easy to write your own format like
JavaProperties -- just have a static initializer register the format and
reference your custom class in a --ext flag.

If you want to write a new format and submit it, I would be happy to review
it -- just use JavaProperties as an example. Alternatively, if it is a
standard format that isn't too complicated I would be happy to write it.

Finally, if this is integrated into some localization process, you could
use the Message API and mark that text as non-localizable.
Reply all
Reply to author
Forward
0 new messages