0

我在市场上有一个应用程序,我想将其本地化为其他语言,我想实现的过程是:

  1. 用户下载应用程序
  2. 用户选择语言
  3. 语言包已下载到应用程序文件夹

我的问题是如何使用 adobe air 实施步骤#3(并且它是否影响应用程序审查过程)

谢谢

4

1 回答 1

0

将您的包下载到名为“Translations.bundle”的 Documents 目录,然后使用此代码

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsPath = [paths firstObject];

NSString *bundlePath = [documentsPath stringByAppendingPathComponent:@"Translations.bundle"];

NSBundle *translationsBundle = [NSBundle bundleWithPath:bundlePath];
NSString *message = NSLocalizedStringFromTableInBundle(@"Message", nil, translationsBundle, nil);
于 2013-10-10T09:35:00.677 回答