有谁知道X code文件" InfoPlist.strings(英文)QUOT;是什么? [英] Does anybody know what the xcode file "InfoPlist.strings (English)" is?

查看:638
本文介绍了有谁知道X code文件" InfoPlist.strings(英文)QUOT;是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道什么文件InfoPlist.stings是?它是指X code 3.2。它是一个AppleScript的可可应用程序。


解决方案

  

这是信息属性列表文件是一个结构化的文本文件,
  包含用于捆绑可执行必要的配置信息。
  文件本身通常是连接使用统一code UTF-8编码codeD
  并且该内容被使用XML的结构。根XML节点是一个
  字典,其内容是一组键和值的描述
  束的不同方面。系统使用这些键和值
  以获取有关您的应用程序的信息,它是如何配置的。作为一个
  结果,所有捆绑的可执行文件(插件,框架和应用程序)是
  预期具有信息属性列表文件


  
  

按照惯例,一个信息属性列表文件的名称是
  Info.plist的。


  
  

本地化值不存储在Info.plist文件本身。
  相反,你存储值在一个特定的本地化
  字符串名为InfoPlist.strings文件。你把这个文件
  您用来存储相同的特定语言的项目目录
  其他资源对于相同的定位。的内容
  InfoPlist.strings文件是您要本地化的各个按键和
  在适当的翻译值。那仰望关键例程
  在Info.plist文件值将用户的语言preferences
  考虑到从返回键的本地化版本(
  适当InfoPlist.strings文件)当一个人存在。如果本地化
  一个关键的版本不存在,则例程返回存储的值
  在Info.plist文件。


  
  

例如,在文本编辑应用程序具有显示在多个键
  在Finder,因此应本地化。假设你的信息
  属性列表文件定义了如下键:


  
  

CFBundleDisplayName文本编辑
  NSHumanReadableCopyright版权所有¬©1995-2009,
  苹果公司,保留所有权利。法国本地化
  文本编辑,然后包括在InfoPlist.strings下列字符串
  其内容/资源/ French.lproj目录的文件:


  
  

CFBundleDisplayName =文字编辑; NSHumanReadableCopyright =
  版权所有©1995-2009苹果公司\\ nTous droits储备。


从<一个href=\"http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html\">developer.Apple.com

Does anyone know what the file "InfoPlist.stings" is for? It is in Xcode 3.2. It is a Cocoa app in Applescript.

解决方案

An information property list file is a structured text file that contains essential configuration information for a bundled executable. The file itself is typically encoded using the Unicode UTF-8 encoding and the contents are structured using XML. The root XML node is a dictionary, whose contents are a set of keys and values describing different aspects of the bundle. The system uses these keys and values to obtain information about your app and how it is configured. As a result, all bundled executables (plug-ins, frameworks, and apps) are expected to have an information property list file.

By convention, the name of an information property list file is Info.plist.

Localized values are not stored in the Info.plist file itself. Instead, you store the values for a particular localization in a strings file with the name InfoPlist.strings. You place this file in the same language-specific project directory that you use to store other resources for the same localization. The contents of the InfoPlist.strings file are the individual keys you want localized and the appropriately translated value. The routines that look up key values in the Info.plist file take the user’s language preferences into account and return the localized version of the key (from the appropriate InfoPlist.strings file) when one exists. If a localized version of a key does not exist, the routines return the value stored in the Info.plist file.

For example, the TextEdit app has several keys that are displayed in the Finder and thus should be localized. Suppose your information property list file defines the following keys:

CFBundleDisplayName TextEdit NSHumanReadableCopyright Copyright © 1995-2009, Apple Inc.,All Rights Reserved. The French localization for TextEdit then includes the following strings in the InfoPlist.strings file of its Contents/Resources/French.lproj directory:

CFBundleDisplayName = "TextEdit"; NSHumanReadableCopyright = "Copyright © 1995-2009 Apple Inc.\nTous droits réservés.";

From developer.Apple.com

这篇关于有谁知道X code文件&QUOT; InfoPlist.strings(英文)QUOT;是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆