Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CPRuleEditor translates word by word instead of whole sentences #1834

Open
stewa opened this Issue · 9 comments

5 participants

@stewa

This is a good description of how it works in Cocoa:
http://funwithobjc.tumblr.com/post/1482915398/localizing-nspredicateeditor

Word by word translation causes problems like

  • English words with multiple meanings
  • Capitalization
  • Order of words
@cappbot
Collaborator

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

@aparajita
Owner

An example or more details would be greatly appreciated.

#needs-info

@cappbot
Collaborator

Milestone: Someday. Labels: #needs-info, #new. What's next? Additional information should be added as a comment to this isuse.

@stewa

Consider this example of translating to Spanish from the link above:

"%[property]@ %[is]@ %@" = "%1$[property]@ %2$[is]@ %3$@";
"%[property]@ %[is not]@ %@" = "%1$[property]@ %2$[is not]@ %3$@";
"%[property]@ %[contains]@ %@" = "%1$[property]@ %2$[contains]@ %3$@";

"%[property]@ %[is]@ %@" = "%1$[propiedad]@ y %3$@ %2$[son iguales]@"; //literally "property and [value] are equal"
"%[property]@ %[is not]@ %@" = "%1$[propiedad]@ y %3$@ %2$[no son iguales]@";
"%[property]@ %[contains]@ %@" = "%1$[propiedad]@ %2$[contiene]@ %3$@";

This is how Cocoa does it, 3 whole sentences in the dictionary.

The current implementation in Cappuccino translates "property", "is", "is not" and "contains" separately.
That will make the words appear in the wrong order in Spanish.

@aparajita
Owner

This is one for @cacaodev.

@ahankinson

-#new
+bug
+AppKit

@cappbot
Collaborator

Milestone: Someday. Labels: #needs-info, AppKit, bug. What's next? Additional information should be added as a comment to this isuse.

@daboe01

+i18n

@cappbot
Collaborator

Milestone: Someday. Labels: #needs-info, AppKit, bug, i18n. What's next? Additional information should be added as a comment to this isuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.