首页> 外国专利> Creating and implementing language-dependent string pluralizations

Creating and implementing language-dependent string pluralizations

机译:创建和实现与语言相关的字符串复数形式

摘要

Embodiments are directed to applying appropriate pluralization rules to text strings and to generating pluralization rules for multiple different languages. In an embodiment, a computer system identifies a user interface (UI) text string that includes a numerical amount for which an appropriate pluralization form is to be determined. The string is represented by a resource identifier (ID). The computer system receives an indication indicating which language the text string is to be displayed in and determines an appropriate resource ID from a set of pre-generated resource IDs based on the numerical amount and the determined language. The pre-generated resource IDs include various language-specific pluralization forms for localization of the text string. The computer system also returns the localized text string at the determined appropriate resource ID to the UI for display. In this manner, the localized text string is presented with the numerical amount and proper pluralization in the indicated language.
机译:实施例旨在将适当的复数规则应用于文本串并针对多种不同的语言生成复数规则。在一个实施例中,计算机系统识别用户界面(UI)文本串,该用户界面(UI)文本串包括要为其确定适当的复数形式的数值量。该字符串由资源标识符(ID)表示。该计算机系统接收指示该文本串将以哪种语言显示的指示,并基于数量和所确定的语言从一组预生成的资源ID中确定适当的资源ID。预先生成的资源ID包括用于文本字符串本地化的各种特定于语言的复数形式。计算机系统还以确定的适当资源ID将本地化的文本字符串返回给UI进行显示。以这种方式,以所指示的语言向本地化的文本串提供数字量和适当的复数形式。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号